matrixion/Makefile

69 lines
1.5 KiB
Makefile
Raw Normal View History

2018-06-04 13:54:51 +03:00
DEPS_BUILD_DIR=.deps
DEPS_SOURCE_DIR=deps
2017-08-13 19:17:04 +03:00
debug:
2018-01-25 16:08:19 +03:00
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1
@cmake --build build
2017-04-06 04:07:53 +03:00
2018-06-04 13:54:51 +03:00
third_party:
@mkdir -p ${DEPS_BUILD_DIR}/usr/{lib,include}/
@cmake -GNinja -H${DEPS_SOURCE_DIR} -B${DEPS_BUILD_DIR} \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_BUNDLED_BOOST=OFF
@cmake --build ${DEPS_BUILD_DIR}
2017-12-22 17:33:29 +03:00
ci:
2018-06-04 13:54:51 +03:00
mkdir -p ${DEPS_BUILD_DIR}/usr/{lib,include}/
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
release:
@cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
@cmake --build build
2017-11-26 22:32:18 +03:00
linux-install:
cp -f nheko*.AppImage ~/.local/bin
2017-11-06 18:20:48 +03:00
macos-app-install:
cp -Rf build/nheko.app /Applications
2017-04-30 15:10:59 +03:00
lint:
2017-12-31 14:19:32 +03:00
./.ci/format.sh
2017-05-02 04:22:33 +03:00
2017-12-14 02:23:17 +03:00
image:
docker build -t nheko-app-image .
debian-image:
docker build -f Dockerfile.debian -t nheko-debian-appimage .
2017-12-31 14:19:32 +03:00
linux-deploy:
./.ci/linux/deploy.sh
macos-deploy:
./.ci/macos/deploy.sh
2017-12-14 02:23:17 +03:00
2017-12-31 14:19:32 +03:00
docker-app-image: image
2017-12-26 20:08:00 +03:00
docker run \
-e CXX=g++-7 \
-e CC=gcc-7 \
-v `pwd`:/build nheko-app-image make release
docker run \
--privileged \
2017-12-31 14:19:32 +03:00
-v `pwd`:/build nheko-app-image make linux-deploy
2017-12-26 20:08:00 +03:00
docker-debian-appimage: debian-image
docker run -v `pwd`:/build nheko-debian-appimage make release
docker run --privileged -v `pwd`:/build nheko-debian-appimage make linux-deploy
2018-03-28 11:05:08 +03:00
update-translations:
2018-05-13 22:09:26 +03:00
lupdate \
-locations relative \
-Iinclude/dialogs \
-Iinclude \
src/ -ts resources/langs/nheko_*.ts -no-obsolete
2018-03-28 11:05:08 +03:00
2017-04-06 04:07:53 +03:00
clean:
2017-12-21 16:10:04 +03:00
rm -rf build