forked from sailfishos/droidmedia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[droidmedia] Add support for Android 11 base. JB#55673
- Loading branch information
Showing
8 changed files
with
853 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,19 +89,27 @@ LOCAL_SHARED_LIBRARIES += [email protected] \ | |
libmedia_omx | ||
endif | ||
|
||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 11 && echo true),true) | ||
LOCAL_SHARED_LIBRARIES += libmedia_codeclist | ||
endif | ||
|
||
LOCAL_CPPFLAGS=-DANDROID_MAJOR=$(ANDROID_MAJOR) -DANDROID_MINOR=$(ANDROID_MINOR) -DANDROID_MICRO=$(ANDROID_MICRO) $(FORCE_HAL_PARAM) -Wno-unused-parameter | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_MODULE := libdroidmedia | ||
|
||
ifeq ($(strip $(ANDROID_MAJOR)),7) | ||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 7 && echo true),true) | ||
LOCAL_C_INCLUDES := frameworks/native/include/media/openmax \ | ||
frameworks/native/include/media/hardware | ||
else ifeq ($(shell test $(ANDROID_MAJOR) -ge 8 && echo true),true) | ||
LOCAL_C_INCLUDES := frameworks/native/include/media/openmax \ | ||
frameworks/native/include/media/hardware \ | ||
frameworks/native/libs/nativewindow/include \ | ||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 8 && echo true),true) | ||
LOCAL_C_INCLUDES += frameworks/native/libs/nativewindow/include \ | ||
frameworks/av/media/libstagefright/omx/include \ | ||
frameworks/av/media/libstagefright/xmlparser/include | ||
endif | ||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 11 && echo true),true) | ||
LOCAL_C_INCLUDES += frameworks/av/media/libmediametrics/include \ | ||
frameworks/av/media/libstagefright/include \ | ||
frameworks/av/drm/libmediadrm/interface | ||
endif | ||
else | ||
LOCAL_C_INCLUDES := frameworks/native/include/media/openmax | ||
endif | ||
|
@@ -145,9 +153,16 @@ ifeq ($(ANDROID_MAJOR),$(filter $(ANDROID_MAJOR),8 9)) | |
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(ANDROID_MAJOR),$(filter $(ANDROID_MAJOR),10)) | ||
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(ANDROID_MAJOR),$(filter $(ANDROID_MAJOR),11)) | ||
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 10 && echo true),true) | ||
LOCAL_SHARED_LIBRARIES += [email protected] \ | ||
[email protected] \ | ||
LOCAL_SHARED_LIBRARIES += [email protected] \ | ||
libsensorprivacy | ||
LOCAL_AIDL_INCLUDES := frameworks/native/libs/sensorprivacy/aidl | ||
endif | ||
|
@@ -168,6 +183,12 @@ ifeq ($(shell test $(ANDROID_MAJOR) -ge 9 && echo true),true) | |
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 11 && echo true),true) | ||
LOCAL_SHARED_LIBRARIES += libmedia_codeclist \ | ||
libresourcemanagerservice \ | ||
libbinder_ndk | ||
endif | ||
|
||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_CPPFLAGS=-DANDROID_MAJOR=$(ANDROID_MAJOR) -DANDROID_MINOR=$(ANDROID_MINOR) -DANDROID_MICRO=$(ANDROID_MICRO) -Wno-unused-parameter | ||
ifeq ($(MINIMEDIA_SENSORSERVER_DISABLE),1) | ||
|
@@ -248,9 +269,16 @@ ifeq ($(ANDROID_MAJOR),$(filter $(ANDROID_MAJOR),8 9)) | |
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(ANDROID_MAJOR),$(filter $(ANDROID_MAJOR),10)) | ||
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(ANDROID_MAJOR),$(filter $(ANDROID_MAJOR),11)) | ||
LOCAL_SHARED_LIBRARIES += [email protected] | ||
endif | ||
|
||
ifeq ($(shell test $(ANDROID_MAJOR) -ge 10 && echo true),true) | ||
LOCAL_SHARED_LIBRARIES += [email protected] \ | ||
[email protected] \ | ||
LOCAL_SHARED_LIBRARIES += [email protected] \ | ||
libsensorprivacy | ||
LOCAL_AIDL_INCLUDES := frameworks/native/libs/sensorprivacy/aidl | ||
endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,5 +65,8 @@ | |
#include "services_10_0_0.h" | ||
#endif | ||
|
||
#if ANDROID_MAJOR == 11 | ||
#include "services_11_0_0.h" | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.