Skip to content

Commit

Permalink
tools: add option to use custom template with js2c.py
Browse files Browse the repository at this point in the history
PR-URL: #21187
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
codebytere authored and targos committed Jun 13, 2018
1 parent e92b89a commit a5c386d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/js2c.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,10 @@ def JS2C(source, target):
def main():
natives = sys.argv[1]
source_files = sys.argv[2:]
if source_files[-2] == '-t':
global TEMPLATE
TEMPLATE = source_files[-1]
source_files = source_files[:-2]
JS2C(source_files, [natives])

if __name__ == "__main__":
Expand Down

0 comments on commit a5c386d

Please sign in to comment.