Replies: 1 comment 4 replies
-
。。。一个cpp源码都没,还重写了 build 。。这还想要 xmake 干啥,不就是空跑么。。 要编译项目,好歹有点代码吧 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
背景
我们有一个Lua项目,里面会用到不少C/C++的三方库,也有一些自己写的C/C++库。
我想在这个项目里面使用xmake来管理这些依赖,避免每次升级依赖库的时候,都需要一堆手工操作。
问题
我在这个Lua项目里面,写了一个 xmake.lua, 其内容大致如下:
按照以上方式写好 xmake.lua 之后,问题来了:
因为我重载了 on_build(), 所以导致我的依赖包 (luasql, sqlite3, lfs) 没有被编译
从而导致我最初希望使用 xmake 来编译 .so 文件的目的没法达到
求助
所以,想请教一下,如果是我这个情况,应该怎么写这个 xmake.lua, 才能让这些3方依赖库能正常编译出 .so 文件?
注:没有用 luarocks,因为我们有私有库,需要有私有仓库
Beta Was this translation helpful? Give feedback.
All reactions