diff options
author | 2015-04-10 12:37:34 +0200 | |
---|---|---|
committer | 2015-04-10 12:37:34 +0200 | |
commit | 32dc24420c93ab49fc29974888f215c1300f83fd (patch) | |
tree | c7c959f734592ffe764bc68bafc83716ac2cfd88 /scripts/src | |
parent | a43d6473decb379b5b6f28ab36e71e4a61192385 (diff) |
Some changes for FreeBSD and Solaris, will be sent upstream as well (nw)
Diffstat (limited to 'scripts/src')
-rw-r--r-- | scripts/src/3rdparty.lua | 11 | ||||
-rw-r--r-- | scripts/src/main.lua | 6 |
2 files changed, 13 insertions, 4 deletions
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua index 66e98be2a5f..22ef38f49a5 100644 --- a/scripts/src/3rdparty.lua +++ b/scripts/src/3rdparty.lua @@ -383,7 +383,7 @@ project "sqllite3" -------------------------------------------------- -- portmidi library objects -------------------------------------------------- - +if _OPTIONS["NO_USE_MIDI"]=="0" then project "portmidi" uuid "587f2da6-3274-4a65-86a2-f13ea315bb98" kind "StaticLib" @@ -433,7 +433,7 @@ project "portmidi" MAME_DIR .. "3rdparty/portmidi/porttime/ptmacosx_mach.c", } end - +end -------------------------------------------------- -- BGFX library objects -------------------------------------------------- @@ -464,7 +464,12 @@ project "bgfx" includedirs { MAME_DIR .. "3rdparty/bx/include/compat/osx", } - + + configuration { "freebsd" } + includedirs { + MAME_DIR .. "3rdparty/bx/include/compat/freebsd", + } + configuration { "gmake" } buildoptions { "-Wno-uninitialized", diff --git a/scripts/src/main.lua b/scripts/src/main.lua index 42bfe245537..8604987ffda 100644 --- a/scripts/src/main.lua +++ b/scripts/src/main.lua @@ -59,8 +59,12 @@ function mainProject(_target, _subtarget) "zlib", "jsoncpp", "mongoose", - "portmidi", } + if _OPTIONS["NO_USE_MIDI"]=="0" then + links { + "portmidi", + } + end if (USE_BGFX == 1) then links { "bgfx" |