summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/android.py2
-rw-r--r--tools/ios.py2
-rw-r--r--tools/javascript.py2
-rw-r--r--tools/linux.py2
-rw-r--r--tools/macos.py2
-rw-r--r--tools/windows.py2
6 files changed, 12 insertions, 0 deletions
diff --git a/tools/android.py b/tools/android.py
index b9077f5..4735345 100644
--- a/tools/android.py
+++ b/tools/android.py
@@ -100,3 +100,5 @@ def generate(env):
)
env.Append(CCFLAGS=arch_info["ccflags"])
env.Append(LINKFLAGS=["--target=" + arch_info["target"] + env["android_api_level"], "-march=" + arch_info["march"]])
+
+ env.Append(CPPDEFINES=["ANDROID_ENABLED", "UNIX_ENABLED"])
diff --git a/tools/ios.py b/tools/ios.py
index 11d606b..477e27a 100644
--- a/tools/ios.py
+++ b/tools/ios.py
@@ -79,3 +79,5 @@ def generate(env):
env.Append(CCFLAGS=["-isysroot", env["IOS_SDK_PATH"]])
env.Append(LINKFLAGS=["-isysroot", env["IOS_SDK_PATH"], "-F" + env["IOS_SDK_PATH"]])
+
+ env.Append(CPPDEFINES=["IOS_ENABLED", "UNIX_ENABLED"])
diff --git a/tools/javascript.py b/tools/javascript.py
index 5a93584..42c601d 100644
--- a/tools/javascript.py
+++ b/tools/javascript.py
@@ -43,3 +43,5 @@ def generate(env):
env.Append(CCFLAGS=["-O0", "-g"])
elif env["target"] == "release":
env.Append(CCFLAGS=["-O3"])
+
+ env.Append(CPPDEFINES=["WEB_ENABLED", "UNIX_ENABLED"])
diff --git a/tools/linux.py b/tools/linux.py
index 099a048..cb48ae5 100644
--- a/tools/linux.py
+++ b/tools/linux.py
@@ -32,3 +32,5 @@ def generate(env):
elif env["arch"] == "rv64":
env.Append(CCFLAGS=["-march=rv64gc"])
env.Append(LINKFLAGS=["-march=rv64gc"])
+
+ env.Append(CPPDEFINES=["LINUX_ENABLED", "UNIX_ENABLED"])
diff --git a/tools/macos.py b/tools/macos.py
index 2e4bfc6..5718776 100644
--- a/tools/macos.py
+++ b/tools/macos.py
@@ -48,3 +48,5 @@ def generate(env):
"-Wl,-undefined,dynamic_lookup",
]
)
+
+ env.Append(CPPDEFINES=["MACOS_ENABLED", "UNIX_ENABLED"])
diff --git a/tools/windows.py b/tools/windows.py
index b8690c5..979b56e 100644
--- a/tools/windows.py
+++ b/tools/windows.py
@@ -70,3 +70,5 @@ def generate(env):
"-static-libstdc++",
]
)
+
+ env.Append(CPPDEFINES=["WINDOWS_ENABLED"])