Branimir Karadžić 9 年之前
父節點
當前提交
32a9594134
共有 6 個文件被更改,包括 23 次插入8 次删除
  1. 9 3
      makefile
  2. 5 0
      scripts/geometryc.lua
  3. 3 0
      scripts/shaderc.lua
  4. 4 3
      scripts/texturec.lua
  5. 1 1
      scripts/texturev.lua
  6. 1 1
      tools/texturev/texturev.cpp

+ 9 - 3
makefile

@@ -343,11 +343,13 @@ tools: geometryc shaderc texturec texturev ## Build tools.
 
 dist-windows: .build/projects/gmake-mingw-gcc
 	$(SILENT) $(MAKE) -C .build/projects/gmake-mingw-gcc config=release64 -j 6 geometryc
-	$(SILENT) cp .build/win64_mingw-gcc/bin/geometrycRelease tools/bin/windows/geometryc.exe
+	$(SILENT) cp .build/win64_mingw-gcc/bin/geometrycRelease.exe tools/bin/windows/geometryc.exe
 	$(SILENT) $(MAKE) -C .build/projects/gmake-mingw-gcc config=release64 -j 6 shaderc
-	$(SILENT) cp .build/win64_mingw-gcc/bin/shadercRelease   tools/bin/windows/shaderc.exe
+	$(SILENT) cp .build/win64_mingw-gcc/bin/shadercRelease.exe   tools/bin/windows/shaderc.exe
 	$(SILENT) $(MAKE) -C .build/projects/gmake-mingw-gcc config=release64 -j 6 texturec
-	$(SILENT) cp .build/win64_mingw-gcc/bin/texturecRelease  tools/bin/windows/texturec.exe
+	$(SILENT) cp .build/win64_mingw-gcc/bin/texturecRelease.exe  tools/bin/windows/texturec.exe
+	$(SILENT) $(MAKE) -C .build/projects/gmake-mingw-gcc config=release64 -j 6 texturev
+	$(SILENT) cp .build/win64_mingw-gcc/bin/texturevRelease.exe tools/bin/windows/texturev.exe
 
 dist-linux: .build/projects/gmake-linux
 	$(SILENT) $(MAKE) -C .build/projects/gmake-linux     config=release64 -j 6 geometryc
@@ -356,6 +358,8 @@ dist-linux: .build/projects/gmake-linux
 	$(SILENT) cp .build/linux64_gcc/bin/shadercRelease   tools/bin/linux/shaderc
 	$(SILENT) $(MAKE) -C .build/projects/gmake-linux     config=release64 -j 6 texturec
 	$(SILENT) cp .build/linux64_gcc/bin/texturecRelease  tools/bin/linux/texturec
+	$(SILENT) $(MAKE) -C .build/projects/gmake-linux     config=release64 -j 6 texturev
+	$(SILENT) cp .build/linux64_gcc/bin/texturevRelease  tools/bin/linux/texturev
 
 dist-darwin: .build/projects/gmake-osx
 	$(SILENT) $(MAKE) -C .build/projects/gmake-osx       config=release64 -j 6 geometryc
@@ -364,5 +368,7 @@ dist-darwin: .build/projects/gmake-osx
 	$(SILENT) cp .build/osx64_clang/bin/shadercRelease   tools/bin/darwin/shaderc
 	$(SILENT) $(MAKE) -C .build/projects/gmake-osx       config=release64 -j 6 texturec
 	$(SILENT) cp .build/osx64_clang/bin/texturecRelease  tools/bin/darwin/texturec
+	$(SILENT) $(MAKE) -C .build/projects/gmake-osx       config=release64 -j 6 texturev
+	$(SILENT) cp .build/osx64_clang/bin/texturevRelease  tools/bin/darwin/texturev
 
 dist: clean dist-windows dist-linux dist-darwin

+ 5 - 0
scripts/geometryc.lua

@@ -25,9 +25,14 @@ project "geometryc"
 		path.join(BGFX_DIR, "examples/common/bounds.**"),
 	}
 
+	configuration { "mingw-*" }
+		targetextension ".exe"
+
 	configuration { "osx" }
 		links {
 			"Cocoa.framework",
 		}
 
+	configuration {}
+
 	strip()

+ 3 - 0
scripts/shaderc.lua

@@ -36,6 +36,9 @@ project "shaderc"
 			"/wd4996" -- warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup.
 		}
 
+	configuration { "mingw-*" }
+		targetextension ".exe"
+
 	configuration { "mingw* or linux or osx" }
 		buildoptions {
 			"-fno-strict-aliasing", -- glsl-optimizer has bugs if strict aliasing is used.

+ 4 - 3
scripts/texturec.lua

@@ -38,11 +38,12 @@ project "texturec"
 		path.join(BGFX_DIR, "tools/texturec/**.h"),
 	}
 
-	links {
---		"bgfx",
-	}
+	configuration { "mingw-*" }
+		targetextension ".exe"
 
 	configuration { "osx" }
 		links {
 			"Cocoa.framework",
 		}
+
+	configuration {}

+ 1 - 1
scripts/texturev.lua

@@ -120,7 +120,7 @@ project ("texturev")
 			"/DELAYLOAD:\"libGLESv2.dll\"",
 		}
 
-	configuration { "mingw*" }
+	configuration { "mingw-*" }
 		targetextension ".exe"
 
 	configuration { "vs20* or mingw*" }

+ 1 - 1
tools/texturev/texturev.cpp

@@ -224,7 +224,7 @@ struct View
 							}
 
 							std::string name = path;
-							char ch = name.back();
+							char ch = name[name.size()-1];
 							name += '/' == ch || '\\' == ch ? "" : "/";
 							name += item->d_name;
 							m_fileList.push_back(name);