protot/3rdparty/bx/scripts/bx.lua

49 lines
1.1 KiB
Lua
Raw Permalink Normal View History

2016-08-29 22:31:11 +02:00
--
2017-04-11 08:16:10 +02:00
-- Copyright 2010-2017 Branimir Karadzic. All rights reserved.
2016-08-29 22:31:11 +02:00
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--
2017-04-11 08:16:10 +02:00
2016-08-29 22:31:11 +02:00
project "bx"
kind "StaticLib"
2017-04-11 08:16:10 +02:00
includedirs {
path.join(BX_DIR, "include"),
}
files {
path.join(BX_DIR, "include/**.h"),
path.join(BX_DIR, "include/**.inl"),
path.join(BX_DIR, "src/**.cpp"),
}
configuration { "linux-*" }
buildoptions {
"-fPIC",
2016-08-29 22:31:11 +02:00
}
configuration {}
2017-04-11 08:16:10 +02:00
if _OPTIONS["with-amalgamated"] then
excludes {
path.join(BX_DIR, "src/commandline.cpp"),
path.join(BX_DIR, "src/crt.cpp"),
path.join(BX_DIR, "src/crtimpl.cpp"),
path.join(BX_DIR, "src/debug.cpp"),
path.join(BX_DIR, "src/dtoa.cpp"),
path.join(BX_DIR, "src/fpumath.cpp"),
path.join(BX_DIR, "src/mutex.cpp"),
path.join(BX_DIR, "src/os.cpp"),
path.join(BX_DIR, "src/sem.cpp"),
path.join(BX_DIR, "src/sort.cpp"),
path.join(BX_DIR, "src/string.cpp"),
path.join(BX_DIR, "src/thread.cpp"),
path.join(BX_DIR, "src/timer.cpp"),
}
else
excludes {
path.join(BX_DIR, "src/amalgamated.**"),
}
end
configuration {}