mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Added amalgamated build.
This commit is contained in:
@@ -4,7 +4,6 @@
|
||||
--
|
||||
|
||||
project "bin2c"
|
||||
uuid "60eaa654-7d06-11e4-be8e-880965202986"
|
||||
kind "ConsoleApp"
|
||||
|
||||
includedirs {
|
||||
@@ -23,6 +22,11 @@ project "bin2c"
|
||||
configuration { "mingw-*" }
|
||||
targetextension ".exe"
|
||||
|
||||
configuration { "linux-*" }
|
||||
links {
|
||||
"pthread",
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
strip()
|
||||
|
||||
@@ -7,13 +7,13 @@ project "bx"
|
||||
kind "StaticLib"
|
||||
|
||||
includedirs {
|
||||
"../include",
|
||||
path.join(BX_DIR, "include"),
|
||||
}
|
||||
|
||||
files {
|
||||
"../include/**.h",
|
||||
"../include/**.inl",
|
||||
"../src/**.cpp",
|
||||
path.join(BX_DIR, "include/**.h"),
|
||||
path.join(BX_DIR, "include/**.inl"),
|
||||
path.join(BX_DIR, "src/**.cpp"),
|
||||
}
|
||||
|
||||
configuration { "linux-*" }
|
||||
@@ -22,3 +22,27 @@ project "bx"
|
||||
}
|
||||
|
||||
configuration {}
|
||||
|
||||
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 {}
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
|
||||
--
|
||||
|
||||
newoption {
|
||||
trigger = "with-amalgamated",
|
||||
description = "Enable amalgamated build.",
|
||||
}
|
||||
|
||||
solution "bx"
|
||||
configurations {
|
||||
"Debug",
|
||||
|
||||
Reference in New Issue
Block a user