Add QNX support

This commit is contained in:
Vladimir Serbinenko 2020-05-02 22:35:03 +02:00
parent 809d6e2d1d
commit ab2792bc20
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,6 @@
#undef PIC
typedef struct {
UINT8 icw[4];

View File

@ -17,6 +17,7 @@ endif
endif
TARGET_NAME := nekop2
MAXOPT = -O3
# system platform
system_platform = unix
@ -108,6 +109,8 @@ else ifeq ($(platform), qnx)
CXX = QCC -Vgcc_ntoarmv7le_cpp
AR = QCC -Vgcc_ntoarmv7le
PLATFORM_DEFINES := -D__BLACKBERRY_QNX__ -fexceptions -marm -mcpu=cortex-a9 -mfpu=neon -mfloat-abi=softfp
# -O3 causes compiler to crash
MAXOPT = -O2
else ifeq ($(platform), android)
TARGET := $(TARGET_NAME)_libretro.so
@ -219,7 +222,7 @@ endif
ifeq ($(DEBUG), 1)
COMMONFLAGS += -O0 -g
else
COMMONFLAGS += -O3 -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\"
COMMONFLAGS += $(MAXOPT) -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\"
endif
CORE_DIR := .