mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-28 15:31:15 +00:00
Add testui target for Android
This commit is contained in:
parent
039063d9b0
commit
f6e2ebc028
@ -95,10 +95,15 @@ elif test "$(basename $0)" = "testdisplay" ; then
|
|||||||
ln -s testdisplay.mk Android.mk
|
ln -s testdisplay.mk Android.mk
|
||||||
elif test "$(basename $0)" = "testprefs" ; then
|
elif test "$(basename $0)" = "testprefs" ; then
|
||||||
ln -s testprefs.mk Android.mk
|
ln -s testprefs.mk Android.mk
|
||||||
|
elif test "$(basename $0)" = "testui" ; then
|
||||||
|
ln -s testui.mk Android.mk
|
||||||
elif test "$(basename $0)" = "testvm" ; then
|
elif test "$(basename $0)" = "testvm" ; then
|
||||||
ln -s testvm.mk Android.mk
|
ln -s testvm.mk Android.mk
|
||||||
else
|
elif test "$(basename $0)" = "apple2ix" ; then
|
||||||
ln -s apple2ix.mk Android.mk
|
ln -s apple2ix.mk Android.mk
|
||||||
|
else
|
||||||
|
echo "OOPS, unsure of what to build"
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -83,6 +83,9 @@ static void _start_tests(void) {
|
|||||||
#elif TEST_TRACE
|
#elif TEST_TRACE
|
||||||
extern void test_trace(int, char *[]);
|
extern void test_trace(int, char *[]);
|
||||||
test_trace(local_argc, local_argv);
|
test_trace(local_argc, local_argv);
|
||||||
|
#elif TEST_UI
|
||||||
|
extern void test_ui(int, char *[]);
|
||||||
|
test_ui(local_argc, local_argv);
|
||||||
#elif TEST_VM
|
#elif TEST_VM
|
||||||
extern void test_vm(int, char *[]);
|
extern void test_vm(int, char *[]);
|
||||||
test_vm(local_argc, local_argv);
|
test_vm(local_argc, local_argv);
|
||||||
|
1
Android/jni/testui
Symbolic link
1
Android/jni/testui
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
build.sh
|
34
Android/jni/testui.mk
Normal file
34
Android/jni/testui.mk
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
LOCAL_PATH := $(call my-dir)
|
||||||
|
|
||||||
|
include $(CLEAR_VARS)
|
||||||
|
|
||||||
|
PACKAGE_IDENTIFIER := "org.deadc0de.apple2ix"
|
||||||
|
PACKAGE_NAME := "apple2ix"
|
||||||
|
COMMON_SOURCES_MK := $(LOCAL_PATH)/sources.mk
|
||||||
|
include $(COMMON_SOURCES_MK)
|
||||||
|
|
||||||
|
# -----------------------------------------------------------------------------
|
||||||
|
# Android build config
|
||||||
|
|
||||||
|
LOCAL_MODULE := libapple2ix
|
||||||
|
LOCAL_SRC_FILES := $(APPLE2_SRC_PATH)/test/testcommon.c $(APPLE2_SRC_PATH)/test/testui.c
|
||||||
|
LOCAL_CFLAGS := $(APPLE2_BASE_CFLAGS) -g -DTEST_UI=1 -DTESTING=1 -I$(APPLE2_SRC_PATH)/test
|
||||||
|
LOCAL_LDLIBS := $(APPLE2_BASE_LDLIBS)
|
||||||
|
|
||||||
|
# Add assembly files first ... mostly for the benefit of the ARM assembler ...
|
||||||
|
ifeq ($(TARGET_ARCH_ABI),x86)
|
||||||
|
LOCAL_SRC_FILES += $(APPLE2_X86_SRC)
|
||||||
|
LOCAL_CFLAGS += -DNO_UNDERSCORES=1
|
||||||
|
else
|
||||||
|
LOCAL_SRC_FILES += $(APPLE2_ARM_SRC)
|
||||||
|
endif
|
||||||
|
|
||||||
|
LOCAL_SRC_FILES += $(APPLE2_MAIN_SRC) $(APPLE2_META_SRC) $(APPLE2_VIDEO_SRC) $(APPLE2_AUDIO_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)
|
||||||
|
|
||||||
|
$(call import-module, android/cpufeatures)
|
Loading…
x
Reference in New Issue
Block a user