diff options
author | 2016-01-28 01:24:47 +1100 | |
---|---|---|
committer | 2016-01-28 01:24:47 +1100 | |
commit | 84537f1bf17e3c72c03358f7ec637d31d429fc15 (patch) | |
tree | 3c187516a4170f5a9a211a0f0703320e5f18909b /docs/release/scripts/toolchain.lua | |
parent | fb8674efd87a3d9c0e0c764ec4c59607418e19d2 (diff) |
170 release files.
Diffstat (limited to 'docs/release/scripts/toolchain.lua')
-rw-r--r-- | docs/release/scripts/toolchain.lua | 55 |
1 files changed, 37 insertions, 18 deletions
diff --git a/docs/release/scripts/toolchain.lua b/docs/release/scripts/toolchain.lua index 13fe67eac1d..7fad61ce928 100644 --- a/docs/release/scripts/toolchain.lua +++ b/docs/release/scripts/toolchain.lua @@ -32,6 +32,7 @@ newoption { { "qnx-arm", "QNX/Blackberry - ARM" }, { "rpi", "RaspberryPi" }, { "solaris", "Solaris" }, + { "steamlink", "Steam Link" }, }, } @@ -189,8 +190,18 @@ function toolchain(_buildDir, _subDir) location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-linux-clang") end + if "steamlink" == _OPTIONS["gcc"] then + if not os.getenv("MARVELL_SDK_PATH") then + print("Set MARVELL_SDK_PATH envrionment variable.") + end + premake.gcc.cc = "$(MARVELL_SDK_PATH)/toolchain/bin/armv7a-cros-linux-gnueabi-gcc" + premake.gcc.cxx = "$(MARVELL_SDK_PATH)/toolchain/bin/armv7a-cros-linux-gnueabi-g++" + premake.gcc.ar = "$(MARVELL_SDK_PATH)/toolchain/bin/armv7a-cros-linux-gnueabi-ar" + location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-steamlink") + end + if "mingw32-gcc" == _OPTIONS["gcc"] then - if not os.getenv("MINGW32") or not os.getenv("MINGW32") then + if not os.getenv("MINGW32") then print("Set MINGW32 envrionment variable.") end premake.gcc.cc = "$(MINGW32)/bin/i686-w64-mingw32-gcc" @@ -207,7 +218,7 @@ function toolchain(_buildDir, _subDir) end if "mingw64-gcc" == _OPTIONS["gcc"] then - if not os.getenv("MINGW64") or not os.getenv("MINGW64") then + if not os.getenv("MINGW64") then print("Set MINGW64 envrionment variable.") end premake.gcc.cc = "$(MINGW64)/bin/x86_64-w64-mingw32-gcc" @@ -225,9 +236,9 @@ function toolchain(_buildDir, _subDir) if "mingw-clang" == _OPTIONS["gcc"] then - premake.gcc.cc = "$(CLANG)/bin/clang" - premake.gcc.cxx = "$(CLANG)/bin/clang++" - premake.gcc.ar = "$(CLANG)/bin/llvm-ar" + premake.gcc.cc = "clang" + premake.gcc.cxx = "clang++" + premake.gcc.ar = "llvm-ar" premake.gcc.llvm = true location (_buildDir .. "projects/" .. _subDir .. "/".. _ACTION .. "-mingw-clang") end @@ -483,36 +494,44 @@ function toolchain(_buildDir, _subDir) configuration { "x64", "mingw64-gcc", "Debug" } targetdir (_buildDir .. "mingw-gcc" .. "/bin/x64/Debug") + configuration { "steamlink" } + objdir ( _buildDir .. "steamlink/obj") + + buildoptions { + "-marm", + "-mfloat-abi=hard", + "--sysroot=$(MARVELL_SDK_PATH)/rootfs", + } + linkoptions { + "-static-libgcc", + "-static-libstdc++", + "--sysroot=$(MARVELL_SDK_PATH)/rootfs", + } + + configuration { "steamlink", "Release" } + targetdir (_buildDir .. "steamlink/bin/Release") + + configuration { "steamlink", "Debug" } + targetdir (_buildDir .. "steamlink/bin/Debug") + configuration { "mingw-clang" } linkoptions { - "-Qunused-arguments", - "-Wno-error=unused-command-line-argument-hard-error-in-future", "-Wl,--allow-multiple-definition", } configuration { "x32", "mingw-clang" } objdir ( _buildDir .. "mingw-clang/obj") buildoptions { "-m32" } - buildoptions { - "-isystem$(MINGW32)/i686-w64-mingw32/include/c++", - "-isystem$(MINGW32)/i686-w64-mingw32/include/c++/i686-w64-mingw32", - "-isystem$(MINGW32)/i686-w64-mingw32/include", - } configuration { "x32", "mingw-clang", "Release" } targetdir (_buildDir .. "mingw-clang/bin/x32/Release") configuration { "x32", "mingw-clang", "Debug" } - targetdir (_buildDir .. "win32_mingw-clang/bin/x32/Debug") + targetdir (_buildDir .. "mingw-clang/bin/x32/Debug") configuration { "x64", "mingw-clang" } objdir (_buildDir .. "mingw-clang/obj") buildoptions { "-m64" } - buildoptions { - "-isystem$(MINGW64)/x86_64-w64-mingw32/include/c++", - "-isystem$(MINGW64)/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32", - "-isystem$(MINGW64)/x86_64-w64-mingw32/include", - } configuration { "x64", "mingw-clang", "Release" } targetdir (_buildDir .. "mingw-clang/bin/x64/Release") |