File tree 7 files changed +37
-5
lines changed
7 files changed +37
-5
lines changed Original file line number Diff line number Diff line change 1
1
/.dir-locals.el
2
2
/build /
3
+ /obj /
3
4
/etc /b2_tests /[Zz ]/
4
5
/dependencies /ProcessorTests /
5
6
* .etl
Original file line number Diff line number Diff line change
1
+ LOCAL_PATH := $(call my-dir)
2
+
3
+ CORE_DIR := $(LOCAL_PATH ) /../src
4
+
5
+ include $(CORE_DIR ) /libretro/Makefile.common
6
+
7
+ COREFLAGS := -D__LIBRETRO__ -DB2_LIBRETRO_CORE -DHAVE_STRLCPY -DBUILD_TYPE_Final -DBBCMICRO_TRACE $(INCFLAGS )
8
+
9
+ GIT_VERSION ?= " $(shell git rev-parse --short HEAD || echo unknown) "
10
+ ifneq ($(GIT_VERSION ) ," unknown")
11
+ COREFLAGS += -DGIT_VERSION=\"$(GIT_VERSION ) \"
12
+ endif
13
+
14
+ include $(CLEAR_VARS )
15
+ LOCAL_MODULE := retro
16
+ LOCAL_SRC_FILES := $(SOURCES_C ) $(SOURCES_CPP )
17
+ LOCAL_CXXFLAGS := $(COREFLAGS ) -fexceptions -frtti -std=c++17
18
+ LOCAL_CFLAGS := $(COREFLAGS )
19
+ LOCAL_LDFLAGS := -Wl,-version-script=$(CORE_DIR ) /link.T
20
+ LOCAL_LDLIBS := -llog
21
+ include $(BUILD_SHARED_LIBRARY )
Original file line number Diff line number Diff line change
1
+ APP_STL := c++_static
2
+ APP_ABI := all
Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ SOURCES_CPP := \
39
39
$(CORE_DIR)/beeb/src/TVOutput.cpp \
40
40
$(CORE_DIR)/beeb/src/type.cpp \
41
41
$(CORE_DIR)/beeb/src/video.cpp \
42
+ $(CORE_DIR)/beeb/src/uef.cpp \
42
43
$(CORE_DIR)/beeb/src/VideoULA.cpp \
43
44
$(CORE_DIR)/shared/c/log.cpp \
44
45
$(CORE_DIR)/shared/c/system.cpp \
@@ -52,10 +53,8 @@ SOURCES_CPP := \
52
53
53
54
SOURCES_C := \
54
55
$(CORE_DIR)/6502/c/6502.c \
55
- $(CORE_DIR)/shared/c/path.c \
56
-
57
56
58
- ifneq (,$(filter osx ios-arm64 tvos-arm64 ,$(platform)))
57
+ ifneq (,$(findstring osx,$(platform)))
59
58
SOURCES_CPP += \
60
59
$(CORE_DIR)/shared/c/system_osx.cpp \
61
60
Original file line number Diff line number Diff line change
1
+ {
2
+ global: retro_*;
3
+ local : *;
4
+ };
5
+
Original file line number Diff line number Diff line change @@ -671,7 +671,7 @@ void LogStackTrace(Log *log) {
671
671
if (!log ) {
672
672
return ;
673
673
}
674
-
674
+ # if !defined(ANDROID)
675
675
void *buffer[100 ];
676
676
int n = backtrace (buffer, sizeof buffer / sizeof buffer[0 ]);
677
677
@@ -699,6 +699,9 @@ void LogStackTrace(Log *log) {
699
699
700
700
free (symbols);
701
701
symbols = NULL ;
702
+ #else
703
+ log ->f (" Stack trace not supported on Android" );
704
+ #endif
702
705
}
703
706
704
707
// ////////////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff line change @@ -15,8 +15,9 @@ extern "C" {
15
15
* system_windows.h, and it's certainly convenient. */
16
16
#include <signal.h>
17
17
#include <unistd.h>
18
+ #if !defined(ANDROID )
18
19
#include <execinfo.h>
19
-
20
+ #endif
20
21
//////////////////////////////////////////////////////////////////////////
21
22
//////////////////////////////////////////////////////////////////////////
22
23
You can’t perform that action at this time.
0 commit comments