summaryrefslogtreecommitdiffstatshomepage
path: root/scripts
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-12-31 09:07:40 -0500
committer Nathan Woods <npwoods@mess.org>2016-12-31 11:17:07 -0500
commit5be1b8e6e044cbd13ccc3e8fbbeab00ec576784b (patch)
treec11f8471b7b6868d26721e4cb53edeec94b46bae /scripts
parent11a44f2c75044add678d5fcae40365ba873ff6ff (diff)
Introduced utf8proc and created wrapper code to expose a prettier API
Diffstat (limited to 'scripts')
-rw-r--r--scripts/src/3rdparty.lua39
-rw-r--r--scripts/src/main.lua1
-rw-r--r--scripts/src/tools.lua4
3 files changed, 44 insertions, 0 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
index 8bdc39eddb0..211cd7c5fd8 100644
--- a/scripts/src/3rdparty.lua
+++ b/scripts/src/3rdparty.lua
@@ -1585,3 +1585,42 @@ project "linenoise-ng"
MAME_DIR .. "3rdparty/linenoise-ng/src/wcwidth.cpp",
}
end
+
+
+--------------------------------------------------
+-- utf8proc library objects
+--------------------------------------------------
+
+if not _OPTIONS["with-system-utf8proc"] then
+project "utf8proc"
+ uuid "1f881f09-0395-4483-ac37-2935fb092187"
+ kind "StaticLib"
+
+ defines {
+ "UTF8PROC_DLLEXPORT="
+ }
+
+ configuration "Debug"
+ defines {
+ "verbose=-1",
+ }
+
+ configuration { "gmake or ninja" }
+ buildoptions_c {
+ "-Wno-strict-prototypes",
+ }
+
+ configuration { }
+ defines {
+ "ZLIB_CONST",
+ }
+
+ files {
+ MAME_DIR .. "3rdparty/utf8proc/utf8proc.c"
+ }
+else
+links {
+ ext_lib("utf8proc"),
+}
+end
+
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
index a78965a52b2..22bef465c18 100644
--- a/scripts/src/main.lua
+++ b/scripts/src/main.lua
@@ -276,6 +276,7 @@ end
links {
ext_lib("zlib"),
ext_lib("flac"),
+ ext_lib("utf8proc"),
}
if (STANDALONE~=true) then
links {
diff --git a/scripts/src/tools.lua b/scripts/src/tools.lua
index 0d784113b82..a38a2cc81a3 100644
--- a/scripts/src/tools.lua
+++ b/scripts/src/tools.lua
@@ -73,6 +73,7 @@ links {
"ocore_" .. _OPTIONS["osd"],
ext_lib("zlib"),
ext_lib("flac"),
+ ext_lib("utf8proc"),
}
includedirs {
@@ -206,6 +207,7 @@ links {
"ocore_" .. _OPTIONS["osd"],
ext_lib("zlib"),
ext_lib("flac"),
+ ext_lib("utf8proc"),
}
includedirs {
@@ -252,6 +254,7 @@ links {
"ocore_" .. _OPTIONS["osd"],
ext_lib("zlib"),
ext_lib("flac"),
+ ext_lib("utf8proc"),
}
includedirs {
@@ -675,6 +678,7 @@ links {
"ocore_" .. _OPTIONS["osd"],
ext_lib("zlib"),
ext_lib("flac"),
+ ext_lib("utf8proc"),
}
includedirs {