You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nheko/Makefile

78 lines
1.6 KiB

DEPS_BUILD_DIR=.deps
DEPS_SOURCE_DIR=deps
debug:
@cmake -H. -GNinja \
-Bbuild \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \
-DCMAKE_INSTALL_PREFIX=${DEPS_BUILD_DIR}/usr
@cmake --build build
third-party:
@cmake -GNinja -H${DEPS_SOURCE_DIR} -B${DEPS_BUILD_DIR} \
-DCMAKE_BUILD_TYPE=Release \
-DUSE_BUNDLED_BOOST=OFF
@cmake --build ${DEPS_BUILD_DIR}
docker-third-party:
@cmake -GNinja -H${DEPS_SOURCE_DIR} -B${DEPS_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release
@cmake --build ${DEPS_BUILD_DIR}
ci:
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. -GNinja \
-Bbuild \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=${DEPS_BUILD_DIR}/usr
@cmake --build build
linux-install:
cp -f nheko*.AppImage ~/.local/bin
7 years ago
macos-app-install:
cp -Rf build/nheko.app /Applications
8 years ago
lint:
7 years ago
./.ci/format.sh
license:
./.ci/licenses.sh
image:
docker build -t nheko-app-image .
7 years ago
linux-deploy:
./.ci/linux/deploy.sh
macos-deploy:
./.ci/macos/deploy.sh
7 years ago
docker-app-image: image
docker run \
-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 \
-v `pwd`:/build nheko-app-image make release
docker run \
--privileged \
7 years ago
-v `pwd`:/build nheko-app-image make linux-deploy
update-translations:
7 years ago
lupdate \
-locations relative \
-Iinclude/dialogs \
-Iinclude \
src/ resources/qml/ -ts resources/langs/nheko_*.ts -no-obsolete
clean:
7 years ago
rm -rf build