Skip to content

Commit

Permalink
sokol build
Browse files Browse the repository at this point in the history
  • Loading branch information
nesbox committed Jun 1, 2024
1 parent 4c295a5 commit 5955cdc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,14 @@ jobs:
- name: Build
run: |
cd build
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_STATIC=ON -DBUILD_TOUCH_INPUT=ON -DBUILD_WITH_RUBY=OFF -DBUILD_WITH_ALL=ON -DCMAKE_TOOLCHAIN_FILE=${{ steps.setup-ndk.outputs.ndk-path }}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-28 ..
cmake -DCMAKE_BUILD_TYPE=MinSizeRel -DBUILD_TOUCH_INPUT=ON -DBUILD_WITH_RUBY=OFF -DBUILD_WITH_ALL=ON -DCMAKE_TOOLCHAIN_FILE=${{ steps.setup-ndk.outputs.ndk-path }}/build/cmake/android.toolchain.cmake -DANDROID_ABI=arm64-v8a -DANDROID_PLATFORM=android-28 ..
cmake --build . --config MinSizeRel --parallel
- name: Deploy
uses: actions/upload-artifact@v4
with:
name: "tic80-android"
path: build/bin/tic80.so
path: build/bin/*.so

# === HTML ===
html:
Expand Down
1 change: 1 addition & 0 deletions cmake/sokol.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ if(BUILD_SOKOL)
add_executable(${TIC80_TARGET} WIN32 ${TIC80_SRC})
elseif(ANDROID)
add_library(${TIC80_TARGET} SHARED ${TIC80_SRC})
set_target_properties(${TIC80_TARGET} PROPERTIES PREFIX "")
else()
add_executable(${TIC80_TARGET} ${TIC80_SRC})

Expand Down

0 comments on commit 5955cdc

Please sign in to comment.