blob: ad0e93369645b3ce0af84decbeeebe344cfce20f [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",
36 "EnumType.cpp",
37 "FQName.cpp",
38 "GenericBinder.cpp",
39 "HandleType.cpp",
40 "Interface.cpp",
41 "Method.cpp",
42 "NamedType.cpp",
43 "PredefinedType.cpp",
Yifan Hongbf459bc2016-08-23 16:50:37 -070044 "RefType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070045 "ScalarType.cpp",
46 "Scope.cpp",
47 "StringType.cpp",
48 "Type.cpp",
49 "TypeDef.cpp",
50 "VectorType.cpp",
51 ],
52 shared_libs: [
53 "libbase",
54 "liblog",
55 "libhidl-gen-utils",
56 ],
57}
58
59//
60// libhidl-gen-ast
61//
62
63cc_library_host_shared {
64 name: "libhidl-gen-ast",
65 cflags: [
66 "-O0",
67 "-g",
68 ],
69 srcs: [
70 "Coordinator.cpp",
71 "generateCpp.cpp",
72 "generateCppImpl.cpp",
73 "generateJava.cpp",
74 "generateVts.cpp",
75 "hidl-gen_y.yy",
76 "hidl-gen_l.ll",
77 "AST.cpp",
78 ],
79
80 shared_libs: [
81 "libbase",
82 "liblog",
83 "libhidl-gen",
84 "libhidl-gen-utils",
85 ],
86}
87
88//
89// hidl-gen
90//
91cc_binary_host {
92 name: "hidl-gen",
93 srcs: ["main.cpp"],
94
95 shared_libs: [
96 "libbase",
97 "liblog",
98 "libhidl-gen",
99 "libhidl-gen-ast",
100 "libhidl-gen-utils",
101 ],
102
103 cflags: [
104 "-O0",
105 "-g",
106 ],
107}