From a63b8d85b0eeb8249b665c170926e85243da830b Mon Sep 17 00:00:00 2001 From: k4yt3x Date: Mon, 4 Nov 2024 03:49:20 -0500 Subject: [PATCH] build(makefile): added make targets for Windows --- Makefile | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c13dc64..5e623bf 100644 --- a/Makefile +++ b/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 \ memcheck-realesrgan memcheck-libplacebo \ heaptrack-realesrgan heaptrack-libplacebo @@ -38,6 +38,26 @@ debug: cmake --build $(BINDIR) --config Debug --parallel 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: apt-get update apt-get install -y --no-install-recommends \