Skip to content

Commit

Permalink
contrib: add MESONBUILD similar to CMAKEBUILD
Browse files Browse the repository at this point in the history
We don't use the '+' in front because it doesn't use the jobserver from our
make call, because of ninja:
ninja-build/ninja#1139
  • Loading branch information
robUx4 committed Sep 15, 2022
1 parent ddbfe0b commit 0b2008e
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion contrib/src/basu/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ basu: basu-$(BASU_VERSION).tar.gz .sum-basu
.basu: basu crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@
2 changes: 1 addition & 1 deletion contrib/src/dav1d/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ dav1d: dav1d-$(DAV1D_VERSION).tar.xz .sum-dav1d
.dav1d: dav1d crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) $(DAV1D_CONF) $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@
2 changes: 1 addition & 1 deletion contrib/src/fribidi/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ fribidi: fribidi-$(FRIBIDI_VERSION).tar.xz .sum-fribidi
.fribidi: fribidi crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) -Ddocs=false -Dbin=false -Dtests=false $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@
2 changes: 1 addition & 1 deletion contrib/src/harfbuzz/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ endif
.harfbuzz: harfbuzz crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) $(HARFBUZZ_CONF) $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@
2 changes: 1 addition & 1 deletion contrib/src/libdsm/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ endif
.libdsm: libdsm crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) -Dauto_features=disabled -Dbinaries=false $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@
2 changes: 1 addition & 1 deletion contrib/src/libplacebo/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ endif
.libplacebo: libplacebo crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) $(PLACEBOCONF) $</build $<
meson install -C $</build
$(MESONBUILD)
# Work-around for full paths to static libraries, which libtool does not like
# See https://github.com/mesonbuild/meson/issues/5479
(cd $(UNPACK_DIR) && $(SRC_BUILT)/pkg-rewrite-absolute.py -i "$(PREFIX)/lib/pkgconfig/libplacebo.pc")
Expand Down
2 changes: 1 addition & 1 deletion contrib/src/librist/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ librist: librist-$(LIBRIST_VERSION).tar.gz .sum-librist
.librist: librist crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) $(LIBRIST_CONF) $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@
1 change: 1 addition & 0 deletions contrib/src/main.mak
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ MESON = env -i PATH="$(PREFIX)/bin:$(PATH)" \
else
MESON = meson $(MESONFLAGS)
endif
MESONBUILD = meson install -C $</build

ifdef GPL
REQUIRE_GPL =
Expand Down
2 changes: 1 addition & 1 deletion contrib/src/medialibrary/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ medialibrary: medialibrary-$(MEDIALIBRARY_VERSION).tar.bz2 .sum-medialibrary
.medialibrary: medialibrary crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) -Dlibvlc=disabled -Dlibtool_workaround=true $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@

2 changes: 1 addition & 1 deletion contrib/src/microdns/rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ microdns: microdns-$(LIBMICRODNS_VERSION).tar.xz .sum-microdns
.microdns: microdns crossfile.meson
rm -rf $</build
$(HOSTVARS_MESON) $(MESON) -Dauto_features=disabled $</build $<
meson install -C $</build
$(MESONBUILD)
touch $@

0 comments on commit 0b2008e

Please sign in to comment.