diff options
author | Steven Moreland | 2017-09-25 18:14:44 -0500 |
---|---|---|
committer | android-build-merger | 2017-09-25 18:14:44 -0500 |
commit | 73949c1d7ed74d1b18fc341b3306b62fa5791dd6 (patch) | |
tree | a236e03c11408e726e98bd8db6e2c0fcc96519a4 /tetheroffload/config/1.0 | |
parent | 11aefd9e74c9b8887e8a63cca77f43754d8819e1 (diff) | |
parent | 26a0bb27627c43b599a7807ecf5ec594a525660a (diff) | |
download | platform-hardware-interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.tar.gz platform-hardware-interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.tar.xz platform-hardware-interfaces-73949c1d7ed74d1b18fc341b3306b62fa5791dd6.zip |
Update makefiles for hidl adapter.
am: 26a0bb2762
Change-Id: I3a811f5cd49bd4e81e8fcd5c8e88922115812539
Diffstat (limited to 'tetheroffload/config/1.0')
-rw-r--r-- | tetheroffload/config/1.0/Android.bp | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/tetheroffload/config/1.0/Android.bp b/tetheroffload/config/1.0/Android.bp index 2d62f162..fbb4cf29 100644 --- a/tetheroffload/config/1.0/Android.bp +++ b/tetheroffload/config/1.0/Android.bp | |||
@@ -60,3 +60,76 @@ cc_library { | |||
60 | "libutils", | 60 | "libutils", |
61 | ], | 61 | ], |
62 | } | 62 | } |
63 | |||
64 | genrule { | ||
65 | name: "android.hardware.tetheroffload.config@1.0-adapter-helper_genc++", | ||
66 | tools: ["hidl-gen"], | ||
67 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-sources -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tetheroffload.config@1.0", | ||
68 | srcs: [ | ||
69 | ":android.hardware.tetheroffload.config@1.0_hal", | ||
70 | ], | ||
71 | out: [ | ||
72 | "android/hardware/tetheroffload/config/1.0/AOffloadConfig.cpp", | ||
73 | ], | ||
74 | } | ||
75 | |||
76 | genrule { | ||
77 | name: "android.hardware.tetheroffload.config@1.0-adapter-helper_genc++_headers", | ||
78 | tools: ["hidl-gen"], | ||
79 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-headers -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tetheroffload.config@1.0", | ||
80 | srcs: [ | ||
81 | ":android.hardware.tetheroffload.config@1.0_hal", | ||
82 | ], | ||
83 | out: [ | ||
84 | "android/hardware/tetheroffload/config/1.0/AOffloadConfig.h", | ||
85 | ], | ||
86 | } | ||
87 | |||
88 | |||
89 | cc_library { | ||
90 | name: "android.hardware.tetheroffload.config@1.0-adapter-helper", | ||
91 | defaults: ["hidl-module-defaults"], | ||
92 | generated_sources: ["android.hardware.tetheroffload.config@1.0-adapter-helper_genc++"], | ||
93 | generated_headers: ["android.hardware.tetheroffload.config@1.0-adapter-helper_genc++_headers"], | ||
94 | export_generated_headers: ["android.hardware.tetheroffload.config@1.0-adapter-helper_genc++_headers"], | ||
95 | vendor_available: true, | ||
96 | shared_libs: [ | ||
97 | "libhidlbase", | ||
98 | "libhidltransport", | ||
99 | "libhwbinder", | ||
100 | "liblog", | ||
101 | "libutils", | ||
102 | "libcutils", | ||
103 | "libhidladapter", | ||
104 | "android.hardware.tetheroffload.config@1.0", | ||
105 | "android.hidl.base@1.0-adapter-helper", | ||
106 | ], | ||
107 | export_shared_lib_headers: [ | ||
108 | "libhidlbase", | ||
109 | "libhidltransport", | ||
110 | "libhwbinder", | ||
111 | "libutils", | ||
112 | "libhidladapter", | ||
113 | "android.hardware.tetheroffload.config@1.0", | ||
114 | "android.hidl.base@1.0-adapter-helper", | ||
115 | ], | ||
116 | } | ||
117 | |||
118 | genrule { | ||
119 | name: "android.hardware.tetheroffload.config@1.0-adapter_genc++", | ||
120 | tools: ["hidl-gen"], | ||
121 | cmd: "$(location hidl-gen) -o $(genDir) -Lc++-adapter-main -randroid.hardware:hardware/interfaces -randroid.hidl:system/libhidl/transport android.hardware.tetheroffload.config@1.0", | ||
122 | out: ["main.cpp"]} | ||
123 | |||
124 | cc_test { | ||
125 | name: "android.hardware.tetheroffload.config@1.0-adapter", | ||
126 | shared_libs: [ | ||
127 | "libhidladapter", | ||
128 | "libhidlbase", | ||
129 | "libhidltransport", | ||
130 | "libutils", | ||
131 | "android.hardware.tetheroffload.config@1.0", | ||
132 | "android.hardware.tetheroffload.config@1.0-adapter-helper", | ||
133 | ], | ||
134 | generated_sources: ["android.hardware.tetheroffload.config@1.0-adapter_genc++"], | ||
135 | } | ||