-
大家好,我想导出 target("demo")
set_kind("object")
add_files("src/1.cpp")
add_includedirs("include")
add_linkdirs("lib")
add_links("1.lib", "2.lib", "3.lib")
set_targetdir("bin/$(mode)")
target("demo_DLL")
set_kind("shared")
add_files("src/export_dll.cpp")
add_includedirs("include")
add_deps("demo")
add_rules("utils.symbols.export_all", {export_classes = true})
set_targetdir("bin/$(mode)") 其中 |
Beta Was this translation helpful? Give feedback.
Answered by
hxhc
Nov 14, 2023
Replies: 1 comment 1 reply
-
为啥不用静态库,demo_dll 直接 link 他们 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我一开始想的是demo只要编译成object这个程度就可以了。我对object和静态库了解不深,刚刚查了静态库好像就是object的打包集合,那这样用静态库也是很合适的。