mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-17 20:52:37 +01:00
Updated toolchain script.
This commit is contained in:
@@ -29,6 +29,7 @@ function toolchain(_buildDir, _libDir)
|
||||
{ "nacl-arm", "Native Client - ARM" },
|
||||
{ "osx", "OSX" },
|
||||
{ "pnacl", "Native Client - PNaCl" },
|
||||
{ "ps4", "PS4" },
|
||||
{ "qnx-arm", "QNX/Blackberry - ARM" },
|
||||
{ "rpi", "RaspberryPi" },
|
||||
},
|
||||
@@ -257,6 +258,19 @@ function toolchain(_buildDir, _libDir)
|
||||
premake.gcc.ar = naclToolchain .. "ar"
|
||||
location (path.join(_buildDir, "projects", _ACTION .. "-pnacl"))
|
||||
|
||||
elseif "ps4" == _OPTIONS["gcc"] then
|
||||
|
||||
if not os.getenv("PS4_SDK_ROOT") then
|
||||
print("Set PS4_SDK_ROOT enviroment variables.")
|
||||
end
|
||||
|
||||
ps4Toolchain = "$(PS4_SDK_ROOT)/host_tools/bin/orbis-"
|
||||
|
||||
premake.gcc.cc = ps4Toolchain .. "clang"
|
||||
premake.gcc.cxx = ps4Toolchain .. "clang++"
|
||||
premake.gcc.ar = ps4Toolchain .. "ar"
|
||||
location (path.join(_buildDir, "projects", _ACTION .. "-ps4"))
|
||||
|
||||
elseif "qnx-arm" == _OPTIONS["gcc"] then
|
||||
|
||||
if not os.getenv("QNX_HOST") then
|
||||
@@ -855,6 +869,23 @@ function toolchain(_buildDir, _libDir)
|
||||
"--sysroot=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator" ..iosPlatform .. ".sdk",
|
||||
}
|
||||
|
||||
configuration { "ps4" }
|
||||
targetdir (path.join(_buildDir, "ps4/bin"))
|
||||
objdir (path.join(_buildDir, "ps4/obj"))
|
||||
libdirs { path.join(_libDir, "lib/ps4") }
|
||||
includedirs {
|
||||
path.join(bxDir, "include/compat/freebsd"),
|
||||
"$(PS4_SDK_ROOT)/target/include",
|
||||
"$(PS4_SDK_ROOT)/target/include_common",
|
||||
}
|
||||
buildoptions {
|
||||
}
|
||||
buildoptions_cpp {
|
||||
"-std=c++0x",
|
||||
}
|
||||
linkoptions {
|
||||
}
|
||||
|
||||
configuration { "qnx-arm" }
|
||||
targetdir (path.join(_buildDir, "qnx-arm/bin"))
|
||||
objdir (path.join(_buildDir, "qnx-arm/obj"))
|
||||
|
||||
Reference in New Issue
Block a user