| 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 \ |
| jiabin | 901f65d | 2017-07-12 17:56:35 -0700 | [diff] [blame] | 35 | core/AAudioStreamParameters.cpp \ |
| Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 36 | legacy/AudioStreamLegacy.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 37 | legacy/AudioStreamRecord.cpp \ |
| 38 | legacy/AudioStreamTrack.cpp \ |
| 39 | utility/HandleTracker.cpp \ |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 40 | utility/AAudioUtilities.cpp \ |
| Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 41 | utility/FixedBlockAdapter.cpp \ |
| 42 | utility/FixedBlockReader.cpp \ |
| 43 | utility/FixedBlockWriter.cpp \ |
| Phil Burk | e572f46 | 2017-04-20 13:03:19 -0700 | [diff] [blame] | 44 | utility/LinearRamp.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 45 | fifo/FifoBuffer.cpp \ |
| 46 | fifo/FifoControllerBase.cpp \ |
| 47 | client/AudioEndpoint.cpp \ |
| 48 | client/AudioStreamInternal.cpp \ |
| Phil Burk | 87c9f64 | 2017-05-17 07:22:39 -0700 | [diff] [blame] | 49 | client/AudioStreamInternalCapture.cpp \ |
| 50 | client/AudioStreamInternalPlay.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 51 | client/IsochronousClockModel.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 52 | binding/AudioEndpointParcelable.cpp \ |
| Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 53 | binding/AAudioBinderClient.cpp \ |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 54 | binding/AAudioStreamRequest.cpp \ |
| 55 | binding/AAudioStreamConfiguration.cpp \ |
| Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 56 | binding/IAAudioClient.cpp \ |
| Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 57 | binding/IAAudioService.cpp \ |
| 58 | binding/RingBufferParcelable.cpp \ |
| 59 | binding/SharedMemoryParcelable.cpp \ |
| 60 | binding/SharedRegionParcelable.cpp |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 61 | |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 62 | LOCAL_CFLAGS += -Wno-unused-parameter -Wall -Werror |
| 63 | |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 64 | # By default, all symbols are hidden. |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 65 | # LOCAL_CFLAGS += -fvisibility=hidden |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 66 | # AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 67 | LOCAL_CFLAGS += -DAAUDIO_API='__attribute__((visibility("default")))' |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 68 | |
| 69 | include $(BUILD_STATIC_LIBRARY) |
| 70 | |
| 71 | # ======================= SHARED LIBRARY ========================== |
| 72 | include $(CLEAR_VARS) |
| 73 | |
| Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 74 | LOCAL_MODULE := libaaudio |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 75 | LOCAL_MODULE_TAGS := optional |
| 76 | |
| 77 | LOCAL_C_INCLUDES := \ |
| 78 | $(call include-path-for, audio-utils) \ |
| 79 | frameworks/native/include \ |
| 80 | system/core/base/include \ |
| Phil Burk | f53e613 | 2017-02-09 13:30:22 -0800 | [diff] [blame] | 81 | frameworks/native/media/libaaudio/include/include \ |
| 82 | frameworks/av/media/libaaudio/include \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 83 | $(LOCAL_PATH) \ |
| 84 | $(LOCAL_PATH)/binding \ |
| 85 | $(LOCAL_PATH)/client \ |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 86 | $(LOCAL_PATH)/core \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 87 | $(LOCAL_PATH)/fifo \ |
| 88 | $(LOCAL_PATH)/legacy \ |
| 89 | $(LOCAL_PATH)/utility |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 90 | |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 91 | LOCAL_SRC_FILES = core/AudioStream.cpp \ |
| 92 | core/AudioStreamBuilder.cpp \ |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 93 | core/AAudioAudio.cpp \ |
| jiabin | 901f65d | 2017-07-12 17:56:35 -0700 | [diff] [blame] | 94 | core/AAudioStreamParameters.cpp \ |
| Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 95 | legacy/AudioStreamLegacy.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 96 | legacy/AudioStreamRecord.cpp \ |
| 97 | legacy/AudioStreamTrack.cpp \ |
| 98 | utility/HandleTracker.cpp \ |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 99 | utility/AAudioUtilities.cpp \ |
| Phil Burk | e4d7bb4 | 2017-03-28 11:32:39 -0700 | [diff] [blame] | 100 | utility/FixedBlockAdapter.cpp \ |
| 101 | utility/FixedBlockReader.cpp \ |
| 102 | utility/FixedBlockWriter.cpp \ |
| Phil Burk | e572f46 | 2017-04-20 13:03:19 -0700 | [diff] [blame] | 103 | utility/LinearRamp.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 104 | fifo/FifoBuffer.cpp \ |
| 105 | fifo/FifoControllerBase.cpp \ |
| 106 | client/AudioEndpoint.cpp \ |
| 107 | client/AudioStreamInternal.cpp \ |
| Phil Burk | 87c9f64 | 2017-05-17 07:22:39 -0700 | [diff] [blame] | 108 | client/AudioStreamInternalCapture.cpp \ |
| 109 | client/AudioStreamInternalPlay.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 110 | client/IsochronousClockModel.cpp \ |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 111 | binding/AudioEndpointParcelable.cpp \ |
| Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 112 | binding/AAudioBinderClient.cpp \ |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 113 | binding/AAudioStreamRequest.cpp \ |
| 114 | binding/AAudioStreamConfiguration.cpp \ |
| Phil Burk | 11e8d33 | 2017-05-24 09:59:02 -0700 | [diff] [blame] | 115 | binding/IAAudioClient.cpp \ |
| Phil Burk | c0c70e3 | 2017-02-09 13:18:38 -0800 | [diff] [blame] | 116 | binding/IAAudioService.cpp \ |
| 117 | binding/RingBufferParcelable.cpp \ |
| 118 | binding/SharedMemoryParcelable.cpp \ |
| 119 | binding/SharedRegionParcelable.cpp |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 120 | |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 121 | LOCAL_CFLAGS += -Wno-unused-parameter -Wall -Werror |
| 122 | |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 123 | # By default, all symbols are hidden. |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 124 | # LOCAL_CFLAGS += -fvisibility=hidden |
| Phil Burk | 5ed503c | 2017-02-01 09:38:15 -0800 | [diff] [blame] | 125 | # AAUDIO_API is used to explicitly export a function or a variable as a visible symbol. |
| 126 | LOCAL_CFLAGS += -DAAUDIO_API='__attribute__((visibility("default")))' |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 127 | |
| Eric Laurent | 1d32e9f | 2017-06-02 14:01:32 -0700 | [diff] [blame] | 128 | LOCAL_SHARED_LIBRARIES := libaudioclient liblog libcutils libutils libbinder libaudiomanager |
| Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame] | 129 | |
| Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 130 | include $(BUILD_SHARED_LIBRARY) |