diff options
author | Leon Krause <lk@leonkrause.com> | 2018-03-21 15:51:44 +0100 |
---|---|---|
committer | Leon Krause <lk@leonkrause.com> | 2018-03-26 19:46:56 +0200 |
commit | d8d9eea72252e5b667537261ea40fec18cf1f809 (patch) | |
tree | 09769955258fc31ee3f3df66d66410433f6b4985 /SConstruct | |
parent | 25800ffb0e9acfe9e63608eb44979f27c33fc6c1 (diff) |
Refactor JavaScript platform build script
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/SConstruct b/SConstruct index 7a8db10931..63105bfa84 100644 --- a/SConstruct +++ b/SConstruct @@ -62,11 +62,11 @@ custom_tools = ['default'] platform_arg = ARGUMENTS.get("platform", ARGUMENTS.get("p", False)) -if (os.name == "posix"): - pass -elif (os.name == "nt"): - if platform_arg == "android" or platform_arg == "javascript" or ARGUMENTS.get("use_mingw", False): - custom_tools = ['mingw'] +if os.name == "nt" and (platform_arg == "android" or ARGUMENTS.get("use_mingw", False)): + custom_tools = ['mingw'] +elif platform_arg == 'javascript': + # Use generic POSIX build toolchain for Emscripten. + custom_tools = ['cc', 'c++', 'ar', 'link', 'textfile', 'zip'] env_base = Environment(tools=custom_tools) if 'TERM' in os.environ: |