Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # ======================= STATIC LIBRARY ========================== |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 4 | # This is being built because it make AAudio testing very easy with a complete executable. |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 5 | # TODO Remove this target later, when not needed. |
| 6 | include $(CLEAR_VARS) |
| 7 | |
Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 8 | LOCAL_MODULE := libaaudio |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 9 | LOCAL_MODULE_TAGS := optional |
| 10 | |
Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 11 | LIBAAUDIO_DIR := $(TOP)/frameworks/av/media/libaaudio |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 12 | LIBAAUDIO_SRC_DIR := $(LIBAAUDIO_DIR)/src |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 13 | |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 14 | LOCAL_C_INCLUDES := \ |
| 15 | $(call include-path-for, audio-utils) \ |
| 16 | frameworks/native/include \ |
| 17 | system/core/base/include \ |
Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 18 | frameworks/native/media/libaaudio/include/include \ |
| 19 | frameworks/av/media/libaaudio/include \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 20 | frameworks/native/include \ |
Eric Laurent | 1d32e9f | 2017-06-02 14:01:32 -0700 | [diff] [blame] | 21 | frameworks/av/media/libaudioclient/include \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 22 | $(LOCAL_PATH) \ |
| 23 | $(LOCAL_PATH)/binding \ |
| 24 | $(LOCAL_PATH)/client \ |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 25 | $(LOCAL_PATH)/core \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 26 | $(LOCAL_PATH)/fifo \ |
| 27 | $(LOCAL_PATH)/legacy \ |
| 28 | $(LOCAL_PATH)/utility |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 29 | |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 30 | # If you add a file here then also add it below in the SHARED target |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 31 | LOCAL_SRC_FILES = \ |
| 32 | core/AudioStream.cpp \ |
| 33 | core/AudioStreamBuilder.cpp \ |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 34 | core/AAudioAudio.cpp \ |
Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 35 | legacy/AudioStreamLegacy.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 36 | legacy/AudioStreamRecord.cpp \ |
| 37 | legacy/AudioStreamTrack.cpp \ |
| 38 | utility/HandleTracker.cpp \ |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 39 | utility/AAudioUtilities.cpp \ |
Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 40 | utility/FixedBlockAdapter.cpp \ |
| 41 | utility/FixedBlockReader.cpp \ |
| 42 | utility/FixedBlockWriter.cpp \ |
Phil Burk | e572f46 | 2017-04-20 13:03:19 -0700 | [diff] [blame] | 43 | utility/LinearRamp.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 44 | fifo/FifoBuffer.cpp \ |
| 45 | fifo/FifoControllerBase.cpp \ |
| 46 | client/AudioEndpoint.cpp \ |
| 47 | client/AudioStreamInternal.cpp \ |
Phil Burk | 87c9f64 | 2017-05-17 07:22:39 -0700 | [diff] [blame] | 48 | client/AudioStreamInternalCapture.cpp \ |
| 49 | client/AudioStreamInternalPlay.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 50 | client/IsochronousClockModel.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 51 | binding/AudioEndpointParcelable.cpp \ |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 52 | binding/AAudioBinderClient.cpp \ |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 53 | binding/AAudioStreamRequest.cpp \ |
| 54 | binding/AAudioStreamConfiguration.cpp \ |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 55 | binding/IAAudioService.cpp \ |
| 56 | binding/RingBufferParcelable.cpp \ |
| 57 | binding/SharedMemoryParcelable.cpp \ |
| 58 | binding/SharedRegionParcelable.cpp |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 59 | |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 60 | LOCAL_CFLAGS += -Wno-unused-parameter -Wall -Werror |
| 61 | |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 62 | # By default, all symbols are hidden. |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 63 | # LOCAL_CFLAGS += -fvisibility=hidden |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 64 | # AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 65 | LOCAL_CFLAGS += -DAAUDIO_API='__attribute__((visibility("default")))' |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 66 | |
| 67 | include $(BUILD_STATIC_LIBRARY) |
| 68 | |
| 69 | # ======================= SHARED LIBRARY ========================== |
| 70 | include $(CLEAR_VARS) |
| 71 | |
Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 72 | LOCAL_MODULE := libaaudio |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 73 | LOCAL_MODULE_TAGS := optional |
| 74 | |
| 75 | LOCAL_C_INCLUDES := \ |
| 76 | $(call include-path-for, audio-utils) \ |
| 77 | frameworks/native/include \ |
| 78 | system/core/base/include \ |
Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 79 | frameworks/native/media/libaaudio/include/include \ |
| 80 | frameworks/av/media/libaaudio/include \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 81 | $(LOCAL_PATH) \ |
| 82 | $(LOCAL_PATH)/binding \ |
| 83 | $(LOCAL_PATH)/client \ |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 84 | $(LOCAL_PATH)/core \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 85 | $(LOCAL_PATH)/fifo \ |
| 86 | $(LOCAL_PATH)/legacy \ |
| 87 | $(LOCAL_PATH)/utility |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 88 | |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 89 | LOCAL_SRC_FILES = core/AudioStream.cpp \ |
| 90 | core/AudioStreamBuilder.cpp \ |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 91 | core/AAudioAudio.cpp \ |
Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 92 | legacy/AudioStreamLegacy.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 93 | legacy/AudioStreamRecord.cpp \ |
| 94 | legacy/AudioStreamTrack.cpp \ |
| 95 | utility/HandleTracker.cpp \ |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 96 | utility/AAudioUtilities.cpp \ |
Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 97 | utility/FixedBlockAdapter.cpp \ |
| 98 | utility/FixedBlockReader.cpp \ |
| 99 | utility/FixedBlockWriter.cpp \ |
Phil Burk | e572f46 | 2017-04-20 13:03:19 -0700 | [diff] [blame] | 100 | utility/LinearRamp.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 101 | fifo/FifoBuffer.cpp \ |
| 102 | fifo/FifoControllerBase.cpp \ |
| 103 | client/AudioEndpoint.cpp \ |
| 104 | client/AudioStreamInternal.cpp \ |
Phil Burk | 87c9f64 | 2017-05-17 07:22:39 -0700 | [diff] [blame] | 105 | client/AudioStreamInternalCapture.cpp \ |
| 106 | client/AudioStreamInternalPlay.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 107 | client/IsochronousClockModel.cpp \ |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 108 | binding/AudioEndpointParcelable.cpp \ |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 109 | binding/AAudioBinderClient.cpp \ |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 110 | binding/AAudioStreamRequest.cpp \ |
| 111 | binding/AAudioStreamConfiguration.cpp \ |
Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 112 | binding/IAAudioService.cpp \ |
| 113 | binding/RingBufferParcelable.cpp \ |
| 114 | binding/SharedMemoryParcelable.cpp \ |
| 115 | binding/SharedRegionParcelable.cpp |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 116 | |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 117 | LOCAL_CFLAGS += -Wno-unused-parameter -Wall -Werror |
| 118 | |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 119 | # By default, all symbols are hidden. |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 120 | # LOCAL_CFLAGS += -fvisibility=hidden |
Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 121 | # AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 122 | LOCAL_CFLAGS += -DAAUDIO_API='__attribute__((visibility("default")))' |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 123 | |
Eric Laurent | 1d32e9f | 2017-06-02 14:01:32 -0700 | [diff] [blame] | 124 | LOCAL_SHARED_LIBRARIES := libaudioclient liblog libcutils libutils libbinder libaudiomanager |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 125 | |
Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 126 | include $(BUILD_SHARED_LIBRARY) |