Browse Source

Update makefile

Daniele Bartolini 11 năm trước cách đây
mục cha
commit
ac9e6e67a7
2 tập tin đã thay đổi với 24 bổ sung11 xóa
  1. 8 6
      makefile
  2. 16 5
      premake/premake4.lua

+ 8 - 6
makefile

@@ -39,7 +39,9 @@ bgfx-vs2008-debug64:
 	make -R -C third/bgfx && make -R -C third/bgfx vs2008-debug64
 bgfx-vs2008-release64:
 	make -R -C third/bgfx && make -R -C third/bgfx vs2008-release64
-bgfx-android-arm:
+bgfx-android-arm-debug:
+	make -R -C third/bgfx android-arm-debug
+bgfx-android-arm-release:
 	make -R -C third/bgfx android-arm-release
 bgfx-clean:
 	make -R -C third/bgfx clean
@@ -52,7 +54,8 @@ deps-windows-debug32: luajit-windows32 bgfx-vs2008-debug32
 deps-windows-debug64: luajit-windows64 bgfx-vs2008-debug64
 deps-windows-release32: luajit-windows32 bgfx-vs2008-release32
 deps-windows-release64: luajit-windows64 bgfx-vs2008-release64
-deps-android-arm: luajit-arm bgfx-android-arm
+deps-android-arm-debug: luajit-arm bgfx-android-arm-debug
+deps-android-arm-release: luajit-arm bgfx-android-arm-release
 deps-clean: luajit-clean bgfx-clean
 
 linux-build:
@@ -71,14 +74,13 @@ linux-release64: deps-linux-release64 linux-build
 	make -R -C .build/linux config=release64
 linux: linux-debug32 linux-development32 linux-release32 linux-debug64 linux-development64 linux-release64
 
-
 android-build:
 	$(PREMAKE) --file=premake/premake4.lua --compiler=android gmake
-android-debug: deps-android-arm android-build
+android-debug: deps-android-arm-debug android-build
 	make -R -C .build/android config=debug
-android-development: deps-android-arm android-build
+android-development: deps-android-arm-debug android-build
 	make -R -C .build/android config=development
-android-release: deps-android-arm android-build
+android-release: deps-android-arm-release android-build
 	make -R -C .build/android config=release
 android: android-debug android-development android-release
 

+ 16 - 5
premake/premake4.lua

@@ -244,7 +244,7 @@ solution "crown"
 			}
 
 			excludes {
-				CROWN_SOURCE_DIR .. "engine/audio/backend/sles_sound_world.cpp",
+				CROWN_SOURCE_DIR .. "engine/audio/sound_world_sles.cpp",
 			}
 			
 		configuration { "linux-*", "debug" }
@@ -435,7 +435,6 @@ solution "crown"
 
 			links {
 				":libluajit.a",
-				":libbgfxRelease.a",
 				"android",
 				"c",
 				"dl",
@@ -487,11 +486,15 @@ solution "crown"
 			}
 
 			excludes {
-				CROWN_SOURCE_DIR .. "engine/audio/backend/al_sound_world.cpp"
+				CROWN_SOURCE_DIR .. "engine/audio/sound_world_al.cpp"
 			}
 
 		configuration { "debug", "android" }
-			linkoptions { 
+			links {
+				":libbgfxDebug.a",
+			}
+
+			linkoptions {
 				"-Wl,--start-group $(addprefix -l," ..
 				"	LowLevelCloth" ..
 				"	PhysX3 " ..
@@ -510,6 +513,10 @@ solution "crown"
 				") -Wl,--end-group"
 			}
 		configuration { "development", "android"}
+			links {
+				":libbgfxDebug.a",
+			}
+
 			linkoptions { 
 				"-Wl,--start-group $(addprefix -l," ..
 				"	LowLevelCloth" ..
@@ -529,6 +536,10 @@ solution "crown"
 				") -Wl,--end-group"
 			}	
 		configuration { "release", "android"}
+			links {
+				":libbgfxRelease.a",
+			}
+
 			linkoptions { 
 				"-Wl,--start-group $(addprefix -l," ..
 				"	LowLevelCloth" ..
@@ -613,7 +624,7 @@ solution "crown"
 			}
 
 			excludes {
-				CROWN_SOURCE_DIR .. "engine/audio/backend/sles_sound_world.cpp"
+				CROWN_SOURCE_DIR .. "engine/audio/sound_world_sles.cpp"
 			}
 
 		configuration { "x32", "vs*" }