
BASE_subdirs = \
ac \
ac/dynobj \
ac/statobj \
debug \
device \
font \
gfx \
gui \
main \
media \
media/audio \
media/video \
platform/base \
plugin \
resource \
script \
setup \
test

ifdef TARGET_ARCH_ABI
# For Android: make the path relative to the build directory to search for
# the files and then strip the path again
BASE_subdirs_width_prefix := $(addprefix $(LOCAL_PATH)/,$(BASE_subdirs))
BASE_subdirs_complete := $(addsuffix /*.cpp,$(BASE_subdirs_width_prefix))
BASE_full := $(wildcard $(BASE_subdirs_complete))
BASE := $(subst $(LOCAL_PATH)/,,$(BASE_full))
else
BASE := $(wildcard $(addsuffix /*.cpp,$(BASE_subdirs)))
endif

COMMON_subdirs = \
../Common/ac \
../Common/ac/dynobj \
../Common/core \
../Common/debug \
../Common/font \
../Common/gfx \
../Common/gui \
../Common/platform/base \
../Common/script \
../Common/util

ifdef TARGET_ARCH_ABI
# For Android: make the path relative to the build directory to search for
# the files and then strip the path again
COMMON_subdirs_width_prefix := $(addprefix $(LOCAL_PATH)/,$(COMMON_subdirs))
COMMON_subdirs_complete := $(addsuffix /*.cpp,$(COMMON_subdirs_width_prefix))
COMMON_full := $(wildcard $(COMMON_subdirs_complete))
COMMON := $(subst $(LOCAL_PATH)/,,$(COMMON_full))
else
COMMON := $(wildcard $(addsuffix /*.cpp,$(COMMON_subdirs)))
endif

PLUGINS = ../Plugins/AGSflashlight/agsflashlight.cpp ../Plugins/agsblend/AGSBlend.cpp ../Plugins/ags_snowrain/ags_snowrain.cpp ../Plugins/ags_parallax/ags_parallax.cpp

HQ2X3X = libsrc/hq2x/hq2x3x.cpp

ALFONT = libsrc/alfont-2.0.9/alfont.c

ALMP3 = libsrc/almp3/almp3.c libsrc/almp3-2.0.5/decoder/common.c libsrc/almp3-2.0.5/decoder/dct64_i386.c libsrc/almp3-2.0.5/decoder/decode_i386.c libsrc/almp3-2.0.5/decoder/interface.c libsrc/almp3-2.0.5/decoder/layer2.c libsrc/almp3-2.0.5/decoder/layer3.c libsrc/almp3-2.0.5/decoder/tabinit.c

ALOGG = libsrc/alogg/alogg.c

APEG = libsrc/apeg-1.2.1/adisplay.c libsrc/apeg-1.2.1/getbits.c libsrc/apeg-1.2.1/getblk.c libsrc/apeg-1.2.1/gethdr.c libsrc/apeg-1.2.1/getpic.c libsrc/apeg-1.2.1/idct.c libsrc/apeg-1.2.1/motion.c libsrc/apeg-1.2.1/mpeg1dec.c libsrc/apeg-1.2.1/ogg.c libsrc/apeg-1.2.1/recon.c libsrc/apeg-1.2.1/audio/apegcommon.c libsrc/apeg-1.2.1/audio/aaudio.c libsrc/apeg-1.2.1/audio/dct64.c libsrc/apeg-1.2.1/audio/decode_1to1.c libsrc/apeg-1.2.1/audio/decode_2to1.c libsrc/apeg-1.2.1/audio/decode_4to1.c libsrc/apeg-1.2.1/audio/layer1.c libsrc/apeg-1.2.1/audio/layer2.c libsrc/apeg-1.2.1/audio/layer3.c libsrc/apeg-1.2.1/audio/mpg123.c libsrc/apeg-1.2.1/audio/readers.c libsrc/apeg-1.2.1/audio/tabinit.c libsrc/apeg-1.2.1/audio/vbrhead.c

AASTR = ../Common/libsrc/aastr-0.1.1/AAROT.c ../Common/libsrc/aastr-0.1.1/aastr.c ../Common/libsrc/aastr-0.1.1/aautil.c
