blob: e7a0cfeae8bd00da64a698d4ec0c09c1a58a359c [file] [log] [blame]
Dan Willemsene4376b82016-09-26 13:58:25 -07001// Copyright (C) 2016 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
15subdirs = [
16 "c2hal",
Dan Willemsen676abdc2016-09-28 19:42:22 -070017 "test",
Dan Willemsene4376b82016-09-26 13:58:25 -070018 "utils",
19]
20
21//
22// libhidl-gen
23//
24cc_library_shared {
25 name: "libhidl-gen",
26 host_supported: true,
27 cflags: [
28 "-O0",
29 "-g",
30 ],
31 srcs: [
32 "Annotation.cpp",
33 "ArrayType.cpp",
34 "CompoundType.cpp",
35 "ConstantExpression.cpp",
Martijn Coenen115d4282016-12-19 05:14:04 +010036 "DeathRecipientType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070037 "EnumType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070038 "HandleType.cpp",
39 "Interface.cpp",
Martijn Coenen99e6beb2016-12-01 15:48:42 +010040 "MemoryType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070041 "Method.cpp",
42 "NamedType.cpp",
Martijn Coenen99e6beb2016-12-01 15:48:42 +010043 "PointerType.cpp",
Hridya Valsarajua32bde82016-12-27 11:47:46 -080044 "FmqType.cpp",
Yifan Hongbf459bc2016-08-23 16:50:37 -070045 "RefType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070046 "ScalarType.cpp",
47 "Scope.cpp",
48 "StringType.cpp",
49 "Type.cpp",
50 "TypeDef.cpp",
51 "VectorType.cpp",
52 ],
53 shared_libs: [
54 "libbase",
55 "liblog",
56 "libhidl-gen-utils",
57 ],
58}
59
60//
61// libhidl-gen-ast
62//
63
64cc_library_host_shared {
65 name: "libhidl-gen-ast",
66 cflags: [
67 "-O0",
68 "-g",
69 ],
70 srcs: [
71 "Coordinator.cpp",
72 "generateCpp.cpp",
73 "generateCppImpl.cpp",
74 "generateJava.cpp",
75 "generateVts.cpp",
76 "hidl-gen_y.yy",
77 "hidl-gen_l.ll",
78 "AST.cpp",
79 ],
80
81 shared_libs: [
82 "libbase",
83 "liblog",
84 "libhidl-gen",
85 "libhidl-gen-utils",
86 ],
87}
88
89//
90// hidl-gen
91//
92cc_binary_host {
93 name: "hidl-gen",
94 srcs: ["main.cpp"],
95
96 shared_libs: [
97 "libbase",
98 "liblog",
99 "libhidl-gen",
100 "libhidl-gen-ast",
101 "libhidl-gen-utils",
102 ],
103
104 cflags: [
105 "-O0",
106 "-g",
107 ],
108}