blob: 6db4821be26c261d8418fa48f47475505e7af582 [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
Steven Moreland60818632017-02-04 00:33:42 -080021hidl_flags = [
22 "-O0",
23 "-g",
24 "-Wall",
25 "-Werror",
26]
27
Dan Willemsene4376b82016-09-26 13:58:25 -070028//
29// libhidl-gen
30//
31cc_library_shared {
32 name: "libhidl-gen",
33 host_supported: true,
Steven Moreland60818632017-02-04 00:33:42 -080034 cflags: hidl_flags,
Dan Willemsene4376b82016-09-26 13:58:25 -070035 srcs: [
36 "Annotation.cpp",
37 "ArrayType.cpp",
38 "CompoundType.cpp",
39 "ConstantExpression.cpp",
Martijn Coenen115d4282016-12-19 05:14:04 +010040 "DeathRecipientType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070041 "EnumType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070042 "HandleType.cpp",
43 "Interface.cpp",
Martijn Coenen99e6beb2016-12-01 15:48:42 +010044 "MemoryType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070045 "Method.cpp",
46 "NamedType.cpp",
Martijn Coenen99e6beb2016-12-01 15:48:42 +010047 "PointerType.cpp",
Hridya Valsarajua32bde82016-12-27 11:47:46 -080048 "FmqType.cpp",
Yifan Hongbf459bc2016-08-23 16:50:37 -070049 "RefType.cpp",
Dan Willemsene4376b82016-09-26 13:58:25 -070050 "ScalarType.cpp",
51 "Scope.cpp",
52 "StringType.cpp",
53 "Type.cpp",
54 "TypeDef.cpp",
55 "VectorType.cpp",
56 ],
57 shared_libs: [
58 "libbase",
59 "liblog",
60 "libhidl-gen-utils",
61 ],
62}
63
64//
65// libhidl-gen-ast
66//
67
68cc_library_host_shared {
69 name: "libhidl-gen-ast",
Steven Moreland60818632017-02-04 00:33:42 -080070 cflags: hidl_flags,
Dan Willemsene4376b82016-09-26 13:58:25 -070071 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 ],
Dan Willemsene4376b82016-09-26 13:58:25 -070081 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",
Steven Moreland60818632017-02-04 00:33:42 -080094 cflags: hidl_flags,
Dan Willemsene4376b82016-09-26 13:58:25 -070095 srcs: ["main.cpp"],
Dan Willemsene4376b82016-09-26 13:58:25 -070096 shared_libs: [
97 "libbase",
98 "liblog",
99 "libhidl-gen",
100 "libhidl-gen-ast",
101 "libhidl-gen-utils",
102 ],
Dan Willemsene4376b82016-09-26 13:58:25 -0700103}