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