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 23package { 24 // See: http://go/android-license-faq 25 // A large-scale-change added 'default_applicable_licenses' to import 26 // all of the 'license_kinds' from "external_mesa3d_license" 27 // to get the below license kinds: 28 // SPDX-license-identifier-MIT 29 default_applicable_licenses: ["external_mesa3d_license"], 30} 31 32build = ["Android.sources.bp"] 33 34// 35// The libmesa_glsl_utils libraries allow us to avoid a circular dependency 36// between core mesa and glsl. 37// 38cc_library_static { 39 name: "libmesa_glsl_utils", 40 defaults: ["mesa_common_defaults"], 41 host_supported: true, 42 43 srcs: [ 44 "main/extensions_table.c", 45 "program/symbol_table.c", 46 "program/dummy_errors.c", 47 ], 48 header_libs: ["libmesa_glsl_utils_includes"], 49 50 target: { 51 host: { 52 cflags: ["-D_POSIX_C_SOURCE=199309L"], 53 }, 54 }, 55} 56 57cc_library_static { 58 name: "libmesa_sse41", 59 defaults: ["mesa_common_defaults"], 60 61 srcs: [":mesa_x86_sse41_srcs"], 62 63 cflags: [ 64 "-msse4.1", 65 "-mstackrealign", 66 ], 67 header_libs: ["libmesa_sse41_includes"], 68 69 enabled: false, 70 arch: { 71 x86: { 72 sse4_1: { 73 enabled: true, 74 }, 75 }, 76 x86_64: { 77 sse4_1: { 78 enabled: true, 79 }, 80 }, 81 }, 82} 83