forked from mirrors/gecko-dev
Bug 1828577 - Properly set *-stl-wrapper.template.h as an input to the make-stl-wrappers script. r=firefox-build-system-reviewers,ahochheiden
Differential Revision: https://phabricator.services.mozilla.com/D175734
This commit is contained in:
parent
7dc58e5ce4
commit
94f435dbdc
2 changed files with 4 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ from mozbuild.util import FileAvoidWrite
|
||||||
# generate all the files in header_list
|
# generate all the files in header_list
|
||||||
|
|
||||||
|
|
||||||
def gen_wrappers(unused, outdir, compiler, template_file, *header_list):
|
def gen_wrappers(unused, template_file, outdir, compiler, *header_list):
|
||||||
template = open(template_file, "r").read()
|
template = open(template_file, "r").read()
|
||||||
|
|
||||||
for header in header_list:
|
for header in header_list:
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,7 @@ if CONFIG["WRAP_STL_INCLUDES"]:
|
||||||
# containing generated files; if this is changed here then the code in
|
# containing generated files; if this is changed here then the code in
|
||||||
# GeneratedFile.__init__ in python/mozbuild/mozbuild/frontend/data.py
|
# GeneratedFile.__init__ in python/mozbuild/mozbuild/frontend/data.py
|
||||||
# might need to be updated accordingly as well.
|
# might need to be updated accordingly as well.
|
||||||
template_file = SRCDIR + "/%s-stl-wrapper.template.h" % stl_compiler
|
template_file = "%s-stl-wrapper.template.h" % stl_compiler
|
||||||
output_dir = "/dist/stl_wrappers"
|
output_dir = "/dist/stl_wrappers"
|
||||||
# We have to use a sentinel file as the first file because the
|
# We have to use a sentinel file as the first file because the
|
||||||
# file_generate action will create it for us, but we want to create all
|
# file_generate action will create it for us, but we want to create all
|
||||||
|
|
@ -61,7 +61,8 @@ if CONFIG["WRAP_STL_INCLUDES"]:
|
||||||
*outputs,
|
*outputs,
|
||||||
script="make-stl-wrappers.py",
|
script="make-stl-wrappers.py",
|
||||||
entry_point="gen_wrappers",
|
entry_point="gen_wrappers",
|
||||||
flags=[TOPOBJDIR + output_dir, stl_compiler, template_file] + stl_headers
|
inputs=[template_file],
|
||||||
|
flags=[TOPOBJDIR + output_dir, stl_compiler] + stl_headers
|
||||||
)
|
)
|
||||||
|
|
||||||
# Wrap <windows.h> to make it easier to use correctly
|
# Wrap <windows.h> to make it easier to use correctly
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue