diff options
author | Tapani Pälli <[email protected]> | 2019-03-05 09:24:16 +0200 |
---|---|---|
committer | Tapani Pälli <[email protected]> | 2019-03-18 11:53:59 +0200 |
commit | 791198a54b1182860e240d57f35cb02b1bcceca3 (patch) | |
tree | 3ba46f744ee2585e62c0c5828241c0f82770e4ed /src/egl/Android.mk | |
parent | 8ebc7dcb59a69763cc369af7c723e40a3fd29f7f (diff) |
android: Build fixes for OMR1
Some of the header file locations are changed between Android
versions (when VNDK is used), patch makes sure we get all the
required headers.
v2: cleanups, put SDK version checks in all places (Tapani)
Signed-off-by: Tapani Pälli <[email protected]>
Signed-off-by: Chen Lin Z <[email protected]>
Tested-by: Clayton Craft <[email protected]>
Acked-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/Android.mk')
-rw-r--r-- | src/egl/Android.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/egl/Android.mk b/src/egl/Android.mk index e78dd48f3ec..a9319f56ae7 100644 --- a/src/egl/Android.mk +++ b/src/egl/Android.mk @@ -59,6 +59,13 @@ LOCAL_SHARED_LIBRARIES := \ libcutils \ libsync +ifeq ($(shell test $(PLATFORM_SDK_VERSION) -ge 27; echo $$?), 0) +LOCAL_C_INCLUDES += \ + frameworks/native/libs/nativewindow/include \ + frameworks/native/libs/arect/include +LOCAL_HEADER_LIBRARIES += libnativebase_headers +endif + ifeq ($(BOARD_USES_DRM_GRALLOC),true) LOCAL_CFLAGS += -DHAVE_DRM_GRALLOC LOCAL_SHARED_LIBRARIES += libgralloc_drm |