Просмотр исходного кода

Merge branch 'master' of github.com:taylor001/crown

Daniele Bartolini 10 лет назад
Родитель
Сommit
d50afdf7e6
4 измененных файлов с 15 добавлено и 30 удалено
  1. 13 27
      genie/crown.lua
  2. 0 1
      genie/toolchain.lua
  3. 1 1
      third/bgfx
  4. 1 1
      third/bx

+ 13 - 27
genie/crown.lua

@@ -29,11 +29,9 @@ function crown_project(_name, _kind, _defines)
 			CROWN_DIR .. "src/renderers",
 			CROWN_DIR .. "src/resource",
 			CROWN_DIR .. "src/world",
+			CROWN_DIR .. "third/bx/include",
 			CROWN_DIR .. "third/bgfx/include",
 			CROWN_DIR .. "third/bgfx/src",
-			CROWN_DIR .. "third/bx/include",
-			CROWN_DIR .. "third/freetype",
-			CROWN_DIR .. "third/stb_image",
 			CROWN_DIR .. "third/stb_vorbis",
 		}
 
@@ -168,8 +166,8 @@ function crown_project(_name, _kind, _defines)
 				"X11",
 				"Xrandr",
 				"pthread",
-				"GL",
 				"dl",
+				"GL",
 			}
 
 		configuration { "vs*" }
@@ -196,20 +194,12 @@ function crown_project(_name, _kind, _defines)
 					prefix .. "Include/physxvisualdebuggersdk",
 					prefix .. "Include/pvd",
 					prefix .. "Include/pxtask",
-					prefix .. "Include/RepX",
-					prefix .. "Include/RepXUpgrader",
 					prefix .. "Include/vehicle",
 				}
 			end
 
 			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 ..
@@ -217,10 +207,6 @@ function crown_project(_name, _kind, _defines)
 						"	PhysX3Cooking"            .. config .. "_" .. platform ..
 						"	PhysX3CharacterKinematic" .. config .. "_" .. platform ..
 						"	PhysX3Extensions"         .. config ..
-						"	PhysX3Vehicle"            .. config ..
-						"	PhysXProfileSDK"          .. config ..
-						"	PhysXVisualDebuggerSDK"   .. config ..
-						"	PxTask"                   .. config ..
 						") -Wl,--end-group"
 					}
 				end
@@ -248,10 +234,10 @@ function crown_project(_name, _kind, _defines)
 
 				if os == "windows" then
 					links {
-						"PhysX3CharacterKinematic" .. config .. "_" .. platform,
 						"PhysX3"                   .. config .. "_" .. platform,
 						"PhysX3Common"             .. config .. "_" .. platform,
 						"PhysX3Cooking"            .. config .. "_" .. platform,
+						"PhysX3CharacterKinematic" .. config .. "_" .. platform,
 						"PhysX3Extensions",
 					}
 				end
@@ -294,16 +280,16 @@ function crown_project(_name, _kind, _defines)
 				}
 
 			configuration { "x32", "debug", "linux-*" }
-				links_physx("CHECKED", "linux", "x86")
+				links_physx("DEBUG", "linux", "x86")
 
 			configuration { "x64", "debug", "linux-*" }
-				links_physx("CHECKED", "linux", "x64")
+				links_physx("DEBUG", "linux", "x64")
 
 			configuration { "x32", "development", "linux-*" }
-				links_physx("PROFILE", "linux", "x86")
+				links_physx("CHECKED", "linux", "x86")
 
 			configuration { "x64", "development", "linux-*" }
-				links_physx("PROFILE", "linux", "x64")
+				links_physx("CHECKED", "linux", "x64")
 
 			configuration { "x32", "release", "linux-*" }
 				links_physx("", "linux", "x86")
@@ -312,25 +298,25 @@ function crown_project(_name, _kind, _defines)
 				links_physx("", "linux", "x64")
 
 			configuration { "debug", "android-arm" }
-				links_physx("CHECKED", "android", "")
+				links_physx("DEBUG", "android", "")
 
 			configuration { "development", "android-arm" }
-				links_physx("PROFILE", "android", "")
+				links_physx("CHECKED", "android", "")
 
 			configuration { "release", "android-arm" }
 				links_physx("", "android", "")
 
 			configuration { "debug", "x32", "vs*"}
-				links_physx("CHECKED", "windows", "x86")
+				links_physx("DEBUG", "windows", "x86")
 
 			configuration { "debug", "x64", "vs*" }
-				links_physx("CHECKED", "windows", "x64")
+				links_physx("DEBUG", "windows", "x64")
 
 			configuration { "development", "x32", "vs*" }
-				links_physx("PROFILE", "windows", "x86")
+				links_physx("CHECKED", "windows", "x86")
 
 			configuration { "development", "x64", "vs*" }
-				links_physx("PROFILE", "windows", "x64")
+				links_physx("CHECKED", "windows", "x64")
 
 			configuration { "release", "x32", "vs*" }
 				links_physx("", "windows", "x86")

+ 0 - 1
genie/toolchain.lua

@@ -179,7 +179,6 @@ function toolchain(build_dir, lib_dir)
 			"-ffunction-sections",
 			"-Wno-psabi", -- note: the mangling of 'va_list' has changed in GCC 4.4.0
 			"-Wunused-value",
-			-- "-Wundef", -- note: avoids PhysX warnings
 		}
 		buildoptions_cpp {
 			"-std=c++03",

+ 1 - 1
third/bgfx

@@ -1 +1 @@
-Subproject commit b2da0cce93b7b8be781adae132ebf0876d1d6b88
+Subproject commit 488ebe2e1e49230e6ad5c8449ab36de8ff2f0075

+ 1 - 1
third/bx

@@ -1 +1 @@
-Subproject commit db24c20381e3d08525aad48e4d6447981c1a673f
+Subproject commit 4c58d0ac0ebaa289afe88995d7e08c92d67b99d4