2015-02-25 04:54:43 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2015-03-10 20:38:14 +00:00
|
|
|
PACKAGE_IDENTIFIER := "org.deadc0de.apple2ix"
|
2015-02-25 04:54:43 +00:00
|
|
|
PACKAGE_NAME := "apple2ix"
|
|
|
|
COMMON_SOURCES_MK := $(LOCAL_PATH)/sources.mk
|
|
|
|
include $(COMMON_SOURCES_MK)
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Android build config
|
|
|
|
|
|
|
|
LOCAL_MODULE := libapple2ix
|
2015-07-22 04:34:51 +00:00
|
|
|
LOCAL_SRC_FILES := $(APPLE2_SRC_PATH)/test/testcommon.c $(APPLE2_SRC_PATH)/test/testdisplay.c
|
2015-02-25 04:54:43 +00:00
|
|
|
LOCAL_CFLAGS := $(APPLE2_BASE_CFLAGS) -DTEST_DISPLAY -DTESTING=1
|
2015-09-07 06:43:26 +00:00
|
|
|
LOCAL_LDLIBS := $(APPLE2_BASE_LDLIBS)
|
2015-02-25 04:54:43 +00:00
|
|
|
|
|
|
|
# Add assembly files first ... mostly for the benefit of the ARM assembler ...
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_X86_SRC)
|
2015-12-16 06:24:43 +00:00
|
|
|
LOCAL_CFLAGS += -DNO_UNDERSCORES=1
|
2015-02-25 04:54:43 +00:00
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_ARM_SRC)
|
|
|
|
endif
|
|
|
|
|
2015-09-07 06:43:26 +00:00
|
|
|
LOCAL_SRC_FILES += $(APPLE2_MAIN_SRC) $(APPLE2_META_SRC) $(APPLE2_VIDEO_SRC) $(APPLE2_AUDIO_SRC)
|
2015-02-25 04:54:43 +00:00
|
|
|
|
|
|
|
# Build a shared library and let Java/Dalvik drive
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
|
|
|
# --OR-- Build an executable so native can drive this show
|
|
|
|
#include $(BUILD_EXECUTABLE)
|
|
|
|
|
2015-09-07 06:43:26 +00:00
|
|
|
$(call import-module, android/cpufeatures)
|