-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathatom.mk
85 lines (81 loc) · 2.29 KB
/
atom.mk
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
LOCAL_PATH := $(call my-dir)
# API library; this is the library that most programs should use
include $(CLEAR_VARS)
LOCAL_MODULE := libvideo-scale
LOCAL_CATEGORY_PATH := libs
LOCAL_DESCRIPTION := Video scaling library
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
LOCAL_CFLAGS := -DVSCALE_API_EXPORTS -fvisibility=hidden -std=gnu99
LOCAL_SRC_FILES := \
src/vscale.c
LOCAL_LIBRARIES := \
libpomp \
libulog \
libmedia-buffers \
libvideo-defs \
libvideo-scale-core
LOCAL_CONFIG_FILES := config.in
$(call load-config)
LOCAL_CONDITIONAL_LIBRARIES := \
CONFIG_VSCALE_HISI:libvideo-scale-hisi \
CONFIG_VSCALE_QCOM:libvideo-scale-qcom \
CONFIG_VSCALE_LIBYUV:libvideo-scale-libyuv
LOCAL_EXPORT_LDLIBS := -lvideo-scale-core
include $(BUILD_LIBRARY)
# Core library: common code for all implementations and structures definitions;
# used by implementations
include $(CLEAR_VARS)
LOCAL_MODULE := libvideo-scale-core
LOCAL_CATEGORY_PATH := libs
LOCAL_DESCRIPTION := Video scaling library: core files
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/core/include
LOCAL_CFLAGS := -DVSCALE_API_EXPORTS -fvisibility=hidden -std=gnu99
LOCAL_SRC_FILES := \
core/src/vscale_core.c \
core/src/vscale_enums.c
LOCAL_LIBRARIES := \
libfutils \
libulog \
libmedia-buffers \
libvideo-defs
include $(BUILD_LIBRARY)
# libyuv implementation; can be enabled in the product configuration
include $(CLEAR_VARS)
LOCAL_MODULE := libvideo-scale-libyuv
LOCAL_CATEGORY_PATH := libs
LOCAL_DESCRIPTION := Video scaling library: libyuv implementation
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/libyuv/include
LOCAL_CFLAGS := -DVSCALE_API_EXPORTS -fvisibility=hidden -std=gnu11
LOCAL_SRC_FILES := \
libyuv/src/vscale_libyuv.c
LOCAL_LIBRARIES := \
libfutils \
libmedia-buffers \
libmedia-buffers-memory \
libmedia-buffers-memory-generic \
libpomp \
libulog \
libvideo-defs \
libvideo-metadata \
libvideo-scale-core \
libyuv
include $(BUILD_LIBRARY)
# Scaling program
include $(CLEAR_VARS)
LOCAL_MODULE := vscale
LOCAL_DESCRIPTION := Video scaling program
LOCAL_CATEGORY_PATH := multimedia
LOCAL_CFLAGS := -std=gnu11
LOCAL_SRC_FILES := \
tools/vscale.c
LOCAL_LIBRARIES := \
libfutils \
libmedia-buffers \
libmedia-buffers-memory \
libmedia-buffers-memory-generic \
libpomp \
libulog \
libvideo-defs \
libvideo-raw \
libvideo-scale
include $(BUILD_EXECUTABLE)