WiP Version management

This commit is contained in:
Ehmry - 2019-03-30 15:33:04 +01:00
parent 1d8f8925eb
commit fd08aacd2b
37 changed files with 241 additions and 167 deletions

2
.gitmodules vendored
View File

@ -50,7 +50,7 @@
path = libretro/cores/samples/upstream
url = https://github.com/libretro/libretro-samples
[submodule "libretro/cores/dosbox/core"]
path = libretro/cores/dosbox/upstream
path = libretro/cores/dosbox-libretro/upstream
url = https://github.com/libretro/dosbox-libretro
[submodule "libretro/cores/mrboom/core"]
path = libretro/cores/mrboom/upstream

37
Tupfile
View File

@ -8,7 +8,7 @@ SHORT_SUM = b2sum -l24
: $(DEPOT_DIR)/<raw-archives> $(DEPOT_DIR)/<bin-archives> |> \
for f in %<raw-archives> %<bin-archives>; do \
awk -F '/' '{print "s|local/"$2"/"$3"|@(PUBLIC_USER)/"$2"/"$3"/"$4"|"}' $f >> %o; done; \
awk -F '/' '{print "s|local/"$2"/"$3"/current|@(PUBLIC_USER)/"$2"/"$3"/"$4"|"}' $f >> %o; done; \
|> $(VERSIONS_SED_FILE)
# Generate a listing of all raw archives
@ -22,16 +22,16 @@ SHORT_SUM = b2sum -l24
|> $(BIN_LISTING)
# Generate a listing of all binary archives
: $(DEPOT_DIR)/<pkg-archives> |> \
$(SHORT_SUM) %<pkg-archives> | awk -F '/' \
'/_ARCHIVES/ {print "s|_/pkg/"$4"/current|@(PUBLIC_USER)/pkg/"$4"/"substr($0,0,6)"|"}' > %o; \
: $(DEPOT_DIR)/<packages> |> ^ generate package version sed script^ \
for d in `dirname %<packages> | tr ' ' '\n' | sort -u`; do \
echo $d/`cat $d/_ARCHIVES $d/runtime | $(SHORT_SUM)` | awk -F '/' \
'{print "s|local/pkg/"$4"/current|@(PUBLIC_USER)/pkg/"$4"/"substr($6,0,6)"|"}' >> %o; \
done \
|> $(PKG_SED_FILE)
# Generate sed commands for replacing package versions
: index.xml | pkg.sed |> sed -f pkg.sed %f | xz > %o \
|> public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz
: $(DEPOT_DIR)/<raw-archives> $(DEPOT_DIR)/<bin-archives> $(DEPOT_DIR)/<pkg-archives> |> \
: $(DEPOT_DIR)/<raw-archives> $(DEPOT_DIR)/<bin-archives> $(PKG_SED_FILE) |> \
^ generate public makefile^ \
echo PUBLIC_USER=@(PUBLIC_USER) >> %o; \
echo PUBLIC_ARCH=@(TUP_ARCH) >> %o; \
echo "all: public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz.sig" >> %o; \
@ -43,21 +43,22 @@ SHORT_SUM = b2sum -l24
awk -F '/' -f errata/raw.mk.awk $f >> %o; done; \
for f in %<bin-archives>; do \
awk -F '/' -f errata/bin.mk.awk $f >> %o; done; \
$(SHORT_SUM) %<pkg-archives> | awk -f errata/pkg.mk.awk >> %o; \
awk -F '/' -f errata/pkg.mk.awk $(PKG_SED_FILE) >> %o; done \
|> Makefile
# Generate the makefile for creating signed package tarballs
DEPOT_INDEX_FILE = $(DEPOT_DIR)/index/@(SCULPT_VERSION)
PUBLIC_INDEX_FILE = $(PUBLIC_DIR)/index/@(SCULPT_VERSION)
: index.xml | $(PKG_SED_FILE) |> ^ generate public index^ \
sed \
-e 's|_/pkg/\(\w*\)|local/pkg/\1/current|' \
-f $(PKG_SED_FILE) %f \
| xz > %o \
|> public/@(PUBLIC_USER)/index/@(SCULPT_VERSION).xz
AWK_RUNTIME_PATH = awk -v RS=' ' -F '/' \
'{print " <pkg path=\"local/pkg/"$4"/current\"/>"}'
'/runtime/ {print " <pkg path=\"local/pkg/"$4"/current\"/>"}'
: $(DEPOT_DIR)/<runtime> $(DEPOT_DIR)/<libretro-runtimes> |> ^ generate index^ \
: $(DEPOT_DIR)/<packages> |> ^ generate local index^ \
echo '<index>' > %o; \
echo ' <index name="Libretro">' >> %o; \
echo %<libretro-runtimes> | $(AWK_RUNTIME_PATH) >> %o; \
echo ' </index>' >> %o; \
echo %<runtime> | $(AWK_RUNTIME_PATH) >> %o; \
echo '</index>' >> %o |> $(DEPOT_INDEX_FILE) {index}
echo %<packages> | $(AWK_RUNTIME_PATH) | sort >> %o; \
echo '</index>' >> %o |> $(DEPOT_DIR)/index/@(SCULPT_VERSION)
# Generate the depot index file

View File

@ -1,39 +1,55 @@
ifeq ($(RAW_NAME),)
RAW_NAME = $(TARGET_NAME)
endif
ifeq ($(BIN_NAME),)
BIN_NAME = $(TARGET_NAME)
endif
ifeq ($(PKG_NAME),)
PKG_NAME = $(TARGET_NAME)
endif
!raw = |> ^ COLLECT %o^ \
echo $(RAW_DEPENDS) local/raw/%d/$(raw_VERSION) | tr ' ' '\n' > %o; \
echo local/raw/%d/$(RAW_VERSION) > %o \
|> $(DEPOT_RAW_DIR)/%d/current/_ARCHIVES $(DEPOT_DIR)/<raw-archives>
echo $(RAW_DEPENDS) local/raw/$(RAW_NAME)/$(RAW_VERSION) | tr ' ' '\n' > %o; \
echo local/raw/$(RAW_NAME)/$(RAW_VERSION) > %o \
|> $(DEPOT_RAW_DIR)/$(RAW_NAME)/current/_ARCHIVES $(DEPOT_DIR)/<raw-archives>
!bin = |> ^ COLLECT %o^ \
echo $(BIN_DEPENDS) local/src/%d/$(BIN_VERSION) | tr ' ' '\n' > %o; \
|> $(DEPOT_BIN_DIR)/%d/current/_ARCHIVES $(DEPOT_DIR)/<bin-archives>
echo $(BIN_DEPENDS) local/src/$(BIN_NAME)/$(BIN_VERSION) | tr ' ' '\n' > %o; \
|> $(DEPOT_BIN_DIR)/$(BIN_NAME)/current/_ARCHIVES $(DEPOT_DIR)/<bin-archives>
AWK_LOCAL_ARCHIVES = awk -F '/' \
'{if ($1 != "local") {print $0} \
else {print $1"/"$2"/"$3"/current"}}'
!pkg = | $(VERSIONS_SED_FILE) |> ^ GENERATE %o^ \
echo $(PKG_DEPENDS) | tr ' ' '\n' \
> $(DEPOT_PKG_DIR)/%d/current/archives; \
sed -f $(VERSIONS_SED_FILE) $(DEPOT_PKG_DIR)/%d/current/archives \
> $(DEPOT_PKG_DIR)/%d/current/_ARCHIVES; \
|> $(DEPOT_PKG_DIR)/%d/current/archives $(DEPOT_PKG_DIR)/%d/current/_ARCHIVES \
$(DEPOT_DIR)/<pkg-archives>
# Generate depot/local/pkg/.../current/[archives|_ARCHIVES]
!pkg = |> |>
!collect_raw = |> ^ COLLECT %o^ \
cp %f %o \
|> $(DEPOT_RAW_DIR)/%d/current/%b
|> $(DEPOT_RAW_DIR)/$(RAW_NAME)/current/%b
!collect_bin = |> ^ COLLECT %o^ \
strip -o %o %f \
|> $(DEPOT_BIN_DIR)/%d/current/%b
|> $(DEPOT_BIN_DIR)/$(BIN_NAME)/current/%b
!collect_pkg_runtime = |> ^ VALIDATE %o^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o \
|> $(DEPOT_PKG_DIR)/%d/current/runtime $(DEPOT_DIR)/<runtime>
!collect_pkg_runtime = | $(VERSIONS_SED_FILE) |> ^ packag $(PKG_NAME)^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd %f \
> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime; \
echo $(PKG_DEPENDS) | tr ' ' '\n' | sed \
-e 's|_/\(.*\)/\(.*\)$|local/\1/\2/current|' \
> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives; \
sed -f $(VERSIONS_SED_FILE) $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/_ARCHIVES; \
|> \
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/archives \
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/_ARCHIVES \
$(DEPOT_PKG_DIR)/$(PKG_NAME)/current/runtime \
$(DEPOT_DIR)/<packages>
!collect_pkg = |> ^ COLLECT %o^ cp %f %o \
|> $(DEPOT_PKG_DIR)/%d/current/%b
|> $(DEPOT_PKG_DIR)/$(PKG_NAME)/current/%b \
$(DEPOT_DIR)/<packages>
VERSIONS_SED_FILE = $(TUP_CWD)/versions.sed
PKG_SED_FILE = $(TUP_CWD)/pkg.sed

View File

@ -1,20 +1,13 @@
{ split($2,a,"/") }
{ if (a[6] == "_ARCHIVES") {
{ src=a[1]"/"a[2]"/"a[3]"/"a[4]"/"a[5] }
{ tar="public/$(PUBLIC_USER)/pkg/"a[4]"/"$1".tar.xz" }
{ ver=substr($7,0,6) }
{ tar="public/$(PUBLIC_USER)/pkg/"$6"/"ver".tar.xz" }
{ sig=tar".sig" }
{ print "all: " tar ".sig" }
{ print tar": "$2" pkg.sed" }
{ print tar": depot/local/pkg/"$6"/current/_ARCHIVES pkg.sed" }
{ print " @echo tar $@" }
{ print " @mkdir -p "$1 }
{ print " @sed -e 's|^local/|$(PUBLIC_USER)/|' -f pkg.sed $< > "$1"/archives" }
{ print " @cp $(dir $<)/runtime "$1 }
{ print " @mkdir -p $(dir $@)" }
{ print " @tar cfJ $@ "$1 }
{ print " @rm -r "$1 }
}}
{ print " @mkdir -p $(dir $@) "ver }
{ print " @cp $< "ver"/archives" }
{ print " @cp $(dir $<)/runtime "ver }
{ print " @tar cfJ $@ "ver }
{ print " @rm -r "ver }

View File

@ -10,5 +10,5 @@ include upstream/Makefile.common
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -13,7 +13,7 @@ DEFINES += \
include upstream/Makefile.common
CFLAGS += $(FLAGS)
DEFINES += $(FLAGS)
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
@ -21,5 +21,4 @@ CFLAGS += $(FLAGS)
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> !pkg |>
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>

View File

@ -1,43 +1,9 @@
DEPOT_NAME = $(TARGET_NAME)
!raw = |> ^ COLLECT %o^ \
echo local/raw/$(TARGET_NAME)/$(RAW_VERSION) > %o \
|> $(DEPOT_RAW_DIR)/$(DEPOT_NAME)/current/_ARCHIVES $(DEPOT_DIR)/<raw-archives>
!bin = |> ^ COLLECT %o^ \
echo $(REMOTE_DEPENDS) local/src/libretro-$(DEPOT_NAME)/$(BIN_VERSION) | tr ' ' '\n' > %o; \
|> $(DEPOT_BIN_DIR)/libretro-$(DEPOT_NAME)/current/_ARCHIVES $(DEPOT_DIR)/<bin-archives>
!pkg = | $(VERSIONS_SED_FILE) |> ^ GENERATE %o^ \
echo $(PKG_DEPENDS) | tr ' ' '\n' \
> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/archives; \
sed -f $(VERSIONS_SED_FILE) $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/archives \
> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/_ARCHIVES; \
! grep ^local/ $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/_ARCHIVES; \
|> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/archives $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/_ARCHIVES \
$(DEPOT_DIR)/<pkg-archives>
# Generate depot/local/pkg/.../current/[archives|_ARCHIVES]
# Implicit dependencies
PKG_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
local/src/libretro-$(DEPOT_NAME) \
local/src/retro_frontend \
# Implicit dependencies
!collect_raw = |> ^ COLLECT %o^ \
cp %f %o \
|> $(DEPOT_RAW_DIR)/$(DEPOT_NAME)/current/%b
!collect_bin = |> ^ COLLECT %o^ \
strip -o %o %f \
|> $(DEPOT_BIN_DIR)/libretro-$(DEPOT_NAME)/current/%b
!collect_runtime = |> ^ VALIDATE %o^ \
xmllint -schema $(ERRATA_DIR)/runtime.xsd %f > %o \
|> $(DEPOT_PKG_DIR)/$(DEPOT_NAME)/current/runtime \
$(DEPOT_DIR)/<libretro-runtimes>
_/src/$(BIN_NAME) \
_/src/retro_frontend \
!libretro_cc = |> ^ CC %f^ \
$(CC) \

View File

@ -1,10 +1,8 @@
# TODO:
# this core requires the two folders named Machines/ and Databases/ from standalone blueMSX
# copied inside your frontend's system directory. See upstream/README.md
CORE_PKGS += stdcxx libc libm
NO_UNDEFINED =
LIBRETRO_COMM_DIR =
DEBUG = 0
LOG_PERFORMANCE = 0
HAVE_COMPAT = 0
@ -34,5 +32,18 @@ CXXFLAGS += -w
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: |> wget --quiet http://bluemsx.msxblue.com/rel_download/%o |> blueMSXv282.zip {zip}
: {zip} \
|> unzip %f -d tmp ; tar cf %o -C tmp Machines Databases ; rm -r tmp \
|> blueMSX.tar {tar}
: {tar} |> !collect_raw |>
: |> !raw |>
PKG_DEPENDS += \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
_/raw/bluemsx \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -14,7 +14,7 @@ SOURCES_CXX += $(LIBRETRO_COMM_DIR)/libco/genode.cpp
DEFINES += -O2 -DNDEBUG -D__GENODE__
CFLAGS += $(COMMONFLAGS)
CXXFLAGS += -DHAVE_MMAP
DEFINES += -DHAVE_MMAP
# Use anonymous mmap to allocate executable memory pages
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
@ -24,5 +24,8 @@ CXXFLAGS += -DHAVE_MMAP
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
PKG_DEPENDS += \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

@ -0,0 +1 @@
Subproject commit 6dc49e4356c78ae097fa39d5e3ccb7e50215d4bd

@ -1 +0,0 @@
Subproject commit bb615dc8ac6279185fc52fb05f32f397d715df02

View File

@ -15,5 +15,5 @@ DEFINES += -Wno-write-strings
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -2,12 +2,11 @@ CORE_PKGS += stdcxx
NO_UNDEFINED =
LIBRETRO_COMM_DIR =
# TODO: update LIBRETRO_COMM_DIR
CFLAGS += -O2 -DNDEBUG
CFLAGS += -DHAVE_STDINT_H
CFLAGS += -D__LIBRETRO__ -DHAVE_STDINT_H -DHAVE_INTTYPES_H
CFLAGS += -DINLINE=inline -DVIDEO_RGB565
DEFINES += -O2 -DNDEBUG
DEFINES += -DHAVE_STDINT_H
DEFINES += -D__LIBRETRO__ -DHAVE_STDINT_H -DHAVE_INTTYPES_H
DEFINES += -DINLINE=inline -DVIDEO_RGB565
include upstream/Makefile.common
@ -18,5 +17,7 @@ include upstream/Makefile.common
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
PKG_DEPENDS += @(SDK_USER)/src/stdcxx/@(SDK_VERSION)
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -14,5 +14,8 @@ CFLAGS += $(INCLUDES)
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
PKG_DEPENDS += \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -21,5 +21,5 @@ include upstream/Makefile.common
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -0,0 +1,26 @@
CORE_PKGS += libc libm
LIBRETRO_COMM_DIR =
DEFINES += -O2 -DNDEBUG
DEFINES += -DINLINE=inline
include upstream/libretroBuildSystem/build/Makefile.common
include upstream/src/makefile.all
SOURCES_C += $(EMU_SOURCES_C)
DEFINES += $(COREDEFINES)
DEFINES += $(INCFLAGS)
CFLAGS += -Wall -W -Wno-unused-parameter -Wno-sign-compare -Wno-uninitialized
CFLAGS += -fomit-frame-pointer
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !collect_bin |>
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !bin |>
: |> !pkg |>

24
libretro/cores/mu/runtime Normal file
View File

@ -0,0 +1,24 @@
<runtime ram="32M" caps="256" binary="retro_frontend">
<requires> <file_system/> <nitpicker/> </requires>
<content>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="libretro.so"/>
<rom label="retro_frontend"/>
<rom label="vfs.lib.so"/>
</content>
<config ld_vebose="yes">
<libc stdout="/dev/log" stderr="/dev/log"/>
<game/>
<vfs>
<fs/>
<dir name="dev">
<log label="core"/>
</dir>
</vfs>
</config>
</runtime>

View File

@ -1,4 +1,4 @@
CORE_PKGS += stdcxx libc libm
CORE_PKGS += libc libm
NO_UNDEFINED =
# __cxa_...
@ -18,5 +18,5 @@ CXXFLAGS += -fno-rtti -fno-exceptions
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -13,5 +13,8 @@ include upstream/Libretro/Makefile.common
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
PKG_DEPENDS += \
_/raw/oberon \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -13,55 +13,55 @@ ifeq ($(TARGET_NAME),testaudio_callback)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testaudio_no_callback)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testaudio_playback_wav)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),button_test)
CFLAGS += -Ilibretro-common/include
SOURCES_C += libretro.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),freebasic)
TARGET_NAME=
# : fbastest.bas |> fbc -dll %f -x %o |> libretro.so {core}
# PKG_DEPENDS += $(SIMPLE_DEPENDS)
# : $(TUP_CWD)/simple.runtime |> !collect_runtime |>
# : $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),pascal_pong)
TARGET_NAME=
# : pong.pas |> fpc -o%o %f |> libretro.so {core}
# PKG_DEPENDS += $(SIMPLE_DEPENDS)
# : $(TUP_CWD)/simple.runtime |> !collect_runtime |>
# : $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),midi_test)
SOURCES_C += libretro.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/midi.runtime |> !collect_runtime |>
: $(TUP_CWD)/midi.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),test)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),cruzes)
@ -70,14 +70,14 @@ ifeq ($(TARGET_NAME),cruzes)
# : obj/Carlito-Regular.ttf |> ttf2c 16 font16 %f %o |> font16.h
# : obj/Carlito-Regular.ttf |> ttf2c 10 font10 %f %o |> font10.h
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),advanced_tests)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/audio.runtime |> !collect_runtime |>
: $(TUP_CWD)/audio.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testgl_compute_shaders)
@ -90,7 +90,7 @@ ifeq ($(TARGET_NAME),testgl_compute_shaders)
SOURCES_C += glsym/glsym_gl.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testgl_ff)
@ -98,7 +98,7 @@ ifeq ($(TARGET_NAME),testgl_ff)
CFLAGS +=
SOURCES_C += libretro_gl_ff_test.c glsym/rglgen.c glsym/glsym_gl.c
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testgl)
@ -109,35 +109,35 @@ ifeq ($(TARGET_NAME),testgl)
SOURCES_C += glsym/glsym_gl.c
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testsw)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testsw_vram)
CFLAGS += -I../../libretro-common/include
SOURCES_C += libretro-test.c
PKG_DEPENDS += $(SIMPLE_DEPENDS)
: $(TUP_CWD)/simple.runtime |> !collect_runtime |>
: $(TUP_CWD)/simple.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testvulkan_async_compute)
CFLAGS += -I../../libretro-common/include -Iinclude
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
endif
ifeq ($(TARGET_NAME),testvulkan)
CFLAGS += -I../../libretro-common/include -Iinclude
SOURCES_C += libretro-test.c vulkan_symbol_wrapper.c
PKG_DEPENDS += $(GL_DEPENDS)
: $(TUP_CWD)/testgl.runtime |> !collect_runtime |>
: $(TUP_CWD)/testgl.runtime |> !collect_pkg_runtime |>
endif
ifneq ($(TARGET_NAME),)
@ -147,7 +147,7 @@ ifneq ($(TARGET_NAME),)
: {core} |> !collect_bin |>
: |> !bin |>
#: README.md |> !collect_runtime |>
#: README.md |> !collect_pkg_runtime |>
: |> !pkg |>
endif

View File

@ -18,5 +18,8 @@ CXXFLAGS += -DRIGHTSHIFT_IS_SAR -D__LIBRETRO__ -DALLOW_CPU_OVERCLOCK
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
PKG_DEPENDS += \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -26,5 +26,8 @@ include upstream/Makefile.common
: {core} |> !collect_bin |>
: |> !bin |>
: $(TUP_CWD)/runtime |> !collect_runtime |>
PKG_DEPENDS += \
ehmry/raw/quake_shareware/1.06 \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -1,6 +1,8 @@
TARGET_NAME = backdrop
PKG_DEPENDS += \
nfeske/pkg/backdrop/2019-02-22 \
local/raw/backdrop \
_/raw/backdrop \
include_rules

View File

@ -2,8 +2,8 @@ PKG_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
local/src/libretro-nxengine \
local/src/retro_frontend \
_/src/nxengine \
_/src/retro_frontend \
: ../runtime |> !collect_pkg |>
: ../runtime |> !collect_pkg_runtime |>
: |> !pkg |>

View File

@ -1,13 +1,14 @@
ifndef CONFIG_NO_NETWORK
TARGET_NAME = cave_story-en
PKG_DEPENDS += \
local/raw/cave_story-en \
_/raw/cave_story-en \
include_rules
: |> wget --quiet https://www.cavestory.org/downloads/%o |> cavestoryen.zip {zip}
: {zip} |> unzip -qD %f -d tmp ; tar cf %o -C tmp/CaveStory . ; rm -r tmp |> doukutsu.tar {tar}
RAW_VERSION = 2004.12

View File

@ -1,8 +1,10 @@
TARGET_NAME = depot_9P
PKG_DEPENDS += \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(PUBLIC_SRC_LWIP) \
local/src/ninep \
_/src/ninep \
include_rules

View File

@ -1,3 +1,5 @@
TARGET_NAME = fetch-nixos
PKG_DEPENDS += \
@(SDK_USER)/src/init/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@ -10,8 +12,8 @@ PKG_DEPENDS += \
genodelabs/src/report_rom/2019-02-25 \
ehmry/src/vfs_lwip/2019-03-04 \
genodelabs/src/zlib/2019-02-25 \
local/raw/fetch-nixos/ \
local/src/fetch_and_copy \
_/raw/fetch-nixos/ \
_/src/fetch_and_copy \
include_rules

View File

@ -6,7 +6,7 @@ PKG_DEPENDS += \
@(UPSTREAM_USER)/src/mp3_audio_sink/@(DEPOT_VERSION) \
@(UPSTREAM_USER)/src/vfs_lwip/@(UPSTREAM_VERSION) \
@(UPSTREAM_USER)/src/zlib/@(UPSTREAM_VERSION) \
local/src/icy_client \
_/src/icy_client \
: ../runtime.in |> sed 's|@STREAM_URL@|$(STREAM_URL)|' %f > %o |> runtime
: runtime |> !collect_pkg_runtime |>

View File

@ -1,2 +1,3 @@
TARGET_NAME = ifm1
STREAM_URL = http://radio.intergalactic.fm:80/1
include_rules

View File

@ -1,2 +1,3 @@
TARGET_NAME = ifm2
STREAM_URL = http://radio.intergalactic.fm:80/2
include_rules

View File

@ -1,2 +1,3 @@
TARGET_NAME = ifm3
STREAM_URL = http://radio.intergalactic.fm:80/3
include_rules

View File

@ -1,16 +1,27 @@
ifndef CONFIG_NO_NETWORK
TARGET_NAME = soyuz
PKG_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
_/src/dosbox-libretro \
_/src/retro_frontend \
_/raw/soyuz \
include_rules
: |> wget --quiet https://ce.gl/ports/dist/soyuz/%o |> soyuz.zip
: |> wget --quiet https://ce.gl/ports/dist/soyuz/%o |> soyuz.zip {zip}
: soyuz.zip \
: {zip} \
|> unzip %f -d soyuz ; tar cf %o dosbox.conf soyuz ; rm -r soyuz \
|> $(DEPOT_RAW_DIR)/%d/@(DEPOT_VERSION)/soyuz.tar {raw}
|> soyuz.tar {tar}
: runtime |> !runtime_to_depot |> {package}
: archives |> !archives_to_depot |> {package}
: {tar} |> !collect_raw |>
: |> !raw |>
: {package} |> !publish_pkg |>
: {raw} |> !publish_raw |>
: runtime |> !collect_pkg_runtime |>
: |> !pkg |>
endif

View File

@ -1,6 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/libretro-dosbox/@DEPOT_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/raw/soyuz/@DEPOT_VERSION@

View File

@ -1,3 +1,5 @@
TARGET_NAME = templeos
include_rules
PKG_DEPENDS += \

View File

@ -1,4 +1,15 @@
ifndef CONFIG_NO_NETWORK
TARGET_NAME = topbench
PKG_DEPENDS += \
@(SDK_USER)/src/vfs/@(SDK_VERSION) \
@(SDK_USER)/src/libc/@(SDK_VERSION) \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
_/src/dosbox-libretro \
_/src/retro_frontend \
_/raw/topbench \
include_rules
: |> wget --quiet https://github.com/MobyGamer/TOPBENCH/releases/download/0.38.h/%o |> TOPBV38H.ZIP {zip}
@ -7,10 +18,10 @@ include_rules
|> unzip -L %f -d tmp ; tar cf %o -C tmp . ; rm -r tmp \
|> $(DEPOT_RAW_DIR)/%d/@(DEPOT_VERSION)/TOPBV38H.tar {raw}
: runtime |> !runtime_to_depot |> {package}
: archives |> !archives_to_depot |> {package}
: {zip} |> !collect_raw |>
: |> !raw |>
: {package} |> !publish_pkg |>
: {raw} |> !publish_raw |>
: runtime |> !collect_pkg_runtime |>
: |> !pkg |>
endif

View File

@ -1,6 +0,0 @@
@SDK_USER@/src/vfs/@SDK_VERSION@
@SDK_USER@/src/libc/@SDK_VERSION@
@SDK_USER@/src/stdcxx/@SDK_VERSION@
@DEPOT_USER@/src/libretro-dosbox/@DEPOT_VERSION@
@DEPOT_USER@/src/retro_frontend/@DEPOT_VERSION@
@DEPOT_USER@/raw/topbench/@DEPOT_VERSION@