summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-25 00:27:32 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-25 14:36:30 -0400
commit5be675eb0332ccf660a81df51701146997ef9fcb (patch)
tree22ff68fa1ea7b92a263b46449f306e2e8f12bc4a /platform
parent45a9a680a3cf54d4f43c46c3ec43a108ee62b834 (diff)
Use BoolVariable for module options.
Diffstat (limited to 'platform')
-rw-r--r--platform/android/detect.py2
-rw-r--r--platform/iphone/detect.py2
-rw-r--r--platform/javascript/detect.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py
index 67b31e488b..0a031fe0b1 100644
--- a/platform/android/detect.py
+++ b/platform/android/detect.py
@@ -244,7 +244,7 @@ def configure(env):
env.Append(LIBS=['OpenSLES', 'EGL', 'GLESv3', 'android', 'log', 'z', 'dl'])
# TODO: Move that to opus module's config
- if("module_opus_enabled" in env and env["module_opus_enabled"] != "no"):
+ if 'module_opus_enabled' in env and env['module_opus_enabled']:
if (env["android_arch"] == "armv6" or env["android_arch"] == "armv7"):
env.Append(CFLAGS=["-DOPUS_ARM_OPT"])
env.opus_fixed_point = "yes"
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py
index 8a44114a51..d763b4b6c3 100644
--- a/platform/iphone/detect.py
+++ b/platform/iphone/detect.py
@@ -151,7 +151,7 @@ def configure(env):
env.Append(CPPFLAGS=['-DIPHONE_ENABLED', '-DUNIX_ENABLED', '-DGLES2_ENABLED', '-DMPC_FIXED_POINT'])
# TODO: Move that to opus module's config
- if("module_opus_enabled" in env and env["module_opus_enabled"] != "no"):
+ if 'module_opus_enabled' in env and env['module_opus_enabled']:
env.opus_fixed_point = "yes"
if (env["arch"] == "arm"):
env.Append(CFLAGS=["-DOPUS_ARM_OPT"])
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index b48a080ce0..fdcdc7da6f 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -28,7 +28,7 @@ def get_flags():
return [
('tools', False),
- ('module_theora_enabled', 'no'),
+ ('module_theora_enabled', False),
]
@@ -116,5 +116,5 @@ def configure(env):
env.Append(LINKFLAGS=['--memory-init-file', '1'])
# TODO: Move that to opus module's config
- if("module_opus_enabled" in env and env["module_opus_enabled"] != "no"):
+ if 'module_opus_enabled' in env and env['module_opus_enabled']:
env.opus_fixed_point = "yes"