blob: 02f38574aa56f6e04656dbd6f52b775215e54747 [file] [log] [blame]
Kiyoung Kim7d422b32019-03-05 17:06:13 +09001/*
2 * Copyright (C) 2019 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
17cc_defaults {
18 name: "linkerconfig_defaults",
19 cflags: [
20 "-Wall",
21 "-Werror",
22 "-Wextra",
23 ],
24 static_libs: [
25 "libbase",
26 "liblog",
27 ],
28 header_libs: ["linkerconfig_headers"],
29}
30
31cc_library_headers {
32 name: "linkerconfig_headers",
33 export_include_dirs: ["include"],
34}
35
36cc_library_static {
37 name: "linkerconfig_modules",
38 defaults: [ "linkerconfig_defaults" ],
39 srcs: [
40 "modules/*.cc",
41 ],
42}
43
44cc_test {
45 name: "linkerconfig_modules_unittest",
46 defaults: [ "linkerconfig_defaults" ],
47 srcs: [
48 "modules/tests/*_test.cc",
49 ],
50 static_libs: [
51 "linkerconfig_modules",
52 ],
53 cflags: [
54 "-g",
55 "-Wunused",
56 ],
57 test_suites: ["general-tests"],
58}