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