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