mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-05 02:15:07 +01:00
emscripten support
This commit is contained in:
parent
d973d7d39e
commit
d3fbc1af60
@ -5,6 +5,10 @@ FRONTEND_SUPPORTS_RGB565 = 1
|
||||
GENPLUS_SRC_DIR := core
|
||||
LIBRETRO_DIR := libretro
|
||||
|
||||
ifneq ($(EMSCRIPTEN),)
|
||||
platform = emscripten
|
||||
endif
|
||||
|
||||
ifeq ($(platform),)
|
||||
platform = unix
|
||||
ifeq ($(shell uname -a),)
|
||||
@ -127,6 +131,9 @@ else ifneq (,$(findstring hardfloat,$(platform)))
|
||||
PLATFORM_DEFINES += -mfloat-abi=hard
|
||||
endif
|
||||
PLATFORM_DEFINES += -DARM
|
||||
else ifeq ($(platform), emscripten)
|
||||
TARGET := $(TARGET_NAME)_libretro_emscripten.bc
|
||||
ENDIANNESS_DEFINES := -DLSB_FIRST
|
||||
else
|
||||
TARGET := $(TARGET_NAME)_libretro.dll
|
||||
CC = gcc
|
||||
@ -138,13 +145,13 @@ endif
|
||||
|
||||
ifeq ($(DEBUG), 1)
|
||||
CFLAGS += -O0 -g
|
||||
else
|
||||
ifeq ($(platform),qnx)
|
||||
else ifeq ($(platform),qnx)
|
||||
CFLAGS += -Os -DNDEBUG
|
||||
else ifeq ($(platform), emscripten)
|
||||
CFLAGS += -O2 -DNDEBUG
|
||||
else
|
||||
CFLAGS += -O3 -DNDEBUG
|
||||
endif
|
||||
endif
|
||||
|
||||
LIBRETRO_SRC := $(GENPLUS_SRC_DIR)/genesis.c \
|
||||
$(GENPLUS_SRC_DIR)/vdp_ctrl.c \
|
||||
|
Loading…
Reference in New Issue
Block a user