WiP! Move libretro Tupfiles upstream

This commit is contained in:
Ehmry - 2019-03-02 23:27:15 +01:00
parent 0e8f9fcd91
commit 9446c4e4ae
26 changed files with 87 additions and 116 deletions

View File

@ -2,10 +2,12 @@ CORE_PKGS += libc
CFLAGS += -O3 -Wall -pedantic -std=gnu99
include core/Makefile.common
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |>
: |> !publish_core |> {binary}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}

@ -1 +1 @@
Subproject commit 55674d14f6ddeba23e0ef5d07e070ff49ee29a0f
Subproject commit 0b7db9a5a55c5045a4a0f9ba188a4c8b796b1df4

View File

@ -1,4 +1,4 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/4do/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-4do/@DEPOT_VERSION@

View File

@ -1 +1,12 @@
LIBRETRO_CORE_INCLUDE = $(TUP_CWD)/core.tup
!libretro_cc = |> ^ CC %f^ $(CC) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) $(INCFLAGS) -c %f -o %o |> %f.o
!libretro_cxx = |> ^ CXX %f^ $(CXX) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) $(CXXFLAGS) $(INCFLAGS) -c %f -o %o |> %f.o
!libretro_core_link = |> ^o LD %d^ $(LD) -shared --version-script=$(LINK_T) %f -o %o `pkg-config --libs $(CORE_PKGS)` $(LDFLAGS) |> libretro.so
!publish_core = | libretro.so |> ^ STRIP %o^ strip -o %o %f |> $(DEPOT_BIN_DIR)/libretro-$(TARGET_NAME)/@(DEPOT_VERSION)/%b
!publish_core_archives = |> ^ varse %d archives^ tup varsed %f %o |> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/archives
!publish_core_runtime = |> ^ validate %d runtime^ xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o |> $(DEPOT_PKG_DIR)/$(TARGET_NAME)/@(DEPOT_VERSION)/runtime $(DEPOT_DIR)/<runtimes>
LINK_T = $(TUP_CWD)/link.T
CORE_PKGS += genode-lib
CFLAGS += -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565

View File

@ -1,4 +1,4 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/button_test/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-button_test/@DEPOT_VERSION@

View File

@ -1,30 +0,0 @@
CORE_PKGS += genode-lib
ifeq ($(SOURCES_CXX),)
CORE_PKGS += libc
else
CORE_PKGS += stdcxx
endif
CFLAGS += -D__LIBRETRO__
!libretro_cc = |> ^ CC %f^ $(CC) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) -c %f -o %o |> %f.o
!libretro_cxx = |> ^ CXX %f^ $(CXX) `pkg-config --cflags $(CORE_PKGS)` $(CFLAGS) $(CXXFLAGS) $(INCFLAGS) -c %f -o %o |> %f.o
!libretro_core_link = |> ^o LD %d^ $(LD) -shared --version-script=$(TUP_CWD)/link.T %f -o %o `pkg-config --libs $(CORE_PKGS)` $(LDFLAGS) |> libretro.so
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> libretro.so
: libretro.so |> !strip_to_depot |> {binary}
: archives | libretro.so |> !archives_to_depot |> {package}
: runtime |> !runtime_to_depot |> {package}
ifdef DEPOT_KEY
: {binary} |> !depot_bin_tarball |> {tarballs}
: {package} |> !depot_pkg_tarball |> {tarballs}
: foreach {tarballs} |> !public_signature |>
endif

View File

@ -1,16 +0,0 @@
include_rules
WITH_DYNAREC = @(TUP_ARCH)
# TODO: will not configure correctly for every possible TUP_ARCH
CORE_DIR = core
include $(CORE_DIR)/Makefile.common
CFLAGS += $(INCFLAGS)
SOURCES_CXX += ../../libretro-common/libco/genode.cpp
GIT_VERSION = `git describe --always`
CFLAGS += -O2 -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\" -D__GENODE__
include $(LIBRETRO_CORE_INCLUDE)

View File

@ -0,0 +1,27 @@
CORE_PKGS += stdcxx
WITH_DYNAREC = @(TUP_ARCH)
# TODO: will not configure correctly for every possible TUP_ARCH
include core/Makefile.common
SOURCES_CXX += $(CORE_DIR)/libretro-common/libco/genode.cpp
GIT_VERSION = `git describe --always`
CFLAGS += -O2 -DNDEBUG -DGIT_VERSION=\"$(GIT_VERSION)\" -D__GENODE__
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
ifdef DEPOT_KEY
: {binary} |> !depot_bin_tarball |> {tarballs}
: {package} |> !depot_pkg_tarball |> {tarballs}
: foreach {tarballs} |> !public_signature |>
endif

View File

@ -2,4 +2,4 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/dosbox/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-dosbox/@DEPOT_VERSION@

@ -1 +1 @@
Subproject commit 7216efe33153f028573ad68a843d897bdb11a69c
Subproject commit 2f4abd2432a4c17627b84417685ee35c8d8c9afe

View File

@ -1,4 +1,4 @@
<runtime ram="64M" caps="192" binary="retro_frontend">
<runtime ram="96M" caps="192" binary="retro_frontend">
<requires>
<audio_out/>

View File

@ -1,4 +1,4 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/fceumm/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-fceumm/@DEPOT_VERSION@

View File

@ -9,8 +9,8 @@ CXXFLAGS += -std=gnu++11
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |>
: |> !publish_core |> {binary}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}

View File

@ -1,14 +0,0 @@
include_rules
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O3
CFLAGS += -DHAVE_STRNDUP -DHAVE_STRDUP -DDISABLE_THREADING
CORE_DIR = core
include $(CORE_DIR)/libretro-build/Makefile.common
CFLAGS += $(RETRODEFS)
CFLAGS += $(INCLUDES)
include $(LIBRETRO_CORE_INCLUDE)

View File

@ -0,0 +1,26 @@
CORE_PKGS += libc
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O3
CFLAGS += -DHAVE_STRNDUP -DHAVE_STRDUP -DDISABLE_THREADING
include core/libretro-build/Makefile.common
CFLAGS += $(RETRODEFS)
CFLAGS += $(INCLUDES)
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !publish_core |> {binary}
: $(TUP_CWD)/archives |> !publish_core_archives |> {package}
: $(TUP_CWD)/runtime |> !publish_core_runtime |> {package}
ifdef DEPOT_KEY
: {binary} |> !depot_bin_tarball |> {tarballs}
: {package} |> !depot_pkg_tarball |> {tarballs}
: foreach {tarballs} |> !public_signature |>
endif

View File

@ -2,4 +2,4 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/mgba/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-mgba/@DEPOT_VERSION@

@ -1 +1 @@
Subproject commit afe210e574bda6bf17a2a42d40d22f670752a5be
Subproject commit 5ca62390ea837d9c48aa0d87a5a8a9b545ad34b8

@ -1 +1 @@
Subproject commit 7f18b80a2794cd82d222febeb2fdc9a340fa54dc
Subproject commit 48ac3918a20492f651cbd42f97d69c62b3ca67e4

View File

@ -2,4 +2,4 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/nxengine/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-nxengine/@DEPOT_VERSION@

View File

@ -1,5 +1,5 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/oberon/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-oberon/@DEPOT_VERSION@
@DEPOT_USER@/raw/oberon/@DEPOT_VERSION@

View File

@ -1,18 +0,0 @@
include_rules
CORE_DIR = core
include $(CORE_DIR)/libretro/Makefile.common
GIT_VERSION = `git describe --always`
CXXFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CODE_DEFINES = -fomit-frame-pointer -fno-exceptions -fno-rtti -pedantic
WARNINGS_DEFINES = -Wall -W -Wno-unused-parameter
CFLAGS += -DHAVE_STDINT_H
CFLAGS += -DHAVE_STRINGS_H
CXXFLAGS += $(CODE_DEFINES) $(WARNINGS_DEFINES)
CXXFLAGS += -DRIGHTSHIFT_IS_SAR -D__LIBRETRO__ -DALLOW_CPU_OVERCLOCK
include $(LIBRETRO_CORE_INCLUDE)

View File

@ -2,4 +2,4 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/snes9x/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-snes9x/@DEPOT_VERSION@

@ -1 +1 @@
Subproject commit 643ce6bfe11a31c689128960dead66d8ebf82175
Subproject commit 8c5128c18c2a86a1a1497c25e08d4c4f5f427f2a

View File

@ -1,4 +1,4 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/testgl/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-testgl/@DEPOT_VERSION@

View File

@ -1,17 +0,0 @@
include_rules
GIT_VERSION = `git describe --always`
CFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
CFLAGS += -O2 -DNDEBUG
CORE_DIR = core
include $(CORE_DIR)/Makefile.common
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
include $(LIBRETRO_CORE_INCLUDE)

View File

@ -1,5 +1,5 @@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/vfs/@SDK_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/src/tyrquake/@DEPOT_VERSION@
@DEPOT_USER@/src/libretro-tyrquake/@DEPOT_VERSION@
ehmry/raw/quake_shareware/1.06