• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2011 Intel Corporation
3# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
4# Copyright (C) 2010-2011 LunarG
5# Copyright (C) 2016 Linaro, Ltd., Rob Herring <robh@kernel.org>
6#
7# Permission is hereby granted, free of charge, to any person obtaining a
8# copy of this software and associated documentation files (the "Software"),
9# to deal in the Software without restriction, including without limitation
10# the rights to use, copy, modify, merge, publish, distribute, sublicense,
11# and/or sell copies of the Software, and to permit persons to whom the
12# Software is furnished to do so, subject to the following conditions:
13#
14# The above copyright notice and this permission notice shall be included
15# in all copies or substantial portions of the Software.
16#
17# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
20# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23# DEALINGS IN THE SOFTWARE.
24#
25
26# ---------------------------------------
27# Build libmesa_intel_compiler
28# ---------------------------------------
29
30include $(CLEAR_VARS)
31
32LOCAL_MODULE := libmesa_intel_compiler
33LOCAL_LICENSE_KINDS := SPDX-license-identifier-ISC SPDX-license-identifier-MIT legacy_by_exception_only legacy_notice
34LOCAL_LICENSE_CONDITIONS := by_exception_only notice
35LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../../LICENSE
36LOCAL_MODULE_CLASS := STATIC_LIBRARIES
37
38LOCAL_SRC_FILES := \
39	$(COMPILER_FILES)
40
41LOCAL_C_INCLUDES := \
42	$(MESA_TOP)/src/intel \
43	$(MESA_TOP)/src/mapi \
44	$(MESA_TOP)/src/mesa \
45	$(MESA_TOP)/src/gallium/auxiliary \
46	$(MESA_TOP)/src/gallium/include \
47	$(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_glsl,,)/glsl \
48	$(call generated-sources-dir-for,STATIC_LIBRARIES,libmesa_nir,,)/nir \
49	$(MESA_TOP)/src/intel/compiler \
50	$(MESA_TOP)/src/compiler/nir
51
52intermediates := $(call local-generated-sources-dir)
53prebuilt_intermediates := $(MESA_TOP)/prebuilt-intermediates
54
55$(intermediates)/compiler/brw_nir_trig_workarounds.c: $(prebuilt_intermediates)/compiler/brw_nir_trig_workarounds.c
56	@mkdir -p $(dir $@)
57	@cp -f $< $@
58
59LOCAL_STATIC_LIBRARIES = libmesa_genxml
60
61LOCAL_GENERATED_SOURCES += $(addprefix $(intermediates)/, \
62	$(COMPILER_GENERATED_FILES))
63
64LOCAL_GENERATED_SOURCES += $(MESA_GEN_GLSL_H)
65
66include $(MESA_COMMON_MK)
67include $(BUILD_STATIC_LIBRARY)
68