Merge pull request #26266 from thexai/fix-chunk
[xbmc.git] / tools / depends / native / wayland-scanner / Makefile
blobfc71bb30c085fd0ecdfefae39082ae3441237dcb
1 include ../../Makefile.include WAYLAND-SCANNER-VERSION ../../download-files.include
2 PREFIX=$(NATIVEPREFIX)
3 PLATFORM=$(NATIVEPLATFORM)
4 DEPS =../../Makefile.include Makefile WAYLAND-SCANNER-VERSION ../../download-files.include
6 # configuration settings
7 CONFIGURE = $(NATIVEPREFIX)/bin/python3 $(NATIVEPREFIX)/bin/meson setup \
8 --prefix $(PREFIX) \
9 --libdir $(PREFIX)/lib \
10 --buildtype=release \
11 -Dlibraries=false \
12 -Dtests=false \
13 -Ddocumentation=false \
14 -Ddtd_validation=false
16 export CC=$(CC_BINARY_FOR_BUILD)
17 export CXX=$(CXX_BINARY_FOR_BUILD)
18 export CFLAGS=$(NATIVE_CFLAGS)
19 export CXXFLAGS=$(NATIVE_CXXFLAGS)
20 export LDFLAGS=$(NATIVE_LDFLAGS)
22 export PKG_CONFIG_LIBDIR=$(PREFIX)/lib/pkgconfig
24 all: .installed-$(PLATFORM)
26 $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
27 rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
28 cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
29 cd $(PLATFORM); rm -rf build; mkdir -p build
30 cd $(PLATFORM); $(CONFIGURE) . build
32 .installed-$(PLATFORM): $(PLATFORM)
33 cd $(PLATFORM)/build; $(NATIVEPREFIX)/bin/ninja -v
34 cd $(PLATFORM)/build; $(NATIVEPREFIX)/bin/ninja -v install
35 touch $@
37 clean:
38 $(MAKE) -C $(PLATFORM) clean
39 rm -f .installed-$(PLATFORM)
41 distclean::
42 rm -rf $(PLATFORM) .installed-$(PLATFORM)