Skip to content

Commit

Permalink
chore: Re-enable android build, but without webservice.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Dec 27, 2023
1 parent 5b9ad24 commit 9e5876c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 33 deletions.
62 changes: 31 additions & 31 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@ bazel-opt_task:
--config=ci
//hs-toxcore/...

#android-aarch64_task:
# container:
# image: toktoknet/ghc-android:8.10.7.aarch64
# cpu: 2
# memory: 6G
# build_script:
# - android/build.sh
#
#android-arm_task:
# container:
# image: toktoknet/ghc-android:8.10.7.arm
# cpu: 2
# memory: 6G
# build_script:
# - android/build.sh
#
#android-i686_task:
# container:
# image: toktoknet/ghc-android:8.10.7.i686
# cpu: 2
# memory: 6G
# build_script:
# - android/build.sh
#
#android-x86_64_task:
# container:
# image: toktoknet/ghc-android:8.10.7.x86_64
# cpu: 2
# memory: 6G
# build_script:
# - android/build.sh
android-aarch64_task:
container:
image: toktoknet/ghc-android:8.10.7.aarch64
cpu: 2
memory: 6G
build_script:
- android/build.sh

android-arm_task:
container:
image: toktoknet/ghc-android:8.10.7.arm
cpu: 2
memory: 6G
build_script:
- android/build.sh

android-i686_task:
container:
image: toktoknet/ghc-android:8.10.7.i686
cpu: 2
memory: 6G
build_script:
- android/build.sh

android-x86_64_task:
container:
image: toktoknet/ghc-android:8.10.7.x86_64
cpu: 2
memory: 6G
build_script:
- android/build.sh
2 changes: 1 addition & 1 deletion android/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ export PKG_CONFIG_PATH="$NDK_ADDON_PREFIX/lib/pkgconfig"

(cd network-3.1.1.1 && patch -p1 <../android/patches/hs-network-ffi.patch)

"$NDK_TARGET-cabal" new-install -j4 --with-happy="$GHC_HOST/bin/happy" --ghc-option="-fPIC"
"$NDK_TARGET-cabal" new-install -j4 --with-happy="$GHC_HOST/bin/happy" --ghc-option="-fPIC" -f-webservice
6 changes: 5 additions & 1 deletion toxcore.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ flag library-only
description: Build only library, no executables or tests.
default: False

flag webservice
description: Build the toxsave parser webservice.
default: True

library
default-language: Haskell2010
hs-source-dirs: src
Expand Down Expand Up @@ -123,7 +127,7 @@ executable webservice
default-language: Haskell2010
other-modules: Network.Tox.App

if flag(library-only)
if flag(library-only) || !flag(webservice)
buildable: False

build-depends:
Expand Down

0 comments on commit 9e5876c

Please sign in to comment.