Phil Burk | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 1 | LOCAL_PATH:= $(call my-dir) |
| 2 | |
| 3 | # ======================= STATIC LIBRARY ========================== |
| 4 | # This is being built because it make Oboe testing very easy with a complete executable. |
| 5 | # TODO Remove this target later, when not needed. |
| 6 | include $(CLEAR_VARS) |
| 7 | |
| 8 | LOCAL_MODULE := liboboe |
| 9 | LOCAL_MODULE_TAGS := optional |
| 10 | |
Phil Burk | 204a163 | 2017-01-03 17:23:43 -0800 | [diff] [blame^] | 11 | LIBOBOE_DIR := $(TOP)/frameworks/av/media/liboboe |
| 12 | LIBOBOE_SRC_DIR := $(LIBOBOE_DIR)/src |
| 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 \ |
| 18 | frameworks/native/media/liboboe/include/include \ |
| 19 | frameworks/av/media/liboboe/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 \ |
| 32 | core/OboeAudio.cpp \ |
| 33 | legacy/AudioStreamRecord.cpp \ |
| 34 | legacy/AudioStreamTrack.cpp \ |
| 35 | utility/HandleTracker.cpp \ |
| 36 | utility/OboeUtilities.cpp \ |
| 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 \ |
| 46 | binding/OboeStreamRequest.cpp \ |
| 47 | binding/OboeStreamConfiguration.cpp \ |
| 48 | binding/IOboeAudioService.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 | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 54 | # OBOE_API is used to explicitly export a function or a variable as a visible symbol. |
| 55 | LOCAL_CFLAGS += -DOBOE_API='__attribute__((visibility("default")))' |
| 56 | |
| 57 | include $(BUILD_STATIC_LIBRARY) |
| 58 | |
| 59 | # ======================= SHARED LIBRARY ========================== |
| 60 | include $(CLEAR_VARS) |
| 61 | |
| 62 | LOCAL_MODULE := liboboe |
| 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 \ |
| 69 | frameworks/native/media/liboboe/include/include \ |
| 70 | frameworks/av/media/liboboe/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 \ |
| 81 | core/OboeAudio.cpp \ |
| 82 | legacy/AudioStreamRecord.cpp \ |
| 83 | legacy/AudioStreamTrack.cpp \ |
| 84 | utility/HandleTracker.cpp \ |
| 85 | utility/OboeUtilities.cpp \ |
| 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 \ |
| 95 | binding/OboeStreamRequest.cpp \ |
| 96 | binding/OboeStreamConfiguration.cpp \ |
| 97 | binding/IOboeAudioService.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 | e1ce491 | 2016-11-21 10:40:25 -0800 | [diff] [blame] | 103 | # OBOE_API is used to explicitly export a function or a variable as a visible symbol. |
| 104 | LOCAL_CFLAGS += -DOBOE_API='__attribute__((visibility("default")))' |
| 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) |