Skip to content

add Allow user define RLOTTIE_API macros.#428

Open
mingkuang-Chuyu wants to merge 1 commit intoSamsung:masterfrom
mingkuang-Chuyu:master
Open

add Allow user define RLOTTIE_API macros.#428
mingkuang-Chuyu wants to merge 1 commit intoSamsung:masterfrom
mingkuang-Chuyu:master

Conversation

@mingkuang-Chuyu
Copy link
Copy Markdown

We can compile the static library by defining the RLOTTIE_API macro.

: )

Best

mingkuang

Copy link
Copy Markdown
Member

@hermet hermet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain which scenario requires this define?

@donno
Copy link
Copy Markdown

donno commented Dec 11, 2025

Could you please explain which scenario requires this define?

The scenario that requires this define is being able to compile rlottie as a static library such that you can define RLOTTIE_API and avoid the dllimport on Windows.

The alternative would be introduce a separate define for that such as RLOTTIE_STATIC or (RLOTTIE_NO_DLL) which then defines RLOTTIE_API to nothing for the same effect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants