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