diff options
author | Tony Theodore <tonyt@logyst.com> | 2020-12-12 02:30:46 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2020-12-12 02:30:46 (GMT) |
commit | 4f78c9135a0cdf969a07d4782ead72c147236a12 (patch) | |
tree | 81e068ad0df8dd9467835030d1fe21e41aa79d2c | |
parent | 5d408eea94e6106b45851fb2f3dfe5b41aa3a65a (diff) | |
download | mxe-4f78c9135a0cdf969a07d4782ead72c147236a12.zip mxe-4f78c9135a0cdf969a07d4782ead72c147236a12.tar.gz mxe-4f78c9135a0cdf969a07d4782ead72c147236a12.tar.bz2 |
add package ninja
see https://github.com/mxe/mxe/issues/2594#issuecomment-743564175
-rw-r--r-- | src/ninja.mk | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/ninja.mk b/src/ninja.mk new file mode 100644 index 0000000..77ea112 --- /dev/null +++ b/src/ninja.mk @@ -0,0 +1,19 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := ninja +$(PKG)_WEBSITE := https://ninja-build.org +$(PKG)_DESCR := A small build system with a focus on speed +$(PKG)_IGNORE := +$(PKG)_VERSION := 1.10.2 +$(PKG)_CHECKSUM := ce35865411f0490368a8fc383f29071de6690cbadc27704734978221f25e2bed +$(PKG)_GH_CONF := ninja-build/ninja/tags,v +$(PKG)_DEPS := cmake +$(PKG)_TARGETS := $(BUILD) + +define $(PKG)_BUILD + cmake -S '$(SOURCE_DIR)' -B '$(BUILD_DIR)' \ + -DCMAKE_INSTALL_PREFIX='$(PREFIX)/$(TARGET)' \ + -DBUILD_TESTING=OFF + cmake --build '$(BUILD_DIR)' -j '$(JOBS)' + cmake --install '$(BUILD_DIR)' +endef |