mirror of
https://github.com/holub/mame
synced 2025-06-07 21:33:45 +03:00
Added ability to build using system libuv (1.8.0 or higher required)
This commit is contained in:
parent
dcab55bf53
commit
d0f99d22a7
5
makefile
5
makefile
@ -61,6 +61,7 @@
|
|||||||
# USE_SYSTEM_LIB_SQLITE3 = 1
|
# USE_SYSTEM_LIB_SQLITE3 = 1
|
||||||
# USE_SYSTEM_LIB_PORTMIDI = 1
|
# USE_SYSTEM_LIB_PORTMIDI = 1
|
||||||
# USE_SYSTEM_LIB_PORTAUDIO = 1
|
# USE_SYSTEM_LIB_PORTAUDIO = 1
|
||||||
|
# USE_SYSTEM_LIB_UV = 1
|
||||||
# USE_BUNDLED_LIB_SDL2 = 1
|
# USE_BUNDLED_LIB_SDL2 = 1
|
||||||
|
|
||||||
# MESA_INSTALL_ROOT = /opt/mesa
|
# MESA_INSTALL_ROOT = /opt/mesa
|
||||||
@ -403,6 +404,10 @@ ifdef USE_BUNDLED_LIB_SDL2
|
|||||||
PARAMS += --with-bundled-sdl2
|
PARAMS += --with-bundled-sdl2
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifndef USE_SYSTEM_LIB_UV
|
||||||
|
PARAMS += --with-bundled-libuv
|
||||||
|
endif
|
||||||
|
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
# distribution may change things
|
# distribution may change things
|
||||||
#-------------------------------------------------
|
#-------------------------------------------------
|
||||||
|
@ -162,6 +162,11 @@ newoption {
|
|||||||
description = 'Build bundled SDL2 library',
|
description = 'Build bundled SDL2 library',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newoption {
|
||||||
|
trigger = 'with-bundled-libuv',
|
||||||
|
description = 'Build bundled libuv library',
|
||||||
|
}
|
||||||
|
|
||||||
newoption {
|
newoption {
|
||||||
trigger = "distro",
|
trigger = "distro",
|
||||||
description = "Choose distribution",
|
description = "Choose distribution",
|
||||||
|
@ -951,6 +951,7 @@ end
|
|||||||
-- libuv library objects
|
-- libuv library objects
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
if _OPTIONS["USE_LIBUV"]=="1" then
|
if _OPTIONS["USE_LIBUV"]=="1" then
|
||||||
|
if _OPTIONS["with-bundled-libuv"] then
|
||||||
project "uv"
|
project "uv"
|
||||||
uuid "cd2afe7f-139d-49c3-9000-fc9119f3cea0"
|
uuid "cd2afe7f-139d-49c3-9000-fc9119f3cea0"
|
||||||
kind "StaticLib"
|
kind "StaticLib"
|
||||||
@ -1160,6 +1161,11 @@ project "http-parser"
|
|||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
else
|
||||||
|
links {
|
||||||
|
"libuv",
|
||||||
|
}
|
||||||
|
end
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
-- SDL2 library
|
-- SDL2 library
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user