defer test compilation to test target

No PLIST/package change, but "make build" is much faster.
This commit is contained in:
kn 2023-01-08 13:08:22 +00:00
parent 66ad661858
commit 0c8aea4855

View File

@ -36,4 +36,15 @@ CONFIGURE_ARGS = -Dpython-bindings=ON \
# https://github.com/arvidn/libtorrent/issues/6468
CONFIGURE_ARGS += -DCMAKE_CXX_STANDARD=17
ALL_TARGET = torrent-rasterbar \
python-libtorrent
# build shared library and python module/bindings only to defer test compilation
do-build:
@${MODCMAKE_BUILD_TARGET} -t ${ALL_TARGET}
# build whatever is left (+200 test files)
pre-test:
@${MODCMAKE_BUILD_TARGET}
.include <bsd.port.mk>