Skip to content

Commit 596b476

Browse files
committed
iOS static library
1 parent c85d373 commit 596b476

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build-native.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ _CMakeIOSPlatform=
77
_CMakeEnableBitcode=
88
_OutputPathPrefix=
99
_CMakeBuildTarget=cimgui
10+
_CMakeImguiStatic=
1011

1112
while :; do
1213
if [ $# -le 0 ]; then
@@ -26,6 +27,7 @@ while :; do
2627
_CMakeIOSPlatform=-DIOS_PLATFORM=OS64
2728
_CMakeEnableBitcode=-DENABLE_BITCODE=0
2829
_OutputPathPrefix=ios-
30+
_CMakeImguiStatic=-DIMGUI_STATIC=1
2931
;;
3032
*)
3133
__UnprocessedBuildArgs="$__UnprocessedBuildArgs $1"
@@ -38,6 +40,6 @@ _OutputPath=$scriptPath/build/$_OutputPathPrefix$_CMakeBuildType
3840

3941
mkdir -p $_OutputPath
4042
pushd $_OutputPath
41-
cmake $scriptPath/cimgui -DCMAKE_BUILD_TYPE=$_CMakeBuildType $_CMakeToolchain $_CMakeIOSPlatform $_CMakeEnableBitcode
43+
cmake $scriptPath/cimgui -DCMAKE_BUILD_TYPE=$_CMakeBuildType $_CMakeToolchain $_CMakeIOSPlatform $_CMakeEnableBitcode $_CMakeImguiStatic
4244
cmake --build . --target $_CMakeBuildTarget
4345
popd

0 commit comments

Comments
 (0)