mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-30 15:48:13 +00:00
build(makefile): added make targets for Windows
This commit is contained in:
parent
1d1792d10f
commit
a63b8d85b0
22
Makefile
22
Makefile
@ -1,4 +1,4 @@
|
|||||||
.PHONY: build static debug debian ubuntu clean \
|
.PHONY: build static debug windows windows-debug debian ubuntu clean \
|
||||||
test-realesrgan test-libplacebo \
|
test-realesrgan test-libplacebo \
|
||||||
memcheck-realesrgan memcheck-libplacebo \
|
memcheck-realesrgan memcheck-libplacebo \
|
||||||
heaptrack-realesrgan heaptrack-libplacebo
|
heaptrack-realesrgan heaptrack-libplacebo
|
||||||
@ -38,6 +38,26 @@ debug:
|
|||||||
cmake --build $(BINDIR) --config Debug --parallel
|
cmake --build $(BINDIR) --config Debug --parallel
|
||||||
cp $(BINDIR)/compile_commands.json .
|
cp $(BINDIR)/compile_commands.json .
|
||||||
|
|
||||||
|
windows:
|
||||||
|
cmake -S . -B $(BINDIR) \
|
||||||
|
-DUSE_SYSTEM_NCNN=OFF \
|
||||||
|
-DUSE_SYSTEM_OPENCV=OFF \
|
||||||
|
-DUSE_SYSTEM_SPDLOG=OFF \
|
||||||
|
-DUSE_SYSTEM_BOOST=OFF \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=build/libvideo2x-shared
|
||||||
|
cmake --build $(BINDIR) --config Release --parallel --target install
|
||||||
|
|
||||||
|
windows-debug:
|
||||||
|
cmake -S . -B $(BINDIR) \
|
||||||
|
-DUSE_SYSTEM_NCNN=OFF \
|
||||||
|
-DUSE_SYSTEM_OPENCV=OFF \
|
||||||
|
-DUSE_SYSTEM_SPDLOG=OFF \
|
||||||
|
-DUSE_SYSTEM_BOOST=OFF \
|
||||||
|
-DCMAKE_BUILD_TYPE=Debug \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=build/libvideo2x-shared
|
||||||
|
cmake --build $(BINDIR) --config Debug --parallel --target install
|
||||||
|
|
||||||
debian:
|
debian:
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
|
Loading…
Reference in New Issue
Block a user