Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Static library #6

Closed
nick-botticelli opened this issue Jun 18, 2022 · 2 comments
Closed

Static library #6

nick-botticelli opened this issue Jun 18, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@nick-botticelli
Copy link

the Feature, Motivation and Pitch

If it is possible, could a static version of the library be shipped in addition to the shared version? I am not sure about the limitations of Prefab, but I hope that it can be done. This would be very helpful for building it into my own native library without the need for 2+ shared libraries (and can potentially cause conflicts, etc.).

Alternatives

Currently I manually download and modify the repo to build a static version to implement into my own native library.

Additional context

No response

@nick-botticelli nick-botticelli added the enhancement New feature or request label Jun 18, 2022
@caikelun
Copy link
Member

Hi @nick-botticelli,

Compilation and static linking are complex and closely related things. Modern compilers provide many parameters to control the size and execution performance of the product. Some parameters are related between compilation and static linking, such as LTO and outliner.

In addition, taking NDK with LLVM as an example, different NDK versions have different restrictions and bugs on the cooperation between compilation parameters and static link parameters.

So we can't assume in advance how your static linking method and parameters are configured.

It is recommended that you can integrate the xDL source code into your own project. We will not provide static libraries.

@nick-botticelli
Copy link
Author

Hi @nick-botticelli,

Compilation and static linking are complex and closely related things. Modern compilers provide many parameters to control the size and execution performance of the product. Some parameters are related between compilation and static linking, such as LTO and outliner.

In addition, taking NDK with LLVM as an example, different NDK versions have different restrictions and bugs on the cooperation between compilation parameters and static link parameters.

So we can't assume in advance how your static linking method and parameters are configured.

It is recommended that you can integrate the xDL source code into your own project. We will not provide static libraries.

Okay. Thank you for your response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants