summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/src/3rdparty.lua
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2020-10-15 04:28:42 +1100
committer Vas Crabb <vas@vastheman.com>2020-10-15 04:28:42 +1100
commitd256f069a5aa30bf5ffcfc4b73047ce0f372ea10 (patch)
tree8df1bd2e70d7e15e59928203d0eb687c82307bff /scripts/src/3rdparty.lua
parent13850f3011e000307925aefd918efe2f0ce6649d (diff)
-3rdparty/expat: Update to 2.2.10."
-Fixed tiny build (missing s11c_bg_device) and unused lambda capture in emu/rendlay.cpp.
Diffstat (limited to 'scripts/src/3rdparty.lua')
-rw-r--r--scripts/src/3rdparty.lua23
1 files changed, 21 insertions, 2 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 5056334b79e..27383c3a8ed 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -19,18 +19,21 @@ project "expat"
kind "StaticLib"
-- fake out the enough of expat_config.h to get by
+ -- could possibly add more defines here for specific targets
defines {
"HAVE_MEMMOVE",
"HAVE_STDINT_H",
"HAVE_STDLIB_H",
"HAVE_STRING_H",
+ "PACKAGE=\"expat\"",
"PACKAGE_BUGREPORT=\"expat-bugs@libexpat.org\"",
"PACKAGE_NAME=\"expat\"",
- "PACKAGE_STRING=\"expat 2.1.1\"",
+ "PACKAGE_STRING=\"expat 2.2.10\"",
"PACKAGE_TARNAME=\"expat\"",
"PACKAGE_URL=\"\"",
- "PACKAGE_VERSION=\"2.1.1\"",
+ "PACKAGE_VERSION=\"2.2.10\"",
"STDC_HEADERS",
+ "VERSION=\"2.2.10\"",
"XML_CONTEXT_BYTES=1024",
"XML_DTD",
"XML_NS",
@@ -45,6 +48,22 @@ else
"BYTEORDER=1234",
}
end
+if _OPTIONS["targetos"]=="macosx" or _OPTIONS["targetos"]=="freebsd" then
+ defines {
+ "HAVE_ARC4RANDOM",
+ }
+end
+if BASE_TARGETOS=="unix" then
+ defines {
+ "HAVE_DLFCN_H",
+ "HAVE_FCNTL_H",
+ "HAVE_MMAP",
+ "HAVE_SYS_STAT_H",
+ "HAVE_SYS_TYPES_H",
+ "HAVE_UNISTD_H",
+ "XML_DEV_URANDOM",
+ }
+end
configuration { "vs*" }
buildoptions {