mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 09:30:47 +03:00
54 lines
983 B
Makefile
54 lines
983 B
Makefile
|
|
debug:
|
|
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
|
@cmake --build build
|
|
|
|
ci:
|
|
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
@cmake --build build
|
|
|
|
release:
|
|
@cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
@cmake --build build
|
|
|
|
linux-appimage:
|
|
@./.ci/linux/deploy.sh
|
|
|
|
linux-install:
|
|
cp -f nheko*.AppImage ~/.local/bin
|
|
|
|
macos-app: release
|
|
@./.ci/macos/deploy.sh
|
|
|
|
macos-app-install:
|
|
cp -Rf build/nheko.app /Applications
|
|
|
|
run:
|
|
@./build/nheko
|
|
|
|
lint:
|
|
@./.ci/format.sh
|
|
|
|
image:
|
|
docker build -t nheko-app-image .
|
|
|
|
docker-app-image: image
|
|
docker run \
|
|
-e CXX=g++-7 \
|
|
-e CC=gcc-7 \
|
|
-v `pwd`:/build nheko-app-image make release
|
|
docker run \
|
|
--privileged \
|
|
-v `pwd`:/build nheko-app-image make linux-appimage
|
|
|
|
docker-packages: image
|
|
docker run \
|
|
-e CXX=g++-7 \
|
|
-e CC=gcc-7 \
|
|
-v `pwd`:/build nheko-app-image make release
|
|
docker run \
|
|
--privileged \
|
|
-v `pwd`:/build nheko-app-image ./.ci/linux/create-packages.sh
|
|
|
|
clean:
|
|
rm -rf build
|