Skip to content

Commit

Permalink
itry to fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mkalkbrenner committed Mar 8, 2024
1 parent 34dc1b9 commit ce4ca18
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
17 changes: 11 additions & 6 deletions platforms/android/arm64-v8a/external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,17 @@ curl -sL https://github.com/likle/cargs/archive/${LIBCARGS_SHA}.zip -o cargs.zip
unzip cargs.zip
cd cargs-${LIBCARGS_SHA}
cp include/cargs.h ../../third-party/include/
mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
cp -P libcargs.so* ../../../third-party/runtime-libs/android/arm64-v8a/
cd ../..
cmake -DBUILD_SHARED_LIBS=ON \
-DCMAKE_SYSTEM_NAME=Android \
-DCMAKE_SYSTEM_VERSION=30 \
-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a \
-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE \
-DCMAKE_INSTALL_RPATH="\$ORIGIN" \
-DCMAKE_BUILD_TYPE=${BUILD_TYPE} \
-B build
cmake --build build -- -j${NUM_PROCS}
cp build/libcargs.so ../../third-party/runtime-libs/android/arm64-v8a/
cd ..

#
# build libzedmd and copy to external
Expand Down
5 changes: 2 additions & 3 deletions platforms/win/x64/cargs/001.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ index b6f828f..6be0845 100644
set(CMAKE_C_STANDARD 11)

# setup target and directory names
-set(LIBRARY_TARGET "cargs64")
+set(LIBRARY_TARGET "cargs")
-set(LIBRARY_TARGET "cargs")
+set(LIBRARY_TARGET "cargs64")
set(INCLUDE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include")
set(SOURCE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src")


0 comments on commit ce4ca18

Please sign in to comment.