Sfoglia il codice sorgente

xcode: added ios/osx target sdk selection (#40 by @attilaz).

Branimir Karadžić 11 anni fa
parent
commit
be1a8f463f
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      scripts/toolchain.lua

+ 2 - 3
scripts/toolchain.lua

@@ -294,14 +294,13 @@ function toolchain(_buildDir, _libDir)
 	elseif _ACTION == "xcode4" then
 	elseif _ACTION == "xcode4" then
 
 
 		if "osx" == _OPTIONS["xcode"] then
 		if "osx" == _OPTIONS["xcode"] then
+			premake.xcode.toolset = "macosx"
 			location (_buildDir .. "projects/" .. _ACTION .. "-osx")
 			location (_buildDir .. "projects/" .. _ACTION .. "-osx")
 		end
 		end
-
 		if "ios" == _OPTIONS["xcode"] then
 		if "ios" == _OPTIONS["xcode"] then
+			premake.xcode.toolset = "iphoneos"
 			location (_buildDir .. "projects/" .. _ACTION .. "-ios")
 			location (_buildDir .. "projects/" .. _ACTION .. "-ios")
 		end
 		end
-
-
 	end
 	end
 
 
 	flags {
 	flags {