diff options
| author | ruki <[email protected]> | 2016-06-10 13:26:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-06-10 13:26:47 +0800 |
| commit | 38c07cd824a33740accf14dda963aad1f2dc9366 (patch) | |
| tree | f4883f4af6965bbb7ddf27b8d2bfc9b946bf93d9 /xmake/platforms/linux/xmake.lua | |
| parent | cb9ce25dd0e7669189124a89bf6171190707b13e (diff) | |
improve mingw and cross toolchains configure
Diffstat (limited to 'xmake/platforms/linux/xmake.lua')
| -rwxr-xr-x | xmake/platforms/linux/xmake.lua | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xmake/platforms/linux/xmake.lua b/xmake/platforms/linux/xmake.lua index b7f47b15b..e6af941bd 100755 --- a/xmake/platforms/linux/xmake.lua +++ b/xmake/platforms/linux/xmake.lua @@ -63,7 +63,18 @@ platform("linux") _g.tools.sc = config.get("sc") -- cross toolchains? - if config.get("cross") then return end + if config.get("cross") then + + -- init linkdirs and includedirs + local sdkdir = config.get("sdk") + if sdkdir then + _g.includedirs = {path.join(sdkdir, "include")} + _g.linkdirs = {path.join(sdkdir, "lib")} + end + + -- ok + return + end -- init flags for architecture local archflags = nil @@ -83,7 +94,6 @@ platform("linux") -- init linkdirs and includedirs _g.linkdirs = {"/usr/lib", "/usr/local/lib"} _g.includedirs = {"/usr/include", "/usr/local/include"} - end) |
