intel / intel/ittapi

Add option to build library as a shared object.

Open
#150 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
142
Forks
52
Avg merge
2d 20h
Merged PRs (30d)
3

Description

I see currently library is being built as a static library. That makes every project that uses this library inject the code inside their program. Instead it can be built as a dynamic library (`.so` on linux and `.dll` on windows) and link dynamically on the runtime. It will reduce size of the result binaries and will get an option to users to update ittapi library without updating application (if the ABI is compatible).

My question is if it possible to add shared target to the build? It should be as easy as removing `STATIC` keyword from `add_library` and then it can be controlled with [BUILD_SHARED_LIBS](https://cmake.org/cmake/help/latest/variable/BUILD_SHARED_LIBS.html) argument. Or there is a reason why it can't be loaded as a shared library?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.