iOS Documentation: Animated Marker Example, Custom Annotation Example (#2539)

This commit is contained in:
Bart Louwers
2024-06-22 11:46:05 +02:00
committed by GitHub
parent 7af1b8d5ef
commit 7f1b76cdaf
25 changed files with 1015 additions and 66 deletions

View File

@@ -59,19 +59,23 @@ filter_filenames() {
ios_headers=$(filter_filenames "platform/ios/src" "$public_headers")
darwin_headers=$(filter_filenames "platform/darwin/src" "$public_headers")
for header in $ios_headers $darwin_headers $style_headers; do
xcrun --toolchain swift clang \
-extract-api \
--product-name=MapLibre \
-isysroot $SDK_PATH \
-F "$SDK_PATH"/System/Library/Frameworks \
-I "$PWD" \
-I "$build_dir"/headers \
-I platform/darwin/src \
-x objective-c-header \
-o "$build_dir"/symbol-graphs/$(basename $header).symbols.json \
$header
done
docc_options=(
--toolchain swift clang
-extract-api
--product-name=MapLibre
-isysroot "$SDK_PATH"
-F "$SDK_PATH/System/Library/Frameworks"
-I "$PWD"
-I "$build_dir/headers"
-I platform/darwin/src
-x objective-c-header
)
headers=($ios_headers $darwin_headers build/headers/*.h)
output_name="combined.symbols.json"
xcrun "${docc_options[@]}" \
-o "$build_dir/symbol-graphs/$output_name" \
"${headers[@]}"
export DOCC_HTML_DIR=$(dirname $(xcrun --toolchain swift --find docc))/../share/docc/render
$(xcrun --find docc) "$cmd" platform/ios/MapLibre.docc \