2015-02-18 11:34:09 -08:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2015-03-10 13:38:14 -07:00
|
|
|
PACKAGE_IDENTIFIER := "org.deadc0de.apple2ix"
|
2015-02-18 11:34:09 -08:00
|
|
|
PACKAGE_NAME := "apple2ix"
|
2015-02-28 21:48:08 -08:00
|
|
|
COMMON_SOURCES_MK := $(LOCAL_PATH)/sources.mk
|
2015-02-18 11:34:09 -08:00
|
|
|
include $(COMMON_SOURCES_MK)
|
|
|
|
|
2015-09-19 11:47:36 -07:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Breakpad crash reporter ...
|
|
|
|
|
|
|
|
LOCAL_STATIC_LIBRARIES := breakpad_client
|
|
|
|
|
|
|
|
# hmmm, Breakpad's README.ANDROID seems to suggest you shouldn't need to do this kludgery ...
|
|
|
|
BREAKPAD_SRC_PATH := $(APPLE2_SRC_PATH)/../externals/breakpad/src
|
|
|
|
BREAKPAD_CFLAGS := -I$(BREAKPAD_SRC_PATH) -I$(APPLE2_SRC_PATH)/common/android/include
|
|
|
|
|
2015-02-18 11:34:09 -08:00
|
|
|
# -----------------------------------------------------------------------------
|
|
|
|
# Android build config
|
|
|
|
|
2015-09-19 11:47:36 -07:00
|
|
|
LOCAL_CPP_EXTENSION := .C
|
|
|
|
LOCAL_CPPFLAGS := -std=gnu++11
|
|
|
|
|
2015-02-18 16:18:38 -08:00
|
|
|
LOCAL_MODULE := libapple2ix
|
2015-09-27 15:04:10 -07:00
|
|
|
LOCAL_SRC_FILES := jnicrash.c $(APPLE2_SRC_PATH)/breakpad.C
|
2015-07-21 21:34:51 -07:00
|
|
|
#LOCAL_ARM_MODE := arm
|
2015-09-19 11:47:36 -07:00
|
|
|
LOCAL_CFLAGS := $(APPLE2_BASE_CFLAGS) $(BREAKPAD_CFLAGS)
|
2015-09-06 23:43:26 -07:00
|
|
|
LOCAL_LDLIBS := $(APPLE2_BASE_LDLIBS)
|
2015-02-18 11:34:09 -08:00
|
|
|
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_X86_SRC)
|
2015-11-09 22:19:52 -08:00
|
|
|
LOCAL_CFLAGS += -DNO_UNDERSCORES=1
|
2015-02-18 11:34:09 -08:00
|
|
|
else
|
|
|
|
LOCAL_SRC_FILES += $(APPLE2_ARM_SRC)
|
|
|
|
endif
|
|
|
|
|
2016-01-03 13:59:52 -08:00
|
|
|
ifeq ($(BUILD_MODE),release)
|
|
|
|
LOCAL_CFLAGS += -DNDEBUG=1
|
|
|
|
else
|
|
|
|
LOCAL_CFLAGS += -g
|
|
|
|
endif
|
|
|
|
|
2015-09-26 15:20:54 -07:00
|
|
|
ifeq ($(EMBEDDED_STACKWALKER),1)
|
|
|
|
LOCAL_CPPFLAGS += -DEMBEDDED_STACKWALKER=1
|
|
|
|
else
|
2015-11-10 22:08:32 -08:00
|
|
|
ifeq ($(RUNNING_GDB),1)
|
|
|
|
# nothing to do
|
|
|
|
else
|
|
|
|
$(error OOPS, for now you should build with EMBEDDED_STACKWALKER=1)
|
|
|
|
endif
|
2015-09-26 15:20:54 -07:00
|
|
|
endif
|
|
|
|
|
2015-06-25 21:32:37 -07:00
|
|
|
LOCAL_SRC_FILES += $(APPLE2_MAIN_SRC) $(APPLE2_META_SRC) $(APPLE2_VIDEO_SRC) $(APPLE2_AUDIO_SRC)
|
2015-02-18 11:34:09 -08: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-11-10 22:08:32 -08:00
|
|
|
ifeq ($(RUNNING_GDB),1)
|
|
|
|
# nothing to do
|
|
|
|
else
|
|
|
|
$(call import-module, breakpad/android/google_breakpad)
|
|
|
|
endif
|
2015-07-11 14:37:41 -07:00
|
|
|
$(call import-module, android/cpufeatures)
|