2016-08-29 22:31:11 +02:00
|
|
|
--
|
2018-02-03 17:39:28 +01:00
|
|
|
-- Copyright 2010-2018 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"),
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BX_DIR, "3rdparty"),
|
2017-04-11 08:16:10 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
files {
|
|
|
|
path.join(BX_DIR, "include/**.h"),
|
|
|
|
path.join(BX_DIR, "include/**.inl"),
|
|
|
|
path.join(BX_DIR, "src/**.cpp"),
|
|
|
|
}
|
|
|
|
|
2018-02-03 17:39:28 +01:00
|
|
|
configuration { "Debug" }
|
|
|
|
defines {
|
|
|
|
"BX_CONFIG_DEBUG=1",
|
|
|
|
}
|
|
|
|
|
2017-04-11 08:16:10 +02:00
|
|
|
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 {
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BX_DIR, "src/allocator.cpp"),
|
|
|
|
path.join(BX_DIR, "src/bx.cpp"),
|
2017-04-11 08:16:10 +02:00
|
|
|
path.join(BX_DIR, "src/commandline.cpp"),
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BX_DIR, "src/crtnone.cpp"),
|
2017-04-11 08:16:10 +02:00
|
|
|
path.join(BX_DIR, "src/debug.cpp"),
|
|
|
|
path.join(BX_DIR, "src/dtoa.cpp"),
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BX_DIR, "src/easing.cpp"),
|
|
|
|
path.join(BX_DIR, "src/file.cpp"),
|
|
|
|
path.join(BX_DIR, "src/filepath.cpp"),
|
|
|
|
path.join(BX_DIR, "src/hash.cpp"),
|
|
|
|
path.join(BX_DIR, "src/math.cpp"),
|
2017-04-11 08:16:10 +02:00
|
|
|
path.join(BX_DIR, "src/mutex.cpp"),
|
|
|
|
path.join(BX_DIR, "src/os.cpp"),
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BX_DIR, "src/process.cpp"),
|
|
|
|
path.join(BX_DIR, "src/semaphore.cpp"),
|
|
|
|
path.join(BX_DIR, "src/settings.cpp"),
|
2017-04-11 08:16:10 +02:00
|
|
|
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"),
|
2018-02-03 17:39:28 +01:00
|
|
|
path.join(BX_DIR, "src/url.cpp"),
|
2017-04-11 08:16:10 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
excludes {
|
|
|
|
path.join(BX_DIR, "src/amalgamated.**"),
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
configuration {}
|