소스 검색

Simplify naming

Daniele Bartolini 9 년 전
부모
커밋
e82338bccd
5개의 변경된 파일24개의 추가작업 그리고 47개의 파일을 삭제
  1. 3 3
      .travis.yml
  2. 8 23
      scripts/toolchain.lua
  3. 6 10
      src/resource/shader_resource.cpp
  4. 6 10
      src/resource/texture_resource.cpp
  5. 1 1
      tools/config.vala

+ 3 - 3
.travis.yml

@@ -13,9 +13,9 @@ before_install:
   - sudo apt-get install -y libxrandr-dev
   - sudo apt-get install -y libxrandr-dev
 
 
 script:
 script:
-  - make engine-linux-debug64 && ./build/engine/linux64/bin/crown-debug-64 --run-unit-tests
-  - make engine-linux-development64 && ./build/engine/linux64/bin/crown-development-64 --run-unit-tests
-  - make engine-linux-release64
+  - make engine-linux-debug64       && ./build/engine/linux64/bin/crown-debug --run-unit-tests
+  - make engine-linux-development64 && ./build/engine/linux64/bin/crown-development --run-unit-tests
+  - make engine-linux-release64     && ./build/engine/linux64/bin/crown-release --run-unit-tests
 
 
 notifications:
 notifications:
   email: false
   email: false

+ 8 - 23
scripts/toolchain.lua

@@ -77,35 +77,20 @@ function toolchain(build_dir, lib_dir)
 		"__STDC_LIMIT_MACROS",
 		"__STDC_LIMIT_MACROS",
 	}
 	}
 
 
-	configuration { "development or release" }
-		flags {
-			"OptimizeSpeed"
-		}
-
-	configuration { "debug", "x32" }
-		targetsuffix "-debug-32"
-	configuration { "debug", "x64" }
-		targetsuffix "-debug-64"
-
-	configuration { "development", "x32" }
-		targetsuffix "-development-32"
-	configuration { "development", "x64" }
-		targetsuffix "-development-64"
-
-	configuration { "release", "x32" }
-		targetsuffix "-release-32"
-	configuration { "release", "x64" }
-		targetsuffix "-release-64"
-
-	configuration { "debug", "native" }
+	configuration { "debug" }
 		targetsuffix "-debug"
 		targetsuffix "-debug"
 
 
-	configuration { "development", "native" }
+	configuration { "development" }
 		targetsuffix "-development"
 		targetsuffix "-development"
 
 
-	configuration { "release", "native" }
+	configuration { "release" }
 		targetsuffix "-release"
 		targetsuffix "-release"
 
 
+	configuration { "development or release" }
+		flags {
+			"OptimizeSpeed"
+		}
+
 	configuration { "debug or development", "linux-*" }
 	configuration { "debug or development", "linux-*" }
 		linkoptions {
 		linkoptions {
 			"-rdynamic"
 			"-rdynamic"

+ 6 - 10
src/resource/shader_resource.cpp

@@ -17,21 +17,17 @@
 #include "temp_allocator.h"
 #include "temp_allocator.h"
 
 
 #if CROWN_DEVELOPMENT
 #if CROWN_DEVELOPMENT
-	#define SHADERC_NAME "shaderc-development-"
+	#define SHADERC_NAME "shaderc-development"
 #elif CROWN_DEBUG
 #elif CROWN_DEBUG
-	#define SHADERC_NAME "shaderc-debug-"
+	#define SHADERC_NAME "shaderc-debug"
 #else
 #else
-	#define SHADERC_NAME "shaderc-release-"
+	#define SHADERC_NAME "shaderc-release"
 #endif  // CROWN_DEBUG
 #endif  // CROWN_DEBUG
-#if CROWN_ARCH_32BIT
-	#define SHADERC_BITS "32"
-#elif CROWN_ARCH_64BIT
-	#define SHADERC_BITS "64"
-#endif // CROWN_ARCH_32BIT
+
 #if CROWN_PLATFORM_LINUX
 #if CROWN_PLATFORM_LINUX
-	#define SHADERC_PATH "./" SHADERC_NAME "" SHADERC_BITS
+	#define SHADERC_PATH "./" SHADERC_NAME ""
 #elif CROWN_PLATFORM_WINDOWS
 #elif CROWN_PLATFORM_WINDOWS
-	#define SHADERC_PATH SHADERC_NAME "" SHADERC_BITS ".exe"
+	#define SHADERC_PATH SHADERC_NAME ".exe"
 #else
 #else
 	#define SHADERC_PATH ""
 	#define SHADERC_PATH ""
 #endif // CROWN_PLATFORM_LINUX
 #endif // CROWN_PLATFORM_LINUX

+ 6 - 10
src/resource/texture_resource.cpp

@@ -14,21 +14,17 @@
 #include "texture_resource.h"
 #include "texture_resource.h"
 
 
 #if CROWN_DEVELOPMENT
 #if CROWN_DEVELOPMENT
-	#define TEXTUREC_NAME "texturec-development-"
+	#define TEXTUREC_NAME "texturec-development"
 #elif CROWN_DEBUG
 #elif CROWN_DEBUG
-	#define TEXTUREC_NAME "texturec-debug-"
+	#define TEXTUREC_NAME "texturec-debug"
 #else
 #else
-	#define TEXTUREC_NAME "texturec-release-"
+	#define TEXTUREC_NAME "texturec-release"
 #endif  // CROWN_DEBUG
 #endif  // CROWN_DEBUG
-#if CROWN_ARCH_32BIT
-	#define TEXTUREC_BITS "32"
-#elif CROWN_ARCH_64BIT
-	#define TEXTUREC_BITS "64"
-#endif // CROWN_ARCH_32BIT
+
 #if CROWN_PLATFORM_LINUX
 #if CROWN_PLATFORM_LINUX
-	#define TEXTUREC_PATH "./" TEXTUREC_NAME "" TEXTUREC_BITS
+	#define TEXTUREC_PATH "./" TEXTUREC_NAME ""
 #elif CROWN_PLATFORM_WINDOWS
 #elif CROWN_PLATFORM_WINDOWS
-	#define TEXTUREC_PATH TEXTUREC_NAME "" TEXTUREC_BITS ".exe"
+	#define TEXTUREC_PATH TEXTUREC_NAME ".exe"
 #else
 #else
 	#define TEXTUREC_PATH ""
 	#define TEXTUREC_PATH ""
 #endif // CROWN_PLATFORM_LINUX
 #endif // CROWN_PLATFORM_LINUX

+ 1 - 1
tools/config.vala

@@ -16,7 +16,7 @@ namespace Crown
 	const string EXE_PREFIX = "";
 	const string EXE_PREFIX = "";
 	const string EXE_SUFFIX = ".exe";
 	const string EXE_SUFFIX = ".exe";
 #endif
 #endif
-	const string ENGINE_EXE = EXE_PREFIX + "crown-development-64" + EXE_SUFFIX;
+	const string ENGINE_EXE = EXE_PREFIX + "crown-development" + EXE_SUFFIX;
 
 
 	const uint16 CROWN_DEFAULT_SERVER_PORT = 10618;
 	const uint16 CROWN_DEFAULT_SERVER_PORT = 10618;