genode/repos/libports/recipes/api/mesa/content.mk
Johannes Schlatow 83e3178e9b Add FindXxx.cmake files to api archives
The FindXxx.cmake files are used by Goa's cmake support.

genodelabs/genode#5087
2024-02-26 08:31:04 +01:00

27 lines
595 B
Makefile

MIRROR_FROM_REP_DIR := lib/import/import-mesa.mk \
lib/import/import-mesa_api.mk \
lib/symbols/egl \
lib/symbols/mesa
content: $(MIRROR_FROM_REP_DIR)
$(MIRROR_FROM_REP_DIR):
$(mirror_from_rep_dir)
PORT_DIR := $(call port_dir,$(REP_DIR)/ports/mesa)
content: include
include:
mkdir -p $@
cp -r $(PORT_DIR)/include/* $@
cp -r $(REP_DIR)/include/EGL $@
content: LICENSE FindOpenGL.cmake
LICENSE:
cp $(PORT_DIR)/src/lib/mesa/docs/license.rst $@
Find%.cmake:
echo 'set($*_FOUND True)' | sed -r 's/\w+_FOUND/\U&/' > $@