Browse Source

OSX: Fixed unit test build.

Branimir Karadzic 12 years ago
parent
commit
a36d56908d
1 changed files with 10 additions and 0 deletions
  1. 10 0
      premake/bx.lua

+ 10 - 0
premake/bx.lua

@@ -7,6 +7,16 @@ project "bx"
 	uuid "4db0b09e-d6df-11e1-a0ec-65ccdd6a022f"
 	uuid "4db0b09e-d6df-11e1-a0ec-65ccdd6a022f"
 	kind "StaticLib"
 	kind "StaticLib"
 
 
+	configuration { "osx or ios" }
+		-- OSX ar doesn't like creating archive without object files
+		-- here is object file...
+		prebuildcommands {
+			"@echo \"void dummy() {}\" > /tmp/dummy.cpp",
+		}
+		files {
+			"/tmp/dummy.cpp",
+		}
+
 	files {
 	files {
 		"../include/**.h",
 		"../include/**.h",
 	}
 	}