1// Copyright (C) 2017 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_applicable_licenses: ["external_libxkbcommon_license"], 17} 18 19// Added automatically by a large-scale-change that took the approach of 20// 'apply every license found to every target'. While this makes sure we respect 21// every license restriction, it may not be entirely correct. 22// 23// e.g. GPL in an MIT project might only apply to the contrib/ directory. 24// 25// Please consider splitting the single license below into multiple licenses, 26// taking care not to lose any license_kind information, and overriding the 27// default license using the 'licenses: [...]' property on targets as needed. 28// 29// For unused files, consider creating a 'fileGroup' with "//visibility:private" 30// to attach the license to, and including a comment whether the files may be 31// used in the current project. 32// See: http://go/android-license-faq 33license { 34 name: "external_libxkbcommon_license", 35 visibility: [":__subpackages__"], 36 license_kinds: [ 37 "SPDX-license-identifier-GPL", 38 "SPDX-license-identifier-GPL-2.0", 39 "SPDX-license-identifier-GPL-3.0", 40 "SPDX-license-identifier-ISC", 41 "SPDX-license-identifier-MIT", 42 "legacy_unencumbered", 43 ], 44 license_text: [ 45 "LICENSE", 46 ], 47} 48 49cc_library_static { 50 srcs: [ 51 "config/libxkbcommon.so.0.0.0.p/parser.c", 52 "src/compose/parser.c", 53 "src/compose/paths.c", 54 "src/compose/state.c", 55 "src/compose/table.c", 56 "src/xkbcomp/action.c", 57 "src/xkbcomp/ast-build.c", 58 "src/xkbcomp/compat.c", 59 "src/xkbcomp/expr.c", 60 "src/xkbcomp/include.c", 61 "src/xkbcomp/keycodes.c", 62 "src/xkbcomp/keymap.c", 63 "src/xkbcomp/keymap-dump.c", 64 "src/xkbcomp/keywords.c", 65 "src/xkbcomp/rules.c", 66 "src/xkbcomp/scanner.c", 67 "src/xkbcomp/symbols.c", 68 "src/xkbcomp/types.c", 69 "src/xkbcomp/vmod.c", 70 "src/xkbcomp/xkbcomp.c", 71 "src/atom.c", 72 "src/context.c", 73 "src/context-priv.c", 74 "src/keysym.c", 75 "src/keysym-utf.c", 76 "src/keymap.c", 77 "src/keymap-priv.c", 78 "src/state.c", 79 "src/text.c", 80 "src/utf8.c", 81 "src/utils.c", 82 ], 83 cflags: [ 84 "-std=c99", 85 "-Wall", 86 "-Werror", 87 "-Wno-unused-parameter", 88 "-Wno-missing-field-initializers", 89 // Needed because libxkbcommon uses GNU extension asprintf(). 90 "-D_GNU_SOURCE", 91 ], 92 local_include_dirs: ["src", "config/libxkbcommon.so.0.0.0.p"], 93 export_include_dirs: ["."], 94 vendor_available: true, 95 host_supported: true, 96 name: "libxkbcommon", 97} 98