| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315 |
- --
- -- Copyright (c) 2012-2014 Daniele Bartolini and individual contributors.
- -- License: https://github.com/taylor001/crown/blob/master/LICENSE
- --
- solution "crown"
- configurations {
- "debug",
- "development",
- "release",
- }
- platforms {
- "x32",
- "x64",
- "native"
- }
- language "C++"
- CROWN_DIR = (path.getabsolute("..") .. "/")
- local CROWN_THIRD_DIR = (CROWN_DIR .. "third/")
- local CROWN_BUILD_DIR = (CROWN_DIR .. ".build/")
- dofile (CROWN_DIR .. "premake/toolchain.lua")
- toolchain(CROWN_BUILD_DIR, CROWN_THIRD_DIR)
- configuration { "linux-*" }
- links {
- "X11",
- "Xrandr",
- "pthread",
- "GL",
- "openal",
- "luajit",
- "dl",
- }
- configuration { "debug", "linux-*" }
- links {
- "bgfxDebug"
- }
- linkoptions {
- "-rdynamic",
- "-Wl,--start-group $(addprefix -l," ..
- " LowLevelClothCHECKED" ..
- " PhysX3CHECKED " ..
- " PhysX3CommonCHECKED" ..
- " PxTaskCHECKED" ..
- " LowLevelCHECKED" ..
- " PhysX3CharacterKinematicCHECKED" ..
- " PhysX3CookingCHECKED" ..
- " PhysX3ExtensionsCHECKED" ..
- " PhysX3VehicleCHECKED" ..
- " PhysXProfileSDKCHECKED" ..
- " PhysXVisualDebuggerSDKCHECKED" ..
- " PvdRuntimeCHECKED" ..
- " SceneQueryCHECKED" ..
- " SimulationControllerCHECKED" ..
- ") -Wl,--end-group"
- }
- configuration { "development", "linux-*" }
- links {
- "bgfxDebug"
- }
- linkoptions
- {
- "-rdynamic",
- "-Wl,--start-group $(addprefix -l," ..
- " LowLevelClothPROFILE" ..
- " PhysX3PROFILE " ..
- " PhysX3CommonPROFILE" ..
- " PxTaskPROFILE" ..
- " LowLevelPROFILE" ..
- " PhysX3CharacterKinematicPROFILE" ..
- " PhysX3CookingPROFILE" ..
- " PhysX3ExtensionsPROFILE" ..
- " PhysX3VehiclePROFILE" ..
- " PhysXProfileSDKPROFILE" ..
- " PhysXVisualDebuggerSDKPROFILE" ..
- " PvdRuntimePROFILE" ..
- " SceneQueryPROFILE" ..
- " SimulationControllerPROFILE" ..
- ") -Wl,--end-group"
- }
- configuration { "release", "linux-*" }
- links {
- "bgfxRelease"
- }
- linkoptions {
- "-Wl,--start-group $(addprefix -l," ..
- " LowLevelCloth" ..
- " PhysX3 " ..
- " PhysX3Common" ..
- " PxTask" ..
- " LowLevel" ..
- " PhysX3CharacterKinematic" ..
- " PhysX3Cooking" ..
- " PhysX3Extensions" ..
- " PhysX3Vehicle" ..
- " PhysXProfileSDK" ..
- " PhysXVisualDebuggerSDK" ..
- " PvdRuntime" ..
- " SceneQuery" ..
- " SimulationController" ..
- ") -Wl,--end-group"
- }
- configuration { "android*" }
- kind "ConsoleApp"
- targetextension ".so"
- linkoptions {
- "-shared"
- }
- links {
- "EGL",
- "GLESv2",
- ":libluajit.a",
- "OpenSLES",
- }
- configuration { "debug", "android-arm" }
- links {
- ":libbgfxDebug.a",
- }
- linkoptions {
- "-Wl,--start-group $(addprefix -l," ..
- " LowLevelCloth" ..
- " PhysX3 " ..
- " PhysX3Common" ..
- " PxTask" ..
- " LowLevel" ..
- " PhysX3CharacterKinematic" ..
- " PhysX3Cooking" ..
- " PhysX3Extensions" ..
- " PhysX3Vehicle" ..
- " PhysXProfileSDK" ..
- " PhysXVisualDebuggerSDK" ..
- " PvdRuntime" ..
- " SceneQuery" ..
- " SimulationController" ..
- ") -Wl,--end-group"
- }
- configuration { "development", "android-arm" }
- links {
- ":libbgfxDebug.a",
- }
- linkoptions {
- "-Wl,--start-group $(addprefix -l," ..
- " LowLevelCloth" ..
- " PhysX3 " ..
- " PhysX3Common" ..
- " PxTask" ..
- " LowLevel" ..
- " PhysX3CharacterKinematic" ..
- " PhysX3Cooking" ..
- " PhysX3Extensions" ..
- " PhysX3Vehicle" ..
- " PhysXProfileSDK" ..
- " PhysXVisualDebuggerSDK" ..
- " PvdRuntime" ..
- " SceneQuery" ..
- " SimulationController" ..
- ") -Wl,--end-group"
- }
- configuration { "release", "android-arm" }
- links {
- ":libbgfxRelease.a",
- }
- linkoptions {
- "-Wl,--start-group $(addprefix -l," ..
- " LowLevelCloth" ..
- " PhysX3 " ..
- " PhysX3Common" ..
- " PxTask" ..
- " LowLevel" ..
- " PhysX3CharacterKinematic" ..
- " PhysX3Cooking" ..
- " PhysX3Extensions" ..
- " PhysX3Vehicle" ..
- " PhysXProfileSDK" ..
- " PhysXVisualDebuggerSDK" ..
- " PvdRuntime" ..
- " SceneQuery" ..
- " SimulationController" ..
- ") -Wl,--end-group"
- }
- configuration { "vs*" }
- links {
- "OpenGL32",
- "lua51",
- "OpenAL32",
- "dbghelp"
- }
- configuration { "debug", "x32", "vs*"}
- links {
- "PhysX3CharacterKinematicCHECKED_x86",
- "PhysX3CHECKED_x86",
- "PhysX3CommonCHECKED_x86",
- "PhysX3CookingCHECKED_x86",
- "PhysX3ExtensionsCHECKED",
- "bgfxDebug"
- }
- configuration { "debug", "x64", "vs*" }
- links {
- "PhysX3CharacterKinematicCHECKED_x64",
- "PhysX3CHECKED_x64",
- "PhysX3CommonCHECKED_x64",
- "PhysX3CookingCHECKED_x64",
- "PhysX3ExtensionsCHECKED",
- "bgfxDebug"
- }
- configuration { "development", "x32", "vs*" }
- links {
- "PhysX3CharacterKinematicPROFILE_x86",
- "PhysX3PROFILE_x86",
- "PhysX3CommonPROFILE_x86",
- "PhysX3CookingPROFILE_x86",
- "PhysX3ExtensionsPROFILE",
- "bgfxDebug"
- }
- configuration { "development", "x64", "vs*" }
- links {
- "PhysX3CharacterKinematicPROFILE_x64",
- "PhysX3PROFILE_x64",
- "PhysX3CommonPROFILE_x64",
- "PhysX3CookingPROFILE_x64",
- "PhysX3ExtensionsPROFILE",
- "bgfxDebug"
- }
- configuration { "release", "x32", "vs*" }
- links {
- "PhysX3CharacterKinematic_x86",
- "PhysX3_x86",
- "PhysX3Common_x86",
- "PhysX3Cooking_x86",
- "PhysX3Extensions",
- "bgfxRelease"
- }
- configuration { "release", "x64", "vs*" }
- links {
- "PhysX3CharacterKinematic_x64",
- "PhysX3_x64",
- "PhysX3Common_x64",
- "PhysX3Cooking_x64",
- "PhysX3Extensions",
- "bgfxRelease"
- }
- dofile "crown.lua"
- crown_project("", "WindowedApp", {})
- -- Install
- configuration { "android-arm" }
- postbuildcommands {
- "cp -r " .. CROWN_DIR .. ".build/android-arm/bin/* " .. "$(CROWN_INSTALL_DIR)/" .. "bin/android-arm/",
- }
- configuration { "x32", "linux-*" }
- postbuildcommands {
- "cp -r " .. CROWN_DIR .. ".build/linux32/bin/* " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux32/",
- "cp " .. CROWN_THIRD_DIR .. "luajit/src/luajit " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux32/",
- "cp -r " .. CROWN_THIRD_DIR .. "luajit/src/jit " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux32/",
- }
- configuration { "x64", "linux-*" }
- postbuildcommands {
- "cp -r " .. CROWN_DIR .. ".build/linux64/bin/* " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux64/",
- "cp " .. CROWN_THIRD_DIR .. "luajit/src/luajit " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux64/",
- "cp -r " .. CROWN_THIRD_DIR .. "luajit/src/jit " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux64/",
- }
- configuration { "x32", "vs*" }
- postbuildcommands {
- "cp -r " .. CROWN_DIR .. ".build/win32/bin/* " .. "$(CROWN_INSTALL_DIR)/" .. "bin/win32/",
- "cp " .. CROWN_THIRD_DIR .. "luajit/src/luajit.exe " .. "$(CROWN_INSTALL_DIR)/" .. "bin/win32/",
- "cp -r " .. CROWN_THIRD_DIR .. "luajit/src/jit " .. "$(CROWN_INSTALL_DIR)/" .. "bin/win32/",
- }
- configuration { "x64", "vs*" }
- postbuildcommands {
- "cp -r " .. CROWN_DIR .. ".build/win64/bin/* " .. "$(CROWN_INSTALL_DIR)/" .. "bin/win64/",
- "cp " .. CROWN_THIRD_DIR .. "luajit/src/luajit.exe " .. "$(CROWN_INSTALL_DIR)/" .. "bin/win64/",
- "cp -r " .. CROWN_THIRD_DIR .. "luajit/src/jit " .. "$(CROWN_INSTALL_DIR)/" .. "bin/win64/",
- }
- configuration { "debug or development", "x32", "linux-*" }
- postbuildcommands {
- "cp " .. CROWN_THIRD_DIR .. "bgfx/.build/linux32_gcc/bin/shadercDebug " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux32"
- }
- configuration { "release", "x32", "linux-*" }
- postbuildcommands {
- "cp " .. CROWN_THIRD_DIR .. "bgfx/.build/linux32_gcc/bin/shadercRelease " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux32"
- }
- configuration { "debug or development", "x64", "linux-*" }
- postbuildcommands {
- "cp " .. CROWN_THIRD_DIR .. "bgfx/.build/linux64_gcc/bin/shadercDebug " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux64"
- }
- configuration { "release", "x64", "linux-*" }
- postbuildcommands {
- "cp " .. CROWN_THIRD_DIR .. "bgfx/.build/linux64_gcc/bin/shadercRelease " .. "$(CROWN_INSTALL_DIR)/" .. "bin/linux64"
- }
|