2015-02-18 19:34:09 +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-18 19:34:09 +00:00
|
|
|
PACKAGE_NAME := "apple2ix"
|
2015-03-01 05:48:08 +00:00
|
|
|
COMMON_SOURCES_MK := $(LOCAL_PATH)/sources.mk
|
2015-02-18 19:34:09 +00:00
|
|
|
include $(COMMON_SOURCES_MK)
|
|
|
|
|
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Android build config
|
|
|
|
|
2015-02-19 00:18:38 +00:00
|
|
|
LOCAL_MODULE := libapple2ix
|
2015-03-01 05:48:08 +00:00
|
|
|
LOCAL_SRC_FILES := jnihooks.c androidkeys.c
|
2015-02-19 00:18:38 +00:00
|
|
|
LOCAL_CFLAGS := $(APPLE2_BASE_CFLAGS) -DHEADLESS=0
|
2015-02-18 19:34:09 +00:00
|
|
|
LOCAL_LDLIBS := -llog -landroid -lGLESv2 -lz
|
|
|
|
|
|
|
|
# Add assembly files first ... mostly for the benefit of the ARM assembler ...
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_X86_SRC)
|
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_ARM_SRC)
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_MAIN_SRC) $(APPLE2_META_SRC) $(APPLE2_VIDEO_SRC)
|
|
|
|
|
|
|
|
# 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)
|
|
|
|
|