drm_hwcomposer: Use header library instead of hardcoded path
This allows to put drm_hwcomposer in any directory.
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
diff --git a/Android.bp b/Android.bp
index 0de7e1c..a55e070 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,12 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+cc_library_headers {
+ name: "drm_hwcomposer_headers",
+ vendor: true,
+ export_include_dirs: ["."],
+}
+
// =====================
// libdrmhwc_utils.a
// =====================
@@ -20,7 +26,7 @@
srcs: ["utils/Worker.cpp"],
- include_dirs: ["external/drm_hwcomposer"],
+ header_libs: ["drm_hwcomposer_headers"],
cflags: [
"-Wall",
@@ -48,9 +54,8 @@
"libutils",
],
- include_dirs: ["external/drm_hwcomposer"],
-
static_libs: ["libdrmhwc_utils"],
+ header_libs: ["drm_hwcomposer_headers"],
cflags: [
"-Wall",