-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile-common
150 lines (135 loc) · 5.66 KB
/
Makefile-common
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# define LOCAL_PATH for non-Android builds
ifdef TARGET_ARCH_ABI
else
LOCAL_PATH = ./
endif
AGSSPRITEVIDEO_DIR = ags_spritevideo
AGSSPRITEVIDEO_INCDIR = $(AGSSPRITEVIDEO_DIR)
# Select GLAD variant
ifeq ($(OPENGL_ES), 0)
GLAD_DIR = ags_spritevideo/glad
GLAD_INCDIR = $(GLAD_DIR)/include
else
GLAD_DIR = ags_spritevideo/glad-gles2
GLAD_INCDIR = $(GLAD_DIR)/include
endif
LIBTHEORAPLAYER_DIR = theoraplayer
LIBTHEORAPLAYER_INCDIR = $(LIBTHEORAPLAYER_DIR)/include
LIBTHEORAPLAYER_INTERN_INCDIR = \
$(LIBTHEORAPLAYER_DIR)/include/theoraplayer \
$(LIBTHEORAPLAYER_DIR)/src/Theora \
$(LIBTHEORAPLAYER_DIR)/src/YUV \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/include \
# Sources: spritevideo
OBJS_AGSSPRITEVIDEO = \
$(AGSSPRITEVIDEO_DIR)/ags_spritevideo.cpp \
$(AGSSPRITEVIDEO_DIR)/BaseObject.cpp \
$(AGSSPRITEVIDEO_DIR)/Common.cpp \
$(AGSSPRITEVIDEO_DIR)/EditorPlugin.cpp \
$(AGSSPRITEVIDEO_DIR)/ImageHelper.cpp \
$(AGSSPRITEVIDEO_DIR)/MathHelper.cpp \
$(AGSSPRITEVIDEO_DIR)/ScriptAPI.cpp \
$(AGSSPRITEVIDEO_DIR)/SpriteObject.cpp \
$(AGSSPRITEVIDEO_DIR)/VideoObject.cpp \
$(AGSSPRITEVIDEO_DIR)/AGSDataSource.cpp \
$(AGSSPRITEVIDEO_DIR)/ogl/OGLFactory.cpp \
$(AGSSPRITEVIDEO_DIR)/ogl/OGLHelper.cpp \
$(AGSSPRITEVIDEO_DIR)/ogl/OGLRenderObject.cpp \
$(GLAD_DIR)/src/glad.c
# Sources: libtheora
OBJS_THEORAPLAYER = \
$(LIBTHEORAPLAYER_DIR)/src/TheoraAsync.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraAudioInterface.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraAudioPacketQueue.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraDataSource.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraException.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraFrameQueue.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraTimer.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraUtil.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraVideoClip.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraVideoFrame.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraVideoManager.cpp \
$(LIBTHEORAPLAYER_DIR)/src/TheoraWorkerThread.cpp \
$(LIBTHEORAPLAYER_DIR)/src/Theora/TheoraVideoClip_Theora.cpp \
$(LIBTHEORAPLAYER_DIR)/src/YUV/yuv_util.c \
$(LIBTHEORAPLAYER_DIR)/src/YUV/C/yuv420_grey_c.c \
$(LIBTHEORAPLAYER_DIR)/src/YUV/C/yuv420_rgb_c.c \
$(LIBTHEORAPLAYER_DIR)/src/YUV/C/yuv420_yuv_c.c \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/yuv_libyuv.c \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/compare.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/compare_common.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/compare_gcc.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/compare_neon.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/compare_neon64.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert_argb.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert_from.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert_from_argb.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert_jpeg.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert_to_argb.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/convert_to_i420.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/cpu_id.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/mjpeg_decoder.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/mjpeg_validate.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/planar_functions.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/rotate.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/rotate_argb.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/rotate_mips.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/rotate_neon.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/rotate_neon64.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_any.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_common.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_gcc.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_mips.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_neon.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_neon64.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_any.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_argb.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_common.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_gcc.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_mips.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_neon.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_neon64.cc \
$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/video_common.cc
#$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/compare_posix.cc \
#$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/row_posix.cc \
#$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_argb_neon.cc \
#$(LIBTHEORAPLAYER_DIR)/src/YUV/libyuv/src/scale_posix.cc
# Android-specific includes and objs
ifdef TARGET_ARCH_ABI
LIBTHEORAPLAYER_INTERN_INCDIR += \
$(LIBTHEORAPLAYER_DIR)/src/YUV/android
OBJS_THEORAPLAYER += \
$(LIBTHEORAPLAYER_DIR)/src/YUV/android/cpu-features.c
endif
# Sources: local libs
ifeq ($(LOCAL_LIB_SRC), 0)
else
include $(LOCAL_PATH)/Makefile-libs
endif
COMMON_INCDIR = $(AGSSPRITEVIDEO_INCDIR) $(GLAD_INCDIR)
COMMON_CFLAGS =
COMMON_OBJS = $(OBJS_AGSSPRITEVIDEO)
ifeq ($(LOCAL_LIB_SRC), 0)
else
COMMON_INCDIR += $(LIBPNG_INCDIR) $(ZLIB_INCDIR)
# zlib flags
COMMON_CFLAGS += -DZ_SOLO
COMMON_OBJS += $(OBJS_LIBPNG) $(OBJS_ZLIB)
endif
# video support (optional)
ifeq ($(NO_VIDEO), 0)
COMMON_INCDIR += $(LIBTHEORAPLAYER_INCDIR) $(LIBTHEORAPLAYER_INTERN_INCDIR)
# spritevideo flags
COMMON_CFLAGS += -DVIDEO_PLAYBACK
# theoraplayer flags
COMMON_CFLAGS += -D__THEORA -D_YUV_LIBYUV -DTHEORAVIDEO_LIB
COMMON_OBJS += $(OBJS_THEORAPLAYER)
ifeq ($(LOCAL_LIB_SRC), 0)
else
COMMON_INCDIR += $(LIBOGG_INCDIR) $(LIBTHEORA_INCDIR) $(LIBVORBIS_INCDIR)
COMMON_OBJS += $(OBJS_LIBOGG) $(OBJS_LIBTHEORA) $(OBJS_LIBVORBIS)
endif
endif