Use DEFINES in Libretro core recipes

This commit is contained in:
Ehmry - 2019-03-16 18:18:53 +01:00
parent 8537b8f139
commit fbaa7c31f3
9 changed files with 22 additions and 28 deletions

View File

@ -1 +0,0 @@
CFLAGS += -DFRONTEND_SUPPORTS_RGB565

View File

@ -1,9 +1,9 @@
CORE_PKGS += libc
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O2 -DNDEBUG
CFLAGS += \
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEFINES += -O2 -DNDEBUG
DEFINES += \
-Wall \
-Wno-sign-compare \
-Wno-unused-variable \

View File

@ -10,8 +10,8 @@
!libretro_cxx = |> ^ CXX %f^ \
$(CXX) \
$(DEFINES) -std=gnu++11 \
`pkg-config --cflags $(CORE_PKGS)` \
$(CFLAGS) $(CXXFLAGS) $(INCFLAGS) \
`pkg-config --cflags $(CORE_PKGS)` \
$(CFLAGS) $(CXXFLAGS) $(INCFLAGS) \
`pkg-config --cflags genode-lib` \
-c %f -o %o \
|> %f.o

View File

@ -1,16 +1,15 @@
CORE_PKGS += libc libm
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O2 -DNDEBUG
CFLAGS += -DWANT_GRIFFIN
DEFINES += -O2 -DNDEBUG
DEFINES += -DWANT_GRIFFIN
include upstream/Makefile.common
CFLAGS += -DSOUND_QUALITY=0 -DPATH_MAX=1024 -DFCEU_VERSION_NUMERIC=9813 -DINLINE=inline -DPSS_STYLE=1
CFLAGS += -Wno-write-strings
CFLAGS += $(INCFLAGS)
DEFINES += -DSOUND_QUALITY=0 -DPATH_MAX=1024 -DFCEU_VERSION_NUMERIC=9813 -DINLINE=inline -DPSS_STYLE=1
DEFINES += -Wno-write-strings
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}

View File

@ -5,7 +5,6 @@ CFLAGS += -O2 -DNDEBUG
CFLAGS += -DHAVE_STDINT_H
CFLAGS += -D__LIBRETRO__ -DHAVE_STDINT_H -DHAVE_INTTYPES_H
CFLAGS += -DINLINE=inline -DVIDEO_RGB565
CXXFLAGS += -std=gnu++11
include upstream/Makefile.common

View File

@ -10,7 +10,7 @@ CFLAGS += -O2 -DNDEBUG
CFLAGS += -DHAVE_INTTYPES_H
CFLAGS += -DINLINE="inline"
CFLAGS += -std=gnu11
CXXFLAGS += -fno-rtti -fno-exceptions -std=gnu++11
CXXFLAGS += -fno-rtti -fno-exceptions
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}

View File

@ -4,8 +4,7 @@ include upstream/Libretro/Makefile.common
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += $(INCFLAGS)
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
@ -20,3 +19,4 @@ CFLAGS += $(INCFLAGS)
: {binary} |> !core_publish_bin |>
: {package} |> !core_publish_pkg |>
: {raw} |> !core_publish_raw |>

View File

@ -74,7 +74,6 @@ endif
ifeq ($(TARGET_NAME),testgl_compute_shaders)
CORE_PKGS += mesa
CFLAGS += -Igl -DNDEBUG -fPIC -DHAVE_ZIP_DEFLATE
CXXFLAGS += -std=gnu++11
SOURCES_CXX += libretro/libretro.cpp
SOURCES_CXX += gl/*.cpp
SOURCES_CXX += app/boxes.cpp

View File

@ -4,21 +4,19 @@ USE_CODEC_WAVE=1
USE_CODEC_FLAC=1
USE_CODEC_VORBIS=1
CFLAGS+= -DUSE_CODEC_WAVE
CFLAGS+= -DUSE_CODEC_FLAC
CFLAGS+= -DUSE_CODEC_VORBIS
DEFINES += -DUSE_CODEC_WAVE
DEFINES += -DUSE_CODEC_FLAC
DEFINES += -DUSE_CODEC_VORBIS
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
DEFINES += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O2 -DNDEBUG
DEFINES += -O2 -DNDEBUG
CFLAGS += $(INCFLAGS)
CFLAGS += -DINLINE=inline
CFLAGS += -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H
CFLAGS += -DNQ_HACK -DQBASEDIR=$(CORE_DIR) -DTYR_VERSION=0.62
CFLAGS += -fomit-frame-pointer
DEFINES += -DINLINE=inline
DEFINES += -DHAVE_STRINGS_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H
DEFINES += -DNQ_HACK -DQBASEDIR=$(CORE_DIR) -DTYR_VERSION=0.62
DEFINES += -fomit-frame-pointer
include upstream/Makefile.common