blob: 503d42d99d69b3cc3c81b89831d9c5e1c24d82c8 [file] [log] [blame]
Garfield Tan6f23c362017-10-12 14:24:28 -07001// 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",
Chih-Hung Hsieh87f9fcc2017-10-30 10:51:15 -070051 "-Wall",
52 "-Werror",
Garfield Tan6f23c362017-10-12 14:24:28 -070053 "-Wno-unused-parameter",
54 "-Wno-missing-field-initializers",
55 "-DXLOCALEDIR=\"/usr/share/X11/locale\"",
Tetsui Ohkubo531410e2019-01-17 11:12:41 +090056 // Needed because libxkbcommon uses GNU extension asprintf().
57 "-D_GNU_SOURCE",
Garfield Tan6f23c362017-10-12 14:24:28 -070058 "-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 Lin9d961ef2018-04-25 10:17:51 -070065 vendor_available: true,
Tetsui Ohkubo531410e2019-01-17 11:12:41 +090066 host_supported: true,
Garfield Tan6f23c362017-10-12 14:24:28 -070067 name: "libxkbcommon",
68}