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

请问是否支持编译的静态库 #131

Open
mousemin opened this issue Dec 30, 2024 · 3 comments
Open

请问是否支持编译的静态库 #131

mousemin opened this issue Dec 30, 2024 · 3 comments

Comments

@mousemin
Copy link

No description provided.

@tunmx
Copy link
Member

tunmx commented Dec 31, 2024

编译的时候添加-DISF_BUILD_SHARED_LIBS=OFF即可,以iOS的script为例:

cmake \
    -DIOS_3RDPARTY="${MACOS_CACHE}" \
    -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN} \
    -DCMAKE_OSX_ARCHITECTURES=arm64 \
    -DENABLE_BITCODE=0 \
    -DIOS_DEPLOYMENT_TARGET=11.0 \
    -DISF_BUILD_WITH_SAMPLE=OFF \
    -DISF_BUILD_WITH_TEST=OFF \
    -DISF_BUILD_SHARED_LIBS=OFF \
    ../..

make -j8

make install

@mousemin
Copy link
Author

编译的时候添加-DISF_BUILD_SHARED_LIBS=OFF即可,以iOS的脚本为例:

cmake \
    -DIOS_3RDPARTY="${MACOS_CACHE}" \
    -DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN} \
    -DCMAKE_OSX_ARCHITECTURES=arm64 \
    -DENABLE_BITCODE=0 \
    -DIOS_DEPLOYMENT_TARGET=11.0 \
    -DISF_BUILD_WITH_SAMPLE=OFF \
    -DISF_BUILD_WITH_TEST=OFF \
    -DISF_BUILD_SHARED_LIBS=OFF \
    ../..

make -j8

make install

是否可以在发布中加上相关的包呢

@tunmx
Copy link
Member

tunmx commented Jan 1, 2025

可以的,下个版本吧

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

No branches or pull requests

2 participants