mirror of
https://github.com/holub/mame
synced 2025-06-10 06:47:18 +03:00
Fixed building using system utf8proc
This commit is contained in:
parent
1b65fa41b5
commit
c50ddac28b
5
makefile
5
makefile
@ -64,6 +64,7 @@
|
|||||||
# USE_SYSTEM_LIB_PORTMIDI = 1
|
# USE_SYSTEM_LIB_PORTMIDI = 1
|
||||||
# USE_SYSTEM_LIB_PORTAUDIO = 1
|
# USE_SYSTEM_LIB_PORTAUDIO = 1
|
||||||
# USE_BUNDLED_LIB_SDL2 = 1
|
# USE_BUNDLED_LIB_SDL2 = 1
|
||||||
|
# USE_SYSTEM_LIB_UTF8PROC = 1
|
||||||
|
|
||||||
# MESA_INSTALL_ROOT = /opt/mesa
|
# MESA_INSTALL_ROOT = /opt/mesa
|
||||||
# SDL_INSTALL_ROOT = /opt/sdl2
|
# SDL_INSTALL_ROOT = /opt/sdl2
|
||||||
@ -460,6 +461,10 @@ ifdef USE_SYSTEM_LIB_PORTAUDIO
|
|||||||
PARAMS += --with-system-portaudio='$(USE_SYSTEM_LIB_PORTAUDIO)'
|
PARAMS += --with-system-portaudio='$(USE_SYSTEM_LIB_PORTAUDIO)'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifdef USE_SYSTEM_LIB_UTF8PROC
|
||||||
|
PARAMS += --with-system-utf8proc='$(USE_SYSTEM_LIB_UTF8PROC)'
|
||||||
|
endif
|
||||||
|
|
||||||
# reverse logic for this one
|
# reverse logic for this one
|
||||||
|
|
||||||
ifdef USE_BUNDLED_LIB_SDL2
|
ifdef USE_BUNDLED_LIB_SDL2
|
||||||
|
@ -14,6 +14,7 @@ local extlibs = {
|
|||||||
portmidi = { "portmidi", "3rdparty/portmidi/pm_common" },
|
portmidi = { "portmidi", "3rdparty/portmidi/pm_common" },
|
||||||
portaudio = { "portaudio", "3rdparty/portaudio/include" },
|
portaudio = { "portaudio", "3rdparty/portaudio/include" },
|
||||||
lua = { "lua", "3rdparty/lua/src" },
|
lua = { "lua", "3rdparty/lua/src" },
|
||||||
|
utf8proc = { "utf8proc", "3rdparty/utf8proc" },
|
||||||
}
|
}
|
||||||
|
|
||||||
-- system lib options
|
-- system lib options
|
||||||
@ -57,6 +58,11 @@ newoption {
|
|||||||
description = "Use system LUA library",
|
description = "Use system LUA library",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = "with-system-utf8proc",
|
||||||
|
description = "Use system utf8proc library",
|
||||||
|
}
|
||||||
|
|
||||||
-- build helpers
|
-- build helpers
|
||||||
function ext_lib(lib)
|
function ext_lib(lib)
|
||||||
local opt = _OPTIONS["with-system-" .. lib]
|
local opt = _OPTIONS["with-system-" .. lib]
|
||||||
|
@ -22,6 +22,7 @@ project "utils"
|
|||||||
ext_includedir("expat"),
|
ext_includedir("expat"),
|
||||||
ext_includedir("zlib"),
|
ext_includedir("zlib"),
|
||||||
ext_includedir("flac"),
|
ext_includedir("flac"),
|
||||||
|
ext_includedir("utf8proc"),
|
||||||
}
|
}
|
||||||
|
|
||||||
files {
|
files {
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
#define UTF8PROC_DLLEXPORT
|
#define UTF8PROC_DLLEXPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "utf8proc/utf8proc.h"
|
#include <utf8proc.h>
|
||||||
|
|
||||||
#include <codecvt>
|
#include <codecvt>
|
||||||
#include <locale>
|
#include <locale>
|
||||||
|
Loading…
Reference in New Issue
Block a user