1ifndef QCONFIG 2QCONFIG=qconfig.mk 3endif 4include $(QCONFIG) 5 6define PINFO 7PINFO DESCRIPTION = "Vulkan ICD Loader" 8endef 9 10ICD_ROOT=$(CURDIR)/../../../.. 11 12EXTRA_INCVPATH+=$(ICD_ROOT)/build_qnx 13EXTRA_INCVPATH+=$(ICD_ROOT)/external/Vulkan-Headers/include 14 15EXTRA_SRCVPATH+=$(ICD_ROOT)/loader 16EXTRA_SRCVPATH+=$(ICD_ROOT)/loader/generated 17 18SO_VERSION=1 19NAME=vulkan 20 21# Make the library 22 23SRCS = cJSON.c debug_utils.c dev_ext_trampoline.c loader.c \ 24 phys_dev_ext.c trampoline.c unknown_ext_chain.c wsi.c \ 25 extension_manual.c unknown_function_handling.c 26 27LDFLAGS += -Wl,--unresolved-symbols=report-all -Wl,--no-undefined -Wl,-fPIC 28 29include $(MKFILES_ROOT)/qtargets.mk 30 31CCFLAGS += -DVK_USE_PLATFORM_SCREEN_QNX=1 -Dvulkan_EXPORTS 32CCFLAGS += -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers 33CCFLAGS += -fno-strict-aliasing -fno-builtin-memcmp -Wno-stringop-truncation 34CCFLAGS += -Wno-stringop-overflow -Wimplicit-fallthrough=0 -fvisibility=hidden 35CCFLAGS += -Wpointer-arith -fPIC 36 37# Enable this if required 38CCFLAGS += -DVK_ENABLE_BETA_EXTENSIONS 39 40CXXFLAGS += $(CCFLAGS) 41 42# cJSON requires math library for pow() function 43LIBS += m 44 45INSTALLDIR=usr/lib 46