xmake如何引用已经编译好的android so库 #3006
Unanswered
caxiejiang
asked this question in
Q&A
Replies: 2 comments 2 replies
-
add_links add_linkdirs |
Beta Was this translation helpful? Give feedback.
2 replies
-
嗯嗯,多谢解答疑问,我会去进一步了解下编译这块的知识的 |
Beta Was this translation helpful? Give feedback.
0 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.
-
在大部分示例中,我看到的示例多是如下类型,
target("staticlibrary")
set_kind("static")
add_files("src/library/*.c")
target("test")
set_kind("binary")
add_files("src/*c")
add_deps("library")
目前我有一个需求,有几个so库和.a库需要引用,而我是没有源码的,只有库和头文件,我需要把他们引入到我的项目中,在cmakelist或者android.mk中我可以很容易的实现这一块。在xmake.lua中,静态库的添加貌似可以通过add_files把库文件引用进来,但是动态库库的引用目前可以用哪种有效的方式引用进来? 貌似xmake更推荐使用package的方式引用第三方库。
如果xmake支持这种方式,有没有示例可以看下
Beta Was this translation helpful? Give feedback.
All reactions