1# Mesa 3-D graphics library 2# 3# Copyright (C) 2018 Intel Corporation 4# 5# Permission is hereby granted, free of charge, to any person obtaining a 6# copy of this software and associated documentation files (the "Software"), 7# to deal in the Software without restriction, including without limitation 8# the rights to use, copy, modify, merge, publish, distribute, sublicense, 9# and/or sell copies of the Software, and to permit persons to whom the 10# Software is furnished to do so, subject to the following conditions: 11# 12# The above copyright notice and this permission notice shall be included 13# in all copies or substantial portions of the Software. 14# 15# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 18# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 20# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 21# DEALINGS IN THE SOFTWARE. 22 23LOCAL_PATH := $(call my-dir) 24 25# get C_SOURCES 26include $(LOCAL_PATH)/Makefile.sources 27 28include $(CLEAR_VARS) 29 30LIBIRIS_SRC_FILES := \ 31 iris_blorp.c \ 32 iris_query.c \ 33 iris_state.c 34 35LIBIRIS_STATIC_LIBS := \ 36 libmesa_nir 37 38IRIS_COMMON_INCLUDES := \ 39 $(MESA_TOP)/src/mapi \ 40 $(MESA_TOP)/src/mesa \ 41 $(MESA_TOP)/src/gallium/include \ 42 $(MESA_TOP)/src/gallium/auxiliary 43 44# 45# libiris for gen8 46# 47 48include $(CLEAR_VARS) 49LOCAL_MODULE := libmesa_iris_gen8 50LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT 51LOCAL_LICENSE_CONDITIONS := notice 52LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../LICENSE 53LOCAL_MODULE_CLASS := STATIC_LIBRARIES 54 55LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES) 56LOCAL_CFLAGS := -DGEN_VERSIONx10=80 57 58LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES) 59 60LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS) 61 62LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml 63 64include $(MESA_COMMON_MK) 65include $(BUILD_STATIC_LIBRARY) 66 67# 68# libiris for gen9 69# 70 71include $(CLEAR_VARS) 72LOCAL_MODULE := libmesa_iris_gen9 73LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT 74LOCAL_LICENSE_CONDITIONS := notice 75LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../LICENSE 76LOCAL_MODULE_CLASS := STATIC_LIBRARIES 77 78LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES) 79LOCAL_CFLAGS := -DGEN_VERSIONx10=90 80 81LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES) 82 83LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS) 84 85LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml 86 87include $(MESA_COMMON_MK) 88include $(BUILD_STATIC_LIBRARY) 89 90# 91# libiris for gen11 92# 93 94include $(CLEAR_VARS) 95LOCAL_MODULE := libmesa_iris_gen11 96LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT 97LOCAL_LICENSE_CONDITIONS := notice 98LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../LICENSE 99LOCAL_MODULE_CLASS := STATIC_LIBRARIES 100 101LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES) 102LOCAL_CFLAGS := -DGEN_VERSIONx10=110 103 104LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES) 105 106LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS) 107 108LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml 109 110include $(MESA_COMMON_MK) 111include $(BUILD_STATIC_LIBRARY) 112 113# 114# libiris for gen12 115# 116 117include $(CLEAR_VARS) 118LOCAL_MODULE := libmesa_iris_gen12 119LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT 120LOCAL_LICENSE_CONDITIONS := notice 121LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../LICENSE 122LOCAL_MODULE_CLASS := STATIC_LIBRARIES 123 124LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES) 125LOCAL_CFLAGS := -DGEN_VERSIONx10=120 126 127LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES) 128 129LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS) 130 131LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml 132 133include $(MESA_COMMON_MK) 134include $(BUILD_STATIC_LIBRARY) 135 136########################################################### 137include $(CLEAR_VARS) 138 139LOCAL_MODULE := libmesa_pipe_iris 140LOCAL_LICENSE_KINDS := SPDX-license-identifier-MIT 141LOCAL_LICENSE_CONDITIONS := notice 142LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../../../LICENSE 143 144LOCAL_SRC_FILES := \ 145 $(IRIS_C_SOURCES) 146 147LOCAL_C_INCLUDES := \ 148 $(MESA_TOP)/src/mapi \ 149 $(MESA_TOP)/src/mesa \ 150 $(MESA_TOP)/include/drm-uapi \ 151 $(MESA_TOP)/src/gallium/include 152 153LOCAL_SHARED_LIBRARIES := libdrm_intel 154 155LOCAL_STATIC_LIBRARIES := \ 156 libmesa_intel_common \ 157 libmesa_nir 158 159LOCAL_WHOLE_STATIC_LIBRARIES := \ 160 libmesa_genxml \ 161 libmesa_blorp \ 162 libmesa_intel_common \ 163 libmesa_intel_compiler \ 164 libmesa_intel_perf \ 165 libmesa_iris_gen8 \ 166 libmesa_iris_gen9 \ 167 libmesa_iris_gen11 \ 168 libmesa_iris_gen12 169 170include $(GALLIUM_COMMON_MK) 171include $(BUILD_STATIC_LIBRARY) 172 173ifneq ($(HAVE_GALLIUM_IRIS),) 174GALLIUM_TARGET_DRIVERS += iris 175$(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_iris) 176$(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES)) 177endif 178