1848b8605Smrg# Copyright 2012 Intel Corporation
2848b8605Smrg# Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
3848b8605Smrg# Copyright (C) 2010-2011 LunarG Inc.
4848b8605Smrg#
5848b8605Smrg# Permission is hereby granted, free of charge, to any person obtaining a
6848b8605Smrg# copy of this software and associated documentation files (the "Software"),
7848b8605Smrg# to deal in the Software without restriction, including without limitation
8848b8605Smrg# the rights to use, copy, modify, merge, publish, distribute, sublicense,
9848b8605Smrg# and/or sell copies of the Software, and to permit persons to whom the
10848b8605Smrg# Software is furnished to do so, subject to the following conditions:
11848b8605Smrg#
12848b8605Smrg# The above copyright notice and this permission notice shall be included
13848b8605Smrg# in all copies or substantial portions of the Software.
14848b8605Smrg#
15848b8605Smrg# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16848b8605Smrg# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17848b8605Smrg# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
18848b8605Smrg# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19848b8605Smrg# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20848b8605Smrg# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21848b8605Smrg# DEALINGS IN THE SOFTWARE.
22848b8605Smrg
23848b8605SmrgLOCAL_PATH := $(call my-dir)
24848b8605Smrg
25848b8605Smrg#
26848b8605Smrg# The libmesa_glsl_utils libraries allow us to avoid a circular dependency
27848b8605Smrg# between core mesa and glsl.
28848b8605Smrg#
29848b8605Smrg
30848b8605Smrg# ---------------------------------------
31848b8605Smrg# libmesa_glsl_utils.a for target
32848b8605Smrg# ---------------------------------------
33848b8605Smrg
34848b8605Smrginclude $(CLEAR_VARS)
35848b8605Smrg
36848b8605SmrgLOCAL_MODULE := libmesa_glsl_utils
37848b8605Smrg
38848b8605SmrgLOCAL_C_INCLUDES := \
39b8e80941Smrg	$(MESA_TOP)/src/compiler/nir \
40b8e80941Smrg	$(MESA_TOP)/src/mapi \
41b8e80941Smrg	$(MESA_TOP)/src/gallium/include \
42b8e80941Smrg	$(MESA_TOP)/src/gallium/auxiliary
43848b8605Smrg
44848b8605SmrgLOCAL_SRC_FILES := \
45b8e80941Smrg	main/extensions_table.c \
46848b8605Smrg	main/imports.c \
47b8e80941Smrg	program/symbol_table.c \
48b8e80941Smrg	program/dummy_errors.c
49848b8605Smrg
50848b8605Smrginclude $(MESA_COMMON_MK)
51848b8605Smrginclude $(BUILD_STATIC_LIBRARY)
52848b8605Smrg
53848b8605Smrg# ---------------------------------------
54848b8605Smrg# libmesa_glsl_utils.a for host
55848b8605Smrg# ---------------------------------------
56848b8605Smrg
57848b8605Smrginclude $(CLEAR_VARS)
58848b8605Smrg
59848b8605SmrgLOCAL_MODULE := libmesa_glsl_utils
60848b8605SmrgLOCAL_IS_HOST_MODULE := true
61848b8605SmrgLOCAL_CFLAGS := -D_POSIX_C_SOURCE=199309L
62848b8605Smrg
63848b8605SmrgLOCAL_C_INCLUDES := \
64b8e80941Smrg	$(MESA_TOP)/src/compiler/nir \
65b8e80941Smrg	$(MESA_TOP)/src/mapi \
66b8e80941Smrg	$(MESA_TOP)/src/gallium/include \
67b8e80941Smrg	$(MESA_TOP)/src/gallium/auxiliary
68848b8605Smrg
69848b8605SmrgLOCAL_SRC_FILES := \
70b8e80941Smrg	main/extensions_table.c \
71848b8605Smrg	main/imports.c \
72b8e80941Smrg	program/symbol_table.c \
73b8e80941Smrg	program/dummy_errors.c
74848b8605Smrg
75848b8605Smrginclude $(MESA_COMMON_MK)
76848b8605Smrginclude $(BUILD_HOST_STATIC_LIBRARY)
77