Skip to content

Commit

Permalink
[javascript] Support TI_EMSCRIPTENED option as an env var (JS 3/n) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AmesingFlank authored Jan 29, 2022
1 parent 27abb2a commit b036161
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def run(self):
f'-DTI_VERSION_PATCH={TI_VERSION_PATCH}',
]

emscriptened = os.getenv('TI_EMSCRIPTENED', '0') in ('1', 'ON')
if emscriptened:
cmake_args += ['-DTI_EMSCRIPTENED=ON']

if shutil.which('ninja'):
cmake_args += ['-GNinja']

Expand Down

0 comments on commit b036161

Please sign in to comment.