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 15cc_library_static { 16 srcs: [ 17 "xkbcommon/src/compose/parser.c", 18 "xkbcommon/src/compose/paths.c", 19 "xkbcommon/src/compose/state.c", 20 "xkbcommon/src/compose/table.c", 21 "xkbcommon/src/xkbcomp/action.c", 22 "xkbcommon/src/xkbcomp/ast-build.c", 23 "xkbcommon/src/xkbcomp/compat.c", 24 "xkbcommon/src/xkbcomp/expr.c", 25 "xkbcommon/src/xkbcomp/include.c", 26 "xkbcommon/src/xkbcomp/keycodes.c", 27 "xkbcommon/src/xkbcomp/keymap.c", 28 "xkbcommon/src/xkbcomp/keymap-dump.c", 29 "xkbcommon/src/xkbcomp/keywords.c", 30 "xkbcommon/src/xkbcomp/parser.c", 31 "xkbcommon/src/xkbcomp/rules.c", 32 "xkbcommon/src/xkbcomp/scanner.c", 33 "xkbcommon/src/xkbcomp/symbols.c", 34 "xkbcommon/src/xkbcomp/types.c", 35 "xkbcommon/src/xkbcomp/vmod.c", 36 "xkbcommon/src/xkbcomp/xkbcomp.c", 37 "xkbcommon/src/atom.c", 38 "xkbcommon/src/context.c", 39 "xkbcommon/src/context-priv.c", 40 "xkbcommon/src/keysym.c", 41 "xkbcommon/src/keysym-utf.c", 42 "xkbcommon/src/keymap.c", 43 "xkbcommon/src/keymap-priv.c", 44 "xkbcommon/src/state.c", 45 "xkbcommon/src/text.c", 46 "xkbcommon/src/utf8.c", 47 "xkbcommon/src/utils.c", 48 ], 49 cflags: [ 50 "-std=c99", 51 "-Wall", 52 "-Werror", 53 "-Wno-unused-parameter", 54 "-Wno-missing-field-initializers", 55 "-DXLOCALEDIR=\"/usr/share/X11/locale\"", 56 // Needed because libxkbcommon uses GNU extension asprintf(). 57 "-D_GNU_SOURCE", 58 "-DDEFAULT_XKB_LAYOUT=\"us\"", 59 "-DDEFAULT_XKB_MODEL=\"pc105\"", 60 "-DDEFAULT_XKB_RULES=\"evdev\"", 61 "-DDFLT_XKB_CONFIG_ROOT=\"/usr/share/X11/xkb\"", 62 ], 63 local_include_dirs: ["xkbcommon/src"], 64 export_include_dirs: ["xkbcommon"], 65 vendor_available: true, 66 host_supported: true, 67 name: "libxkbcommon", 68} 69