-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathatom.mk
More file actions
105 lines (88 loc) · 2.47 KB
/
atom.mk
File metadata and controls
105 lines (88 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
LOCAL_PATH := $(call my-dir)
# API library. This is the library that most programs should use.
include $(CLEAR_VARS)
LOCAL_MODULE := libaudio-decode
LOCAL_CATEGORY_PATH := libs
LOCAL_DESCRIPTION := Audio decoding library
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_CFLAGS := -DADEC_API_EXPORTS -fvisibility=hidden -std=gnu99 -D_GNU_SOURCE
LOCAL_SRC_FILES := \
src/adec.c
LOCAL_LIBRARIES := \
libaudio-decode-core \
libaudio-defs \
libpomp \
libulog
LOCAL_CONFIG_FILES := config.in
$(call load-config)
LOCAL_CONDITIONAL_LIBRARIES := \
CONFIG_ADEC_FDK_AAC:libaudio-decode-fdk-aac
LOCAL_EXPORT_LDLIBS := -laudio-decode-core
ifeq ("$(TARGET_OS)","windows")
LOCAL_LDLIBS += -lws2_32
endif
include $(BUILD_LIBRARY)
include $(CLEAR_VARS)
# Core library, common code for all implementations and structures definitions.
# Used by implementations.
LOCAL_MODULE := libaudio-decode-core
LOCAL_CATEGORY_PATH := libs
LOCAL_DESCRIPTION := Audio decoding library: core files
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/core/include
LOCAL_CFLAGS := -DADEC_API_EXPORTS -fvisibility=hidden -std=gnu99 -D_GNU_SOURCE
LOCAL_SRC_FILES := \
core/src/adec_enums.c \
core/src/adec_format.c
LOCAL_LIBRARIES := \
libaudio-defs \
libfutils \
libmedia-buffers \
libmedia-buffers-memory \
libulog
ifeq ("$(TARGET_OS)","windows")
LOCAL_LDLIBS += -lws2_32
endif
include $(BUILD_LIBRARY)
include $(CLEAR_VARS)
# FDK AAC implementation. can be enabled in the product configuration
LOCAL_MODULE := libaudio-decode-fdk-aac
LOCAL_CATEGORY_PATH := libs
LOCAL_DESCRIPTION := Video decoding library: FDK AAC implementation
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/fdk-aac/include
LOCAL_CFLAGS := -DADEC_API_EXPORTS -fvisibility=hidden -std=gnu99 -D_GNU_SOURCE
LOCAL_SRC_FILES := \
fdk-aac/src/adec_fdk_aac.c
LOCAL_LIBRARIES := \
fdk-aac \
libaudio-decode-core \
libaudio-defs \
libfutils \
libmedia-buffers \
libmedia-buffers-memory \
libmedia-buffers-memory-generic \
libpomp \
libulog
ifeq ("$(TARGET_OS)","windows")
LOCAL_LDLIBS += -lws2_32
endif
include $(BUILD_LIBRARY)
include $(CLEAR_VARS)
LOCAL_MODULE := adec
LOCAL_DESCRIPTION := Audio decoding program
LOCAL_CATEGORY_PATH := multimedia
LOCAL_SRC_FILES := tools/adec.c
LOCAL_LIBRARIES := \
libaac \
libaudio-decode \
libaudio-defs \
libaudio-raw \
libfutils \
libmedia-buffers \
libmedia-buffers-memory \
libmedia-buffers-memory-generic \
libpomp \
libulog
ifeq ("$(TARGET_OS)","windows")
LOCAL_LDLIBS += -lws2_32
endif
include $(BUILD_EXECUTABLE)