Browse Source

Merge branch 'master' of github.com:bkaradzic/bx

Branimir Karadžić 7 years ago
parent
commit
af62b2c717
1 changed files with 5 additions and 3 deletions
  1. 5 3
      scripts/toolchain.lua

+ 5 - 3
scripts/toolchain.lua

@@ -464,7 +464,9 @@ function toolchain(_buildDir, _libDir)
 
 
 		end
 		end
 
 
-	elseif _ACTION == "xcode4" then
+	elseif _ACTION == "xcode4"
+		or _ACTION == "xcode8"
+		or _ACTION == "xcode9" then
 		local action = premake.action.current()
 		local action = premake.action.current()
 		local str_or = function(str, def)
 		local str_or = function(str, def)
 			return #str > 0 and str or def
 			return #str > 0 and str or def
@@ -1072,7 +1074,7 @@ function toolchain(_buildDir, _libDir)
 		}
 		}
 		includedirs { path.join(bxDir, "include/compat/ios") }
 		includedirs { path.join(bxDir, "include/compat/ios") }
 
 
-	configuration { "xcode4", "ios*" }
+	configuration { "xcode*", "ios*" }
 		targetdir (path.join(_buildDir, "ios-arm/bin"))
 		targetdir (path.join(_buildDir, "ios-arm/bin"))
 		objdir (path.join(_buildDir, "ios-arm/obj"))
 		objdir (path.join(_buildDir, "ios-arm/obj"))
 
 
@@ -1158,7 +1160,7 @@ function toolchain(_buildDir, _libDir)
 		}
 		}
 		includedirs { path.join(bxDir, "include/compat/ios") }
 		includedirs { path.join(bxDir, "include/compat/ios") }
 
 
-	configuration { "xcode4", "tvos*" }
+	configuration { "xcode*", "tvos*" }
 		targetdir (path.join(_buildDir, "tvos-arm64/bin"))
 		targetdir (path.join(_buildDir, "tvos-arm64/bin"))
 		objdir (path.join(_buildDir, "tvos-arm64/obj"))
 		objdir (path.join(_buildDir, "tvos-arm64/obj"))