summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-25 00:04:49 -0400
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-25 14:36:02 -0400
commitffab67b8daea8e3379824105439eba8226b72fde (patch)
treebc12f51abfdec242fb0e42a04f02a3de9359fce5 /platform
parentf9e463bce2607c5136acc79ecd495f8b62b8e5ad (diff)
Use BoolVariable in target/component/advanced 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.py2
-rw-r--r--platform/server/detect.py2
-rw-r--r--platform/uwp/detect.py4
-rw-r--r--platform/windows/SCsub2
-rw-r--r--platform/x11/detect.py2
7 files changed, 8 insertions, 8 deletions
diff --git a/platform/android/detect.py b/platform/android/detect.py
index 6640a053fe..67b31e488b 100644
--- a/platform/android/detect.py
+++ b/platform/android/detect.py
@@ -32,7 +32,7 @@ def get_opts():
def get_flags():
return [
- ('tools', 'no'),
+ ('tools', False),
]
diff --git a/platform/iphone/detect.py b/platform/iphone/detect.py
index 0b81422fa3..8a44114a51 100644
--- a/platform/iphone/detect.py
+++ b/platform/iphone/detect.py
@@ -37,7 +37,7 @@ def get_opts():
def get_flags():
return [
- ('tools', 'no'),
+ ('tools', False),
]
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index bea8f156af..b48a080ce0 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -27,7 +27,7 @@ def get_opts():
def get_flags():
return [
- ('tools', 'no'),
+ ('tools', False),
('module_theora_enabled', 'no'),
]
diff --git a/platform/server/detect.py b/platform/server/detect.py
index 5c13297bc6..673245ecff 100644
--- a/platform/server/detect.py
+++ b/platform/server/detect.py
@@ -86,7 +86,7 @@ def configure(env):
if (env['builtin_enet'] == 'no'):
env.ParseConfig('pkg-config libenet --cflags --libs')
- if (env['builtin_squish'] == 'no' and env["tools"] == "yes"):
+ if env['builtin_squish'] == 'no' and env['tools']:
env.ParseConfig('pkg-config libsquish --cflags --libs')
if env['builtin_zstd'] == 'no':
diff --git a/platform/uwp/detect.py b/platform/uwp/detect.py
index 23929dd804..af53f97446 100644
--- a/platform/uwp/detect.py
+++ b/platform/uwp/detect.py
@@ -33,8 +33,8 @@ def get_opts():
def get_flags():
return [
- ('tools', 'no'),
- ('xaudio2', 'yes'),
+ ('tools', False),
+ ('xaudio2', True),
]
diff --git a/platform/windows/SCsub b/platform/windows/SCsub
index fd041e096e..d3c160f052 100644
--- a/platform/windows/SCsub
+++ b/platform/windows/SCsub
@@ -30,7 +30,7 @@ common_win.append(obj)
binary = env.Program('#bin/godot', ['godot_win.cpp'] + common_win, PROGSUFFIX=env["PROGSUFFIX"])
# Microsoft Visual Studio Project Generation
-if (env['vsproj']) == "yes":
+if env['vsproj']:
env.vs_srcs = env.vs_srcs + ["platform/windows/godot_win.cpp"]
for x in common_win:
env.vs_srcs = env.vs_srcs + ["platform/windows/" + str(x)]
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index be21aa8f8e..1787bb46c4 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -159,7 +159,7 @@ def configure(env):
if (env['builtin_enet'] == 'no'):
env.ParseConfig('pkg-config libenet --cflags --libs')
- if (env['builtin_squish'] == 'no' and env["tools"] == "yes"):
+ if env['builtin_squish'] == 'no' and env['tools']:
env.ParseConfig('pkg-config libsquish --cflags --libs')
if env['builtin_zstd'] == 'no':