summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/genie.lua
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-02-26 14:50:09 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2016-02-26 14:50:09 +0100
commit3a811376d974de519c4ef74dff3e5b8719468f4a (patch)
tree400d7f2d10829e50c548854c3c93ec637d33768f /scripts/genie.lua
parent2582ce7f16cc84c686a4357fca7d53edd0ecc348 (diff)
Made pnacl to compile (nw)
Diffstat (limited to 'scripts/genie.lua')
-rw-r--r--scripts/genie.lua21
1 files changed, 18 insertions, 3 deletions
diff --git a/scripts/genie.lua b/scripts/genie.lua
index 2cf8916713f..329efb08a0a 100644
--- a/scripts/genie.lua
+++ b/scripts/genie.lua
@@ -387,6 +387,15 @@ newoption {
description = "Target machine platform (x86,arm,...)",
}
+newoption {
+ trigger = "USE_LIBUV",
+ description = "Use libuv.",
+ allowed = {
+ { "0", "Disabled" },
+ { "1", "Enabled" },
+ }
+}
+
if _OPTIONS["SHLIB"]=="1" then
LIBTYPE = "SharedLib"
else
@@ -411,6 +420,10 @@ if not _OPTIONS["NOASM"] then
end
end
+if not _OPTIONS["USE_LIBUV"] then
+ _OPTIONS["USE_LIBUV"] = "1"
+end
+
if _OPTIONS["NOASM"]=="1" and not _OPTIONS["FORCE_DRC_C_BACKEND"] then
_OPTIONS["FORCE_DRC_C_BACKEND"] = "1"
end
@@ -511,6 +524,11 @@ configuration { "gmake" }
dofile ("toolchain.lua")
+if _OPTIONS["USE_LIBUV"]=="0" then
+ defines {
+ "NO_LIBUV",
+ }
+end
if _OPTIONS["targetos"]=="windows" then
configuration { "x64" }
@@ -1023,9 +1041,6 @@ configuration { "android*" }
"-Wno-tautological-constant-out-of-range-compare",
"-Wno-tautological-pointer-compare",
}
- defines {
- "_POSIX_BARRIERS=1",
- }
archivesplit_size "20"
configuration { "pnacl" }