blob: 38f0a7c03dc5144bf397ad94616f86fb2053e88d [file] [log] [blame]
Will Drewryd4ae5282017-01-03 22:06:26 -06001//
2// Copyright (C) 2017 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
Will Drewryb6635bf2017-03-30 08:02:36 -050017cc_defaults {
18 name: "libese-defaults",
19
Will Drewry28e79ff2017-04-07 00:15:31 -050020 proprietary: true,
Chih-Hung Hsiehc5b766a2017-09-28 14:01:29 -070021 cflags: [
22 "-std=c99",
23 "-D_FORTIFY_SOURCE=2",
24 "-Wall",
25 "-Werror",
26 ],
Will Drewryb6635bf2017-03-30 08:02:36 -050027
28 // This doesn't work yet, but is good documentation for when
29 // debugging is needed.
30 debug: {
31 cflags: ["-DLOG_NDEBUG=0"],
32 },
33}
34
35cc_defaults {
36 name: "libese-api-defaults",
37 defaults: ["libese-defaults"],
38
39 // Ensure that only explicitly exported symbols are visible.
40 local_include_dirs: ["include"],
41 export_include_dirs: ["include"],
42 cflags: ["-fvisibility=internal"],
43}
44
Will Drewryd4ae5282017-01-03 22:06:26 -060045cc_library {
46 name: "libese",
Will Drewryb6635bf2017-03-30 08:02:36 -050047 defaults: ["libese-api-defaults"],
Will Drewryd4ae5282017-01-03 22:06:26 -060048 host_supported: true,
49
50 srcs: [
51 "ese.c",
Will Drewry8f367fc2017-03-30 22:07:48 -050052 "ese_sg.c",
Will Drewryd4ae5282017-01-03 22:06:26 -060053 ],
54
Steven Morelande02e4332017-07-17 13:25:56 -070055 export_include_dirs: ["include"],
56
Will Drewryde2cad72017-03-10 15:53:34 -060057 shared_libs: ["libese-sysdeps", "liblog"],
Steven Morelande02e4332017-07-17 13:25:56 -070058 export_shared_lib_headers: ["liblog"],
Will Drewryd4ae5282017-01-03 22:06:26 -060059}
60
61subdirs = ["tests"]