mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 914826 - part 5 - provide for cpp-only include files, starting with nsIFile.h and GeckoProfiler.h; r=ehsan
This commit is contained in:
parent
c624a73fdb
commit
8bf2d3ba49
@ -51,7 +51,10 @@ HeaderIncludes = (
|
||||
'nsAutoPtr.h',
|
||||
'nsStringGlue.h',
|
||||
'nsTArray.h',
|
||||
'nsIFile.h',
|
||||
'mozilla/ipc/ProtocolUtils.h',
|
||||
'GeckoProfiler.h'
|
||||
)
|
||||
|
||||
CppIncludes = (
|
||||
'nsIFile.h',
|
||||
'GeckoProfiler.h',
|
||||
)
|
||||
|
@ -6,6 +6,7 @@ import os, re, sys
|
||||
from copy import deepcopy
|
||||
|
||||
import ipdl.ast
|
||||
import ipdl.builtin
|
||||
from ipdl.cxx.ast import *
|
||||
from ipdl.type import Actor, ActorType, ProcessGraph, TypeVisitor
|
||||
|
||||
@ -2553,6 +2554,9 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
CppDirective('endif')
|
||||
])
|
||||
|
||||
cppheaders = [CppDirective('include', '"%s"' % filename)
|
||||
for filename in ipdl.builtin.CppIncludes]
|
||||
|
||||
cf.addthings((
|
||||
[ Whitespace.NL ]
|
||||
+ self.protocolCxxIncludes
|
||||
@ -2560,6 +2564,8 @@ class _GenerateProtocolActorCode(ipdl.ast.Visitor):
|
||||
+ self.standardTypedefs()
|
||||
+ tu.protocol.decl.cxxtypedefs
|
||||
+ self.includedActorUsings
|
||||
+ [ Whitespace.NL ]
|
||||
+ cppheaders
|
||||
+ [ Whitespace.NL ]))
|
||||
|
||||
cppns = makeNamespace(self.protocol, cf)
|
||||
|
Loading…
Reference in New Issue
Block a user