Browse Source

fix lua for android

ruki 6 years ago
parent
commit
fe46967400
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/l/lua/xmake.lua

+ 2 - 1
packages/l/lua/xmake.lua

@@ -36,13 +36,14 @@ package("lua")
                 end
                 end
 
 
             target("lua")
             target("lua")
+                set_enabled(%s)
                 set_kind("binary")
                 set_kind("binary")
                 add_files("src/lua.c")
                 add_files("src/lua.c")
                 add_deps("lualib")
                 add_deps("lualib")
                 if not is_plat("windows") then
                 if not is_plat("windows") then
                     add_syslinks("dl")
                     add_syslinks("dl")
                 end
                 end
-        ]], package:config("shared") and "shared" or "static"))
+        ]], package:config("shared") and "shared" or "static"), is_plat(os.host()) and "true" or "false")
         import("package.tools.xmake").install(package)
         import("package.tools.xmake").install(package)
     end)
     end)