Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[suggestion] - Ability of creating xcframeworks libs bundle #397

Copy link
Copy link

Description

@dimitre
Issue body actions

I'm now using a script like this to compile assimp lib as a xcframework
this way we can combine two different platforms (iOS / iOS Simulator)
It would be great to be able to do something similar with Chalet

#!/bin/bash
cd "$(dirname "$0")"

# rm -rf buildios
LIB="zlib"

FOLDERIOS=${LIB}-ios
FOLDERSIM=${LIB}-sim
mkdir ${FOLDERIOS}
mkdir ${FOLDERSIM}

COMMON="-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INCLUDE_OUTPUT_DIRECTORY=include \
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY=lib \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=lib \
-DBUILD_SHARED_LIBS=OFF \
-DZLIB_BUILD_EXAMPLES=OFF \
-DCMAKE_TOOLCHAIN_FILE=../../_ios-cmake/ios.toolchain.cmake \
"

cd ${FOLDERIOS}
cmake ../chalet_external/${LIB}  -G Xcode ${COMMON} \
    -DPLATFORM=OS64 \
cmake --build . --config Release


cd ../${FOLDERSIM}
cmake ../chalet_external/${LIB} -G Xcode ${COMMON} \
    -DPLATFORM=SIMULATOR64COMBINED
cmake --build . --config Release
cd ..


rm -rf include
mkdir include
cp chalet_external/${LIB}/*.h include

xcframework_flags=""
xcframework_flags+=" -library ${FOLDERSIM}/lib/Release/*.a"
xcframework_flags+=" -library ${FOLDERIOS}/lib/Release/*.a"
xcframework_flags+=" -headers include"

# echo xcodebuild -create-xcframework ${xcframework_flags} -output ${LIB}.xcframework
xcodebuild -create-xcframework ${xcframework_flags} -output ${LIB}.xcframework
# cmake --install . --prefix `pwd`/install
Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestNew feature or request

Type

No type

Projects

Status
Todo
Show more project fields

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.