"Fossies" - the Fresh Open Source Software Archive

Member "mesa-20.1.8/src/gallium/drivers/iris/Android.mk" (16 Sep 2020, 5055 Bytes) of package /linux/misc/mesa-20.1.8.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    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 
   23 LOCAL_PATH := $(call my-dir)
   24 
   25 # get C_SOURCES
   26 include $(LOCAL_PATH)/Makefile.sources
   27 
   28 include $(CLEAR_VARS)
   29 
   30 LIBIRIS_SRC_FILES := \
   31     iris_blorp.c \
   32     iris_query.c \
   33     iris_state.c
   34 
   35 LIBIRIS_STATIC_LIBS := \
   36     libmesa_nir
   37 
   38 IRIS_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 
   48 include $(CLEAR_VARS)
   49 LOCAL_MODULE := libmesa_iris_gen8
   50 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
   51 
   52 LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES)
   53 LOCAL_CFLAGS := -DGEN_VERSIONx10=80
   54 
   55 LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES)
   56 
   57 LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS)
   58 
   59 LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
   60 
   61 include $(MESA_COMMON_MK)
   62 include $(BUILD_STATIC_LIBRARY)
   63 
   64 #
   65 # libiris for gen9
   66 #
   67 
   68 include $(CLEAR_VARS)
   69 LOCAL_MODULE := libmesa_iris_gen9
   70 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
   71 
   72 LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES)
   73 LOCAL_CFLAGS := -DGEN_VERSIONx10=90
   74 
   75 LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES)
   76 
   77 LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS)
   78 
   79 LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
   80 
   81 include $(MESA_COMMON_MK)
   82 include $(BUILD_STATIC_LIBRARY)
   83 
   84 #
   85 # libiris for gen10
   86 #
   87 
   88 include $(CLEAR_VARS)
   89 LOCAL_MODULE := libmesa_iris_gen10
   90 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
   91 
   92 LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES)
   93 LOCAL_CFLAGS := -DGEN_VERSIONx10=100
   94 
   95 LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES)
   96 
   97 LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS)
   98 
   99 LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
  100 
  101 include $(MESA_COMMON_MK)
  102 include $(BUILD_STATIC_LIBRARY)
  103 
  104 #
  105 # libiris for gen11
  106 #
  107 
  108 include $(CLEAR_VARS)
  109 LOCAL_MODULE := libmesa_iris_gen11
  110 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
  111 
  112 LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES)
  113 LOCAL_CFLAGS := -DGEN_VERSIONx10=110
  114 
  115 LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES)
  116 
  117 LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS)
  118 
  119 LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
  120 
  121 include $(MESA_COMMON_MK)
  122 include $(BUILD_STATIC_LIBRARY)
  123 
  124 #
  125 # libiris for gen12
  126 #
  127 
  128 include $(CLEAR_VARS)
  129 LOCAL_MODULE := libmesa_iris_gen12
  130 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
  131 
  132 LOCAL_SRC_FILES := $(LIBIRIS_SRC_FILES)
  133 LOCAL_CFLAGS := -DGEN_VERSIONx10=120
  134 
  135 LOCAL_C_INCLUDES := $(IRIS_COMMON_INCLUDES)
  136 
  137 LOCAL_STATIC_LIBRARIES := $(LIBIRIS_STATIC_LIBS)
  138 
  139 LOCAL_WHOLE_STATIC_LIBRARIES := libmesa_genxml
  140 
  141 include $(MESA_COMMON_MK)
  142 include $(BUILD_STATIC_LIBRARY)
  143 
  144 ###########################################################
  145 include $(CLEAR_VARS)
  146 
  147 LOCAL_MODULE := libmesa_pipe_iris
  148 LOCAL_MODULE_CLASS := STATIC_LIBRARIES
  149 
  150 intermediates := $(call local-generated-sources-dir)
  151 
  152 LOCAL_GENERATED_SOURCES := $(addprefix $(intermediates)/iris/,$(GENERATED_SOURCES))
  153 
  154 GEN_DRIINFO_INPUTS := \
  155         $(MESA_TOP)/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h \
  156         $(LOCAL_PATH)/driinfo_iris.h
  157 
  158 MERGE_DRIINFO := $(MESA_TOP)/src/util/merge_driinfo.py
  159 
  160 $(intermediates)/iris/iris_driinfo.h: $(MERGE_DRIINFO) $(GEN_DRIINFO_INPUTS)
  161     @mkdir -p $(dir $@)
  162     @echo "Gen Header: $(PRIVATE_MODULE) <= $(notdir $(@))"
  163     $(hide) $(MESA_PYTHON2) $(MERGE_DRIINFO) $(GEN_DRIINFO_INPUTS) > $@ || ($(RM) $@; false)
  164 
  165 LOCAL_EXPORT_C_INCLUDE_DIRS := $(intermediates)
  166 
  167 LOCAL_SRC_FILES := \
  168     $(IRIS_C_SOURCES)
  169 
  170 LOCAL_C_INCLUDES := \
  171     $(MESA_TOP)/src/mapi \
  172     $(MESA_TOP)/src/mesa \
  173     $(MESA_TOP)/include/drm-uapi \
  174     $(MESA_TOP)/src/gallium/include
  175 
  176 LOCAL_SHARED_LIBRARIES := libdrm_intel
  177 
  178 LOCAL_STATIC_LIBRARIES := \
  179     libmesa_intel_common \
  180     libmesa_nir
  181 
  182 LOCAL_WHOLE_STATIC_LIBRARIES := \
  183     libmesa_genxml \
  184     libmesa_blorp \
  185     libmesa_intel_common \
  186     libmesa_intel_compiler \
  187     libmesa_intel_perf \
  188     libmesa_iris_gen8 \
  189     libmesa_iris_gen9 \
  190     libmesa_iris_gen10 \
  191     libmesa_iris_gen11 \
  192     libmesa_iris_gen12
  193 
  194 include $(GALLIUM_COMMON_MK)
  195 include $(BUILD_STATIC_LIBRARY)
  196 
  197 ifneq ($(HAVE_GALLIUM_IRIS),)
  198 GALLIUM_TARGET_DRIVERS += iris
  199 $(eval GALLIUM_LIBS += $(LOCAL_MODULE) libmesa_winsys_iris)
  200 $(eval GALLIUM_SHARED_LIBS += $(LOCAL_SHARED_LIBRARIES))
  201 endif