Garfield Tan | 6f23c36 | 2017-10-12 14:24:28 -0700 | [diff] [blame] | 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 | |
| 15 | cc_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", |
Chih-Hung Hsieh | 87f9fcc | 2017-10-30 10:51:15 -0700 | [diff] [blame] | 51 | "-Wall", |
| 52 | "-Werror", |
Garfield Tan | 6f23c36 | 2017-10-12 14:24:28 -0700 | [diff] [blame] | 53 | "-Wno-unused-parameter", |
| 54 | "-Wno-missing-field-initializers", |
| 55 | "-DXLOCALEDIR=\"/usr/share/X11/locale\"", |
Tetsui Ohkubo | 531410e | 2019-01-17 11:12:41 +0900 | [diff] [blame] | 56 | // Needed because libxkbcommon uses GNU extension asprintf(). |
| 57 | "-D_GNU_SOURCE", |
Garfield Tan | 6f23c36 | 2017-10-12 14:24:28 -0700 | [diff] [blame] | 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"], |
Ben Lin | 9d961ef | 2018-04-25 10:17:51 -0700 | [diff] [blame] | 65 | vendor_available: true, |
Tetsui Ohkubo | 531410e | 2019-01-17 11:12:41 +0900 | [diff] [blame] | 66 | host_supported: true, |
Garfield Tan | 6f23c36 | 2017-10-12 14:24:28 -0700 | [diff] [blame] | 67 | name: "libxkbcommon", |
| 68 | } |