Add FindXxx.cmake files to api archives

The FindXxx.cmake files are used by Goa's cmake support.

genodelabs/genode#5087
This commit is contained in:
Johannes Schlatow 2024-01-05 13:36:23 +01:00 committed by Christian Helmuth
parent f3cf4a7d7b
commit 83e3178e9b
5 changed files with 35 additions and 3 deletions

View File

@ -17,7 +17,10 @@ include:
content: src/lib/curl content: src/lib/curl
content: LICENSE content: LICENSE FindCURL.cmake
LICENSE: LICENSE:
cp $(PORT_DIR)/src/lib/curl/COPYING $@ cp $(PORT_DIR)/src/lib/curl/COPYING $@
FindCURL.cmake:
echo 'set(CURL_FOUND True)' > $@

View File

@ -17,7 +17,10 @@ include:
cp -r $(PORT_DIR)/include/* $@ cp -r $(PORT_DIR)/include/* $@
cp -r $(REP_DIR)/include/EGL $@ cp -r $(REP_DIR)/include/EGL $@
content: LICENSE content: LICENSE FindOpenGL.cmake
LICENSE: LICENSE:
cp $(PORT_DIR)/src/lib/mesa/docs/license.rst $@ cp $(PORT_DIR)/src/lib/mesa/docs/license.rst $@
Find%.cmake:
echo 'set($*_FOUND True)' | sed -r 's/\w+_FOUND/\U&/' > $@

View File

@ -40,3 +40,17 @@ content: LICENSE
LICENSE: LICENSE:
cp $(PORT_DIR)/src/lib/qt5/LICENSE.LGPLv3 $@ cp $(PORT_DIR)/src/lib/qt5/LICENSE.LGPLv3 $@
CMAKE_MODULES := FindQt5Core.cmake \
FindQt5Gui.cmake \
FindQt5Network.cmake \
FindQt5PrintSupport.cmake \
FindQt5Sql.cmake \
FindQt5Test.cmake \
FindQt5Widgets.cmake \
FindQt5Xml.cmake
content: $(CMAKE_MODULES)
$(CMAKE_MODULES): Find%.cmake:
echo 'set($*_FOUND True)' | sed -r 's/\w+_FOUND/\U&/' > $@

View File

@ -15,3 +15,13 @@ content: LICENSE
LICENSE: LICENSE:
cp $(PORT_DIR)/src/lib/qt5/LICENSE.LGPLv3 $@ cp $(PORT_DIR)/src/lib/qt5/LICENSE.LGPLv3 $@
CMAKE_MODULES := FindQt5Qml.cmake \
FindQt5QmlModels.cmake \
FindQt5Quick.cmake \
FindQt5QuickWidgets.cmake
content: $(CMAKE_MODULES)
$(CMAKE_MODULES): Find%.cmake:
echo 'set($*_FOUND True)' | sed -r 's/\w+_FOUND/\U&/' > $@

View File

@ -1,4 +1,4 @@
content: include lib/symbols/zlib LICENSE content: include lib/symbols/zlib LICENSE FindZLIB.cmake
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/zlib) PORT_DIR := $(call port_dir,$(REP_DIR)/ports/zlib)
@ -12,3 +12,5 @@ lib/symbols/zlib:
LICENSE: LICENSE:
echo "zlib license" > $@ echo "zlib license" > $@
FindZLIB.cmake:
echo 'set(ZLIB_FOUND True)' > $@