diff options
| author | Egor Tensin <egor@tensin.name> | 2026-03-30 12:31:09 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-03-30 12:50:50 +0200 |
| commit | 2cd69db5aaaf24891e867b377048f14df49668ab (patch) | |
| tree | 412ba205e3d7b393a2ab0571131617521685cb26 /Makefile | |
| parent | workflows/ci: remove on: pull_request (diff) | |
| download | winapi-utf8-2cd69db5aaaf24891e867b377048f14df49668ab.tar.gz winapi-utf8-2cd69db5aaaf24891e867b377048f14df49668ab.zip | |
still using this as a cmake-common test project
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -11,8 +11,9 @@ TOOLSET ?= mingw PLATFORM ?= auto CONFIGURATION ?= Debug BOOST_VERSION ?= 1.81.0 -BOOST_LIBRARIES := --with-test +BOOST_LIBRARIES := test INSTALL_PREFIX ?= $(install_dir) +SKIP_TESTS ?= $(eval $(call noexpand,TOOLSET)) $(eval $(call noexpand,PLATFORM)) @@ -45,6 +46,12 @@ deps: $(boost_dir)/ '$(call escape,$(boost_dir))' \ $(BOOST_LIBRARIES) +ifneq ($(SKIP_TESTS),) +tests_args := --cmake-arg=-DWINAPI_UTF8_TESTS=OFF +else +tests_args := --cmake-arg=-DWINAPI_UTF8_TESTS=ON +endif + .PHONY: build build: cd cmake && python3 -m project.build \ @@ -53,7 +60,7 @@ build: --configuration '$(call escape,$(CONFIGURATION))' \ --install '$(call escape,$(INSTALL_PREFIX))' \ --boost '$(call escape,$(boost_dir))' \ - --cmake-arg=-DWINAPI_UTF8_TESTS=ON \ + $(tests_args) \ -- \ '$(call escape,$(src_dir))' \ '$(call escape,$(cmake_dir))' \ |
