2018-06-04 12:54:51 +02:00
|
|
|
DEPS_BUILD_DIR=.deps
|
|
|
|
DEPS_SOURCE_DIR=deps
|
2017-08-13 18:17:04 +02:00
|
|
|
|
2017-04-06 18:56:33 +02:00
|
|
|
debug:
|
2018-06-16 23:23:49 +02:00
|
|
|
@cmake -H. -GNinja \
|
|
|
|
-Bbuild \
|
|
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
|
|
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_BUILD_DIR}/usr
|
2017-04-11 16:45:47 +02:00
|
|
|
@cmake --build build
|
2017-04-06 03:07:53 +02:00
|
|
|
|
2018-06-16 23:23:49 +02:00
|
|
|
third-party:
|
2018-06-04 12:54:51 +02:00
|
|
|
@cmake -GNinja -H${DEPS_SOURCE_DIR} -B${DEPS_BUILD_DIR} \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DUSE_BUNDLED_BOOST=OFF
|
|
|
|
@cmake --build ${DEPS_BUILD_DIR}
|
|
|
|
|
2018-09-08 22:37:24 +02:00
|
|
|
docker-third-party:
|
|
|
|
@cmake -GNinja -H${DEPS_SOURCE_DIR} -B${DEPS_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release
|
|
|
|
@cmake --build ${DEPS_BUILD_DIR}
|
|
|
|
|
2017-12-22 15:33:29 +01:00
|
|
|
ci:
|
2018-06-04 12:54:51 +02:00
|
|
|
cmake -H${DEPS_SOURCE_DIR} -B${DEPS_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release
|
|
|
|
cmake --build ${DEPS_BUILD_DIR}
|
|
|
|
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
|
|
cmake --build build
|
2017-04-11 16:45:47 +02:00
|
|
|
|
2017-12-07 22:07:30 +01:00
|
|
|
release:
|
2018-06-16 23:23:49 +02:00
|
|
|
@cmake -H. -GNinja \
|
|
|
|
-Bbuild \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=${DEPS_BUILD_DIR}/usr
|
2017-12-07 22:07:30 +01:00
|
|
|
@cmake --build build
|
|
|
|
|
2017-11-26 20:32:18 +01:00
|
|
|
linux-install:
|
|
|
|
cp -f nheko*.AppImage ~/.local/bin
|
|
|
|
|
2017-11-06 16:20:48 +01:00
|
|
|
macos-app-install:
|
|
|
|
cp -Rf build/nheko.app /Applications
|
2017-07-01 11:46:58 +02:00
|
|
|
|
2017-04-30 14:10:59 +02:00
|
|
|
lint:
|
2017-12-31 12:19:32 +01:00
|
|
|
./.ci/format.sh
|
2017-05-02 03:22:33 +02:00
|
|
|
|
2021-03-05 00:35:15 +01:00
|
|
|
license:
|
|
|
|
./.ci/licenses.sh
|
|
|
|
|
2017-12-14 00:23:17 +01:00
|
|
|
image:
|
|
|
|
docker build -t nheko-app-image .
|
|
|
|
|
2017-12-31 12:19:32 +01:00
|
|
|
linux-deploy:
|
|
|
|
./.ci/linux/deploy.sh
|
|
|
|
|
|
|
|
macos-deploy:
|
|
|
|
./.ci/macos/deploy.sh
|
2017-12-14 00:23:17 +01:00
|
|
|
|
2017-12-31 12:19:32 +01:00
|
|
|
docker-app-image: image
|
2017-12-26 18:08:00 +01:00
|
|
|
docker run \
|
2018-09-08 22:37:24 +02:00
|
|
|
-e CXX=g++-5 \
|
|
|
|
-e CC=gcc-5 \
|
|
|
|
-v `pwd`:/build nheko-app-image make docker-third-party
|
|
|
|
docker run \
|
|
|
|
-e CXX=g++-5 \
|
|
|
|
-e CC=gcc-5 \
|
2017-12-26 18:08:00 +01:00
|
|
|
-v `pwd`:/build nheko-app-image make release
|
|
|
|
docker run \
|
|
|
|
--privileged \
|
2017-12-31 12:19:32 +01:00
|
|
|
-v `pwd`:/build nheko-app-image make linux-deploy
|
2017-12-26 18:08:00 +01:00
|
|
|
|
2018-03-28 10:05:08 +02:00
|
|
|
update-translations:
|
2018-05-13 21:09:26 +02:00
|
|
|
lupdate \
|
|
|
|
-locations relative \
|
|
|
|
-Iinclude/dialogs \
|
|
|
|
-Iinclude \
|
2019-11-09 14:09:10 +01:00
|
|
|
src/ resources/qml/ -ts resources/langs/nheko_*.ts -no-obsolete
|
2018-03-28 10:05:08 +02:00
|
|
|
|
2017-04-06 03:07:53 +02:00
|
|
|
clean:
|
2017-12-21 14:10:04 +01:00
|
|
|
rm -rf build
|