|
|
@@ -148,68 +148,16 @@ function crown_project(_name, _kind, _defines)
|
|
|
"NDEBUG"
|
|
|
}
|
|
|
|
|
|
- configuration { "linux*" }
|
|
|
- includedirs {
|
|
|
- "$(PHYSX_SDK_LINUX)/Include",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/common",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/characterkinematic",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/cloth",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/common",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/cooking",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/extensions",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/foundation",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/geometry",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/particles",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/physxprofilesdk",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/physxvisualdebuggersdk",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/pvd",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/pxtask",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/RepX",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/RepXUpgrader",
|
|
|
- "$(PHYSX_SDK_LINUX)/Include/vehicle",
|
|
|
- }
|
|
|
-
|
|
|
configuration { "android*" }
|
|
|
- includedirs {
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/common",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/characterkinematic",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/cloth",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/common",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/cooking",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/extensions",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/foundation",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/geometry",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/particles",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/physxprofilesdk",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/physxvisualdebuggersdk",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/pvd",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/pxtask",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/RepX",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/RepXUpgrader",
|
|
|
- "$(PHYSX_SDK_ANDROID)/Include/vehicle",
|
|
|
+ kind "ConsoleApp"
|
|
|
+ targetextension ".so"
|
|
|
+ linkoptions {
|
|
|
+ "-shared"
|
|
|
}
|
|
|
-
|
|
|
- configuration { "vs*" }
|
|
|
- includedirs {
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/common",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/characterkinematic",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/cloth",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/common",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/cooking",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/extensions",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/foundation",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/geometry",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/particles",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/physxprofilesdk",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/physxvisualdebuggersdk",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/pvd",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/pxtask",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/RepX",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/RepXUpgrader",
|
|
|
- "$(PHYSX_SDK_WINDOWS)/Include/vehicle",
|
|
|
- "$(DXSDK_DIR)/Include",
|
|
|
+ links {
|
|
|
+ "EGL",
|
|
|
+ "GLESv2",
|
|
|
+ "OpenSLES",
|
|
|
}
|
|
|
|
|
|
configuration { "linux-*" }
|
|
|
@@ -221,234 +169,171 @@ function crown_project(_name, _kind, _defines)
|
|
|
"dl",
|
|
|
}
|
|
|
|
|
|
- configuration { "x32", "debug", "linux-*" }
|
|
|
- linkoptions {
|
|
|
- "-rdynamic",
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " PhysX3CHECKED_x86" ..
|
|
|
- " PhysX3CommonCHECKED_x86" ..
|
|
|
- " PhysX3CookingCHECKED_x86" ..
|
|
|
- " PhysX3CharacterKinematicCHECKED_x86" ..
|
|
|
- " PhysX3ExtensionsCHECKED" ..
|
|
|
- " PhysX3VehicleCHECKED" ..
|
|
|
- " PhysXProfileSDKCHECKED" ..
|
|
|
- " PhysXVisualDebuggerSDKCHECKED" ..
|
|
|
- " PxTaskCHECKED" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
+ configuration { "vs*" }
|
|
|
+ links {
|
|
|
+ "OpenGL32",
|
|
|
+ "dbghelp",
|
|
|
+ "xinput",
|
|
|
}
|
|
|
|
|
|
- configuration { "x64", "debug", "linux-*" }
|
|
|
- linkoptions {
|
|
|
- "-rdynamic",
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " PhysX3CHECKED_x64" ..
|
|
|
- " PhysX3CommonCHECKED_x64" ..
|
|
|
- " PhysX3CookingCHECKED_x64" ..
|
|
|
- " PhysX3CharacterKinematicCHECKED_x64" ..
|
|
|
- " PhysX3ExtensionsCHECKED" ..
|
|
|
- " PhysX3VehicleCHECKED" ..
|
|
|
- " PhysXProfileSDKCHECKED" ..
|
|
|
- " PhysXVisualDebuggerSDKCHECKED" ..
|
|
|
- " PxTaskCHECKED" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
+ -- PhysX
|
|
|
+ local function includedirs_physx(prefix)
|
|
|
+ includedirs {
|
|
|
+ prefix .. "Include",
|
|
|
+ prefix .. "Include/common",
|
|
|
+ prefix .. "Include/characterkinematic",
|
|
|
+ prefix .. "Include/cloth",
|
|
|
+ prefix .. "Include/common",
|
|
|
+ prefix .. "Include/cooking",
|
|
|
+ prefix .. "Include/extensions",
|
|
|
+ prefix .. "Include/foundation",
|
|
|
+ prefix .. "Include/geometry",
|
|
|
+ prefix .. "Include/particles",
|
|
|
+ prefix .. "Include/physxprofilesdk",
|
|
|
+ prefix .. "Include/physxvisualdebuggersdk",
|
|
|
+ prefix .. "Include/pvd",
|
|
|
+ prefix .. "Include/pxtask",
|
|
|
+ prefix .. "Include/RepX",
|
|
|
+ prefix .. "Include/RepXUpgrader",
|
|
|
+ prefix .. "Include/vehicle",
|
|
|
}
|
|
|
+ end
|
|
|
|
|
|
- configuration { "x32", "development", "linux-*" }
|
|
|
- linkoptions
|
|
|
- {
|
|
|
- "-rdynamic",
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " PhysX3PROFILE_x86" ..
|
|
|
- " PhysX3CommonPROFILE_x86" ..
|
|
|
- " PhysX3CookingPROFILE_x86" ..
|
|
|
- " PhysX3CharacterKinematicPROFILE_x86" ..
|
|
|
- " PhysX3ExtensionsPROFILE" ..
|
|
|
- " PhysX3VehiclePROFILE" ..
|
|
|
- " PhysXProfileSDKPROFILE" ..
|
|
|
- " PhysXVisualDebuggerSDKPROFILE" ..
|
|
|
- " PxTaskPROFILE" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
- }
|
|
|
+ local function links_physx(config, os, platform)
|
|
|
+ if os == "linux" then
|
|
|
+ if config == "CHECKED" or config == "PROFILE" then
|
|
|
+ linkoptions {
|
|
|
+ "-rdynamic",
|
|
|
+ }
|
|
|
+ end
|
|
|
+
|
|
|
+ linkoptions {
|
|
|
+ "-Wl,--start-group $(addprefix -l," ..
|
|
|
+ " PhysX3" .. config .. "_" .. platform ..
|
|
|
+ " PhysX3Common" .. config .. "_" .. platform ..
|
|
|
+ " PhysX3Cooking" .. config .. "_" .. platform ..
|
|
|
+ " PhysX3CharacterKinematic" .. config .. "_" .. platform ..
|
|
|
+ " PhysX3Extensions" .. config ..
|
|
|
+ " PhysX3Vehicle" .. config ..
|
|
|
+ " PhysXProfileSDK" .. config ..
|
|
|
+ " PhysXVisualDebuggerSDK" .. config ..
|
|
|
+ " PxTask" .. config ..
|
|
|
+ ") -Wl,--end-group"
|
|
|
+ }
|
|
|
+ end
|
|
|
+
|
|
|
+ if os == "android" then
|
|
|
+ linkoptions {
|
|
|
+ "-Wl,--start-group $(addprefix -l," ..
|
|
|
+ " LowLevelCloth" .. config ..
|
|
|
+ " PhysX3 " .. config ..
|
|
|
+ " PhysX3Common" .. config ..
|
|
|
+ " PxTask" .. config ..
|
|
|
+ " LowLevel" .. config ..
|
|
|
+ " PhysX3CharacterKinematic" .. config ..
|
|
|
+ " PhysX3Cooking" .. config ..
|
|
|
+ " PhysX3Extensions" .. config ..
|
|
|
+ " PhysX3Vehicle" .. config ..
|
|
|
+ " PhysXProfileSDK" .. config ..
|
|
|
+ " PhysXVisualDebuggerSDK" .. config ..
|
|
|
+ " PvdRuntime" .. config ..
|
|
|
+ " SceneQuery" .. config ..
|
|
|
+ " SimulationController" .. config ..
|
|
|
+ ") -Wl,--end-group"
|
|
|
+ }
|
|
|
+ end
|
|
|
|
|
|
- configuration { "x64", "development", "linux-*" }
|
|
|
- linkoptions
|
|
|
- {
|
|
|
- "-rdynamic",
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " PhysX3PROFILE_x64" ..
|
|
|
- " PhysX3CommonPROFILE_x64" ..
|
|
|
- " PhysX3CookingPROFILE_x64" ..
|
|
|
- " PhysX3CharacterKinematicPROFILE_x64" ..
|
|
|
- " PhysX3ExtensionsPROFILE" ..
|
|
|
- " PhysX3VehiclePROFILE" ..
|
|
|
- " PhysXProfileSDKPROFILE" ..
|
|
|
- " PhysXVisualDebuggerSDKPROFILE" ..
|
|
|
- " PxTaskPROFILE" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
+ if os == "windows" then
|
|
|
+ links {
|
|
|
+ "PhysX3CharacterKinematic" .. config .. "_" .. platform,
|
|
|
+ "PhysX3" .. config .. "_" .. platform,
|
|
|
+ "PhysX3Common" .. config .. "_" .. platform,
|
|
|
+ "PhysX3Cooking" .. config .. "_" .. platform,
|
|
|
+ "PhysX3Extensions",
|
|
|
+ }
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
+ configuration { "android*" }
|
|
|
+ includedirs_physx("$(PHYSX_SDK_ANDROID)/")
|
|
|
+
|
|
|
+ configuration { "linux*" }
|
|
|
+ includedirs_physx("$(PHYSX_SDK_LINUX)/")
|
|
|
+
|
|
|
+ configuration { "vs*" }
|
|
|
+ includedirs_physx("$(PHYSX_SDK_WINDOWS)/")
|
|
|
+
|
|
|
+ configuration { "android-arm" }
|
|
|
+ libdirs {
|
|
|
+ "$(PHYSX_SDK_ANDROID)/Lib/android9_neon",
|
|
|
}
|
|
|
|
|
|
- configuration { "x32", "release", "linux-*" }
|
|
|
- linkoptions {
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " PhysX3_x86" ..
|
|
|
- " PhysX3Common_x86" ..
|
|
|
- " PhysX3Cooking_x86" ..
|
|
|
- " PhysX3CharacterKinematic_x86" ..
|
|
|
- " PhysX3Extensions" ..
|
|
|
- " PhysX3Vehicle" ..
|
|
|
- " PhysXProfileSDK" ..
|
|
|
- " PhysXVisualDebuggerSDK" ..
|
|
|
- " PxTask" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
+ configuration { "x32", "linux-*" }
|
|
|
+ libdirs {
|
|
|
+ "$(PHYSX_SDK_LINUX)/Lib/linux32",
|
|
|
+ "$(PHYSX_SDK_LINUX)/Bin/linux32",
|
|
|
}
|
|
|
|
|
|
- configuration { "x64", "release", "linux-*" }
|
|
|
- linkoptions {
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " PhysX3_x64" ..
|
|
|
- " PhysX3Common_x64" ..
|
|
|
- " PhysX3Cooking_x64" ..
|
|
|
- " PhysX3CharacterKinematic_x64" ..
|
|
|
- " PhysX3Extensions" ..
|
|
|
- " PhysX3Vehicle" ..
|
|
|
- " PhysXProfileSDK" ..
|
|
|
- " PhysXVisualDebuggerSDK" ..
|
|
|
- " PxTask" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
+ configuration { "x64", "linux-*" }
|
|
|
+ libdirs {
|
|
|
+ "$(PHYSX_SDK_LINUX)/Lib/linux64",
|
|
|
+ "$(PHYSX_SDK_LINUX)/Bin/linux64",
|
|
|
}
|
|
|
|
|
|
- configuration { "android*" }
|
|
|
- kind "ConsoleApp"
|
|
|
- targetextension ".so"
|
|
|
- linkoptions {
|
|
|
- "-shared"
|
|
|
+ configuration { "x32", "vs*" }
|
|
|
+ libdirs {
|
|
|
+ "$(PHYSX_SDK_WINDOWS)/Lib/win32",
|
|
|
}
|
|
|
- links {
|
|
|
- "EGL",
|
|
|
- "GLESv2",
|
|
|
- "OpenSLES",
|
|
|
+
|
|
|
+ configuration { "x64", "vs*" }
|
|
|
+ libdirs {
|
|
|
+ "$(PHYSX_SDK_WINDOWS)/Lib/win64",
|
|
|
}
|
|
|
|
|
|
+ configuration { "x32", "debug", "linux-*" }
|
|
|
+ links_physx("CHECKED", "linux", "x86")
|
|
|
+
|
|
|
+ configuration { "x64", "debug", "linux-*" }
|
|
|
+ links_physx("CHECKED", "linux", "x64")
|
|
|
+
|
|
|
+ configuration { "x32", "development", "linux-*" }
|
|
|
+ links_physx("PROFILE", "linux", "x86")
|
|
|
+
|
|
|
+ configuration { "x64", "development", "linux-*" }
|
|
|
+ links_physx("PROFILE", "linux", "x64")
|
|
|
+
|
|
|
+ configuration { "x32", "release", "linux-*" }
|
|
|
+ links_physx("", "linux", "x86")
|
|
|
+
|
|
|
+ configuration { "x64", "release", "linux-*" }
|
|
|
+ links_physx("", "linux", "x64")
|
|
|
+
|
|
|
configuration { "debug", "android-arm" }
|
|
|
- linkoptions {
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " LowLevelCloth" ..
|
|
|
- " PhysX3 " ..
|
|
|
- " PhysX3Common" ..
|
|
|
- " PxTask" ..
|
|
|
- " LowLevel" ..
|
|
|
- " PhysX3CharacterKinematic" ..
|
|
|
- " PhysX3Cooking" ..
|
|
|
- " PhysX3Extensions" ..
|
|
|
- " PhysX3Vehicle" ..
|
|
|
- " PhysXProfileSDK" ..
|
|
|
- " PhysXVisualDebuggerSDK" ..
|
|
|
- " PvdRuntime" ..
|
|
|
- " SceneQuery" ..
|
|
|
- " SimulationController" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
- }
|
|
|
+ links_physx("CHECKED", "android", "")
|
|
|
|
|
|
configuration { "development", "android-arm" }
|
|
|
- linkoptions {
|
|
|
- "-Wl,--start-group $(addprefix -l," ..
|
|
|
- " LowLevelCloth" ..
|
|
|
- " PhysX3 " ..
|
|
|
- " PhysX3Common" ..
|
|
|
- " PxTask" ..
|
|
|
- " LowLevel" ..
|
|
|
- " PhysX3CharacterKinematic" ..
|
|
|
- " PhysX3Cooking" ..
|
|
|
- " PhysX3Extensions" ..
|
|
|
- " PhysX3Vehicle" ..
|
|
|
- " PhysXProfileSDK" ..
|
|
|
- " PhysXVisualDebuggerSDK" ..
|
|
|
- " PvdRuntime" ..
|
|
|
- " SceneQuery" ..
|
|
|
- " SimulationController" ..
|
|
|
- ") -Wl,--end-group"
|
|
|
- }
|
|
|
+ links_physx("PROFILE", "android", "")
|
|
|
|
|
|
configuration { "release", "android-arm" }
|
|
|
- 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",
|
|
|
- "dbghelp",
|
|
|
- "xinput",
|
|
|
- }
|
|
|
+ links_physx("", "android", "")
|
|
|
|
|
|
configuration { "debug", "x32", "vs*"}
|
|
|
- links {
|
|
|
- "PhysX3CharacterKinematicCHECKED_x86",
|
|
|
- "PhysX3CHECKED_x86",
|
|
|
- "PhysX3CommonCHECKED_x86",
|
|
|
- "PhysX3CookingCHECKED_x86",
|
|
|
- "PhysX3ExtensionsCHECKED",
|
|
|
- }
|
|
|
+ links_physx("CHECKED", "windows", "x86")
|
|
|
|
|
|
configuration { "debug", "x64", "vs*" }
|
|
|
- links {
|
|
|
- "PhysX3CharacterKinematicCHECKED_x64",
|
|
|
- "PhysX3CHECKED_x64",
|
|
|
- "PhysX3CommonCHECKED_x64",
|
|
|
- "PhysX3CookingCHECKED_x64",
|
|
|
- "PhysX3ExtensionsCHECKED",
|
|
|
- }
|
|
|
+ links_physx("CHECKED", "windows", "x64")
|
|
|
|
|
|
configuration { "development", "x32", "vs*" }
|
|
|
- links {
|
|
|
- "PhysX3CharacterKinematicPROFILE_x86",
|
|
|
- "PhysX3PROFILE_x86",
|
|
|
- "PhysX3CommonPROFILE_x86",
|
|
|
- "PhysX3CookingPROFILE_x86",
|
|
|
- "PhysX3ExtensionsPROFILE",
|
|
|
- }
|
|
|
+ links_physx("PROFILE", "windows", "x86")
|
|
|
|
|
|
configuration { "development", "x64", "vs*" }
|
|
|
- links {
|
|
|
- "PhysX3CharacterKinematicPROFILE_x64",
|
|
|
- "PhysX3PROFILE_x64",
|
|
|
- "PhysX3CommonPROFILE_x64",
|
|
|
- "PhysX3CookingPROFILE_x64",
|
|
|
- "PhysX3ExtensionsPROFILE",
|
|
|
- }
|
|
|
+ links_physx("PROFILE", "windows", "x64")
|
|
|
|
|
|
configuration { "release", "x32", "vs*" }
|
|
|
- links {
|
|
|
- "PhysX3CharacterKinematic_x86",
|
|
|
- "PhysX3_x86",
|
|
|
- "PhysX3Common_x86",
|
|
|
- "PhysX3Cooking_x86",
|
|
|
- "PhysX3Extensions",
|
|
|
- }
|
|
|
+ links_physx("", "windows", "x86")
|
|
|
|
|
|
configuration { "release", "x64", "vs*" }
|
|
|
- links {
|
|
|
- "PhysX3CharacterKinematic_x64",
|
|
|
- "PhysX3_x64",
|
|
|
- "PhysX3Common_x64",
|
|
|
- "PhysX3Cooking_x64",
|
|
|
- "PhysX3Extensions",
|
|
|
- }
|
|
|
+ links_physx("", "windows", "x64")
|
|
|
|
|
|
configuration {}
|
|
|
|