what's difference between cc_library and cc_import when import prebuild so library.
I noticed that
cc_library can use multi library but cc_import can just use one.cc_library can use strip_include_prefix but cc_import not.The difference between cc_library and cc_import is that the first one is intended to compile a shared library (.so/.dll files) and make it available as a dependency for other targets, such as executables or tests. It essentially requires you to have your whole library source code and builds from scratch, meanwhile cc_import is used to link prebuild libraries that already exist in your system. This way, you can use external dependencies like Boost or Qt and do not need to do a clean build of those libraries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With