Merge pull request #26266 from thexai/fix-chunk
[xbmc.git] / tools / depends / native / waylandpp-scanner / Makefile
blob93816f47937e2e6dcebe8cf2b340ac4a142f1104
1 include ../../Makefile.include WAYLANDPP-SCANNER-VERSION ../../download-files.include
2 PREFIX=$(NATIVEPREFIX)
3 PLATFORM=$(NATIVEPLATFORM)
4 DEPS =../../Makefile.include Makefile WAYLANDPP-SCANNER-VERSION ../../download-files.include 001-fix-gcc13-build.patch
6 CMAKE_OPTIONS := -DBUILD_DOCUMENTATION=OFF \
7 -DBUILD_LIBRARIES=OFF \
8 -DBUILD_EXAMPLES=OFF \
9 -DBUILD_SCANNER=ON \
10 -DCMAKE_INSTALL_LIBDIR=lib \
11 -DCMAKE_INSTALL_PREFIX=$(NATIVEPREFIX) \
12 $(CMAKE_OPTIONS)
14 BUILDDIR = $(PLATFORM)/build
16 all: .installed-$(PLATFORM)
19 $(PLATFORM): $(DEPS) | $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE)
20 rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM)
21 cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
22 cd $(PLATFORM); patch -p1 -i ../001-fix-gcc13-build.patch
23 mkdir -p $(BUILDDIR)
24 cd $(BUILDDIR); $(NATIVEPREFIX)/bin/cmake $(CMAKE_OPTIONS) ..
26 .installed-$(PLATFORM): $(PLATFORM)
27 $(MAKE) -C $(BUILDDIR)
28 $(MAKE) -C $(BUILDDIR) install
29 touch $@
31 clean:
32 $(MAKE) -C $(BUILDDIR) clean
33 rm -f .installed-$(PLATFORM)
35 distclean:
36 rm -rf $(PLATFORM) .installed-$(PLATFORM)