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