diff options
Diffstat (limited to 'media/native')
-rw-r--r-- | media/native/Android.bp | 1 | ||||
-rw-r--r-- | media/native/midi/Android.bp | 33 | ||||
-rw-r--r-- | media/native/midi/Android.mk | 20 |
3 files changed, 28 insertions, 26 deletions
diff --git a/media/native/Android.bp b/media/native/Android.bp new file mode 100644 index 000000000000..b44c2960127f --- /dev/null +++ b/media/native/Android.bp @@ -0,0 +1 @@ +subdirs = ["*"] diff --git a/media/native/midi/Android.bp b/media/native/midi/Android.bp index 3500805d2794..11f0deabbcd5 100644 --- a/media/native/midi/Android.bp +++ b/media/native/midi/Android.bp @@ -12,10 +12,31 @@ // See the License for the specific language governing permissions and // limitations under the License. -// The headers module is in frameworks/media/native/midi/Android.bp. -ndk_library { - name: "libmidi.ndk", - symbol_file: "libmidi.map.txt", - first_version: "26", -// unversioned_until: "current", +cc_library_shared { + name: "libmidi", + + srcs: [ + "midi.cpp", + ":IMidiDeviceServer.aidl", + ], + + aidl: { + include_dirs: ["frameworks/base/media/java"], + export_aidl_headers: true, + }, + + cflags: [ + "-Wall", + "-Werror", + "-O0", + ], + + shared_libs: [ + "liblog", + "libbinder", + "libutils", + "libmedia", + ], + + export_include_dirs: ["."], } diff --git a/media/native/midi/Android.mk b/media/native/midi/Android.mk deleted file mode 100644 index dbc5eed004db..000000000000 --- a/media/native/midi/Android.mk +++ /dev/null @@ -1,20 +0,0 @@ -LOCAL_PATH:= $(call my-dir) - -include $(CLEAR_VARS) - -LOCAL_SRC_FILES := \ - ../../java/android/media/midi/IMidiDeviceServer.aidl \ - midi.cpp - -LOCAL_AIDL_INCLUDES := \ - $(FRAMEWORKS_BASE_JAVA_SRC_DIRS) \ - frameworks/native/aidl/binder - -LOCAL_CFLAGS += -Wall -Werror -O0 - -LOCAL_MODULE := libmidi -LOCAL_MODULE_TAGS := optional - -LOCAL_SHARED_LIBRARIES := liblog libbinder libutils libmedia - -include $(BUILD_SHARED_LIBRARY) |