jsimonot | d7e81ab | 2023-09-14 18:34:11 -0400 | [diff] [blame] | 1 | ifndef QCONFIG |
| 2 | QCONFIG=qconfig.mk |
| 3 | endif |
| 4 | include $(QCONFIG) |
| 5 | |
| 6 | .PHONY: gfxstream |
| 7 | .PHONY: aemu |
| 8 | .PHONY: clean |
| 9 | .PHONY: install |
| 10 | |
| 11 | all: gfxstream |
| 12 | |
| 13 | check-sdp: |
| 14 | @if [ -z "$${QNX_TARGET}" ]; then \ |
| 15 | echo "'QNX_TARGET' not set. Make sure QNX SDP environment is configured"; \ |
| 16 | exit 1; \ |
| 17 | fi |
| 18 | @if [ -z "$${QNX_HOST}" ]; then \ |
| 19 | echo "'QNX_HOST' not set. Make sure QNX SDP environment is configured"; \ |
| 20 | exit 1; \ |
| 21 | fi |
| 22 | |
| 23 | check-install-root: |
| 24 | @if [ -z "$${INSTALL_ROOT_nto}" ]; then \ |
| 25 | echo "'INSTALL_ROOT_nto' not set."; \ |
| 26 | exit 1; \ |
| 27 | fi |
| 28 | |
| 29 | aemu: check-sdp |
| 30 | ../build-aemu.sh |
| 31 | |
| 32 | gfxstream: check-sdp aemu |
| 33 | ../build-gfxstream.sh |
| 34 | |
| 35 | install: check-sdp check-install-root gfxstream |
jsimonot | 230d2dd | 2023-10-12 11:33:13 -0400 | [diff] [blame] | 36 | $(MAKE) -f ../../pinfo.mk gfxstream/host/libgfxstream* |
| 37 | $(LN_HOST) -s libgfxstream_backend.so gfxstream/host/libgfxstream.so |
| 38 | find gfxstream/host/ -maxdepth 1 \( -type f -o -type l \) -name "libgfxstream*" \ |
| 39 | -exec $(CP_HOST) -d {} $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/ \; |
jsimonot | d7e81ab | 2023-09-14 18:34:11 -0400 | [diff] [blame] | 40 | |
jsimonot | 230d2dd | 2023-10-12 11:33:13 -0400 | [diff] [blame] | 41 | clean: |
jsimonot | d7e81ab | 2023-09-14 18:34:11 -0400 | [diff] [blame] | 42 | rm -rf aemu |
| 43 | rm -rf gfxstream |
jsimonot | 230d2dd | 2023-10-12 11:33:13 -0400 | [diff] [blame] | 44 | rm -f *.pinfo |
| 45 | @if [ -n "$${INSTALL_ROOT_nto}" ]; then \ |
| 46 | rm -f $(INSTALL_ROOT_nto)/$(VARIANT)/usr/lib/libgfxstream* ;\ |
| 47 | fi |
| 48 | |