mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
e5bc34a7b1
* modify contrib/window.sh now uses makefiles * create contrib/android.sh for building shared libs for android apk * update drone ci jizz for android * update cmake/StaticBuild.cmake to use $(MAKE) so that builds can parallelize (super epic) * remove android directory as it is no longer needed
26 lines
687 B
Bash
Executable File
26 lines
687 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
set +x
|
|
mkdir -p build-windows
|
|
cd build-windows
|
|
cmake \
|
|
-G 'Unix Makefiles' \
|
|
-DCMAKE_EXE_LINKER_FLAGS=-fstack-protector \
|
|
-DCMAKE_CXX_FLAGS=-fdiagnostics-color=always\
|
|
-DCMAKE_TOOLCHAIN_FILE=../contrib/cross/mingw64.cmake\
|
|
-DBUILD_STATIC_DEPS=ON \
|
|
-DBUILD_PACKAGE=ON \
|
|
-DBUILD_SHARED_LIBS=OFF \
|
|
-DBUILD_TESTING=OFF \
|
|
-DBUILD_LIBLOKINET=ON \
|
|
-DWITH_TESTS=OFF \
|
|
-DNATIVE_BUILD=OFF \
|
|
-DSTATIC_LINK=ON \
|
|
-DWITH_SYSTEMD=OFF \
|
|
-DFORCE_OXENMQ_SUBMODULE=ON \
|
|
-DSUBMODULE_CHECK=OFF \
|
|
-DWITH_LTO=OFF \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
$@ ..
|
|
make package -j${JOBS:-$(nproc)}
|