• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2012 Intel Corporation
2// Copyright (C) 2010-2011 Chia-I Wu <olvaffe@gmail.com>
3// Copyright (C) 2010-2011 LunarG Inc.
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
23build = ["Android.sources.bp"]
24
25//
26// The libmesa_glsl_utils libraries allow us to avoid a circular dependency
27// between core mesa and glsl.
28//
29cc_library_static {
30    name: "libmesa_glsl_utils",
31    defaults: ["mesa_common_defaults"],
32    host_supported: true,
33
34    srcs: [
35        "main/extensions_table.c",
36        "program/symbol_table.c",
37        "program/dummy_errors.c",
38    ],
39    header_libs: ["libmesa_glsl_utils_includes"],
40
41    target: {
42        host: {
43            cflags: ["-D_POSIX_C_SOURCE=199309L"],
44        },
45    },
46}
47
48cc_library_static {
49    name: "libmesa_sse41",
50    defaults: ["mesa_common_defaults"],
51
52    srcs: [":mesa_x86_sse41_srcs"],
53
54    cflags: [
55        "-msse4.1",
56        "-mstackrealign",
57    ],
58    header_libs: ["libmesa_sse41_includes"],
59
60    enabled: false,
61    arch: {
62        x86: {
63            sse4_1: {
64                enabled: true,
65            },
66        },
67        x86_64: {
68            sse4_1: {
69                enabled: true,
70            },
71        },
72    },
73}
74