genode-ehmry/libretro/cores/dosbox-libretro/Tuprules.tup

32 lines
812 B
Plaintext
Raw Normal View History

2019-03-03 12:54:58 +01:00
CORE_PKGS += stdcxx libm
NO_UNDEFINED =
# Uses Genode API to create secondary stack
LIBRETRO_COMM_DIR =
# TODO: build against newer libretro-common
2019-03-02 23:27:15 +01:00
WITH_DYNAREC = @(TUP_ARCH)
# TODO: will not configure correctly for every possible TUP_ARCH
2019-03-03 12:54:58 +01:00
include upstream/Makefile.common
2019-03-02 23:27:15 +01:00
2019-03-24 20:04:00 +01:00
SOURCES_CXX += $(LIBRETRO_COMM_DIR)/libco/genode.cpp
2019-03-02 23:27:15 +01:00
2019-03-24 20:04:00 +01:00
DEFINES += -O2 -DNDEBUG -D__GENODE__
2019-03-03 12:54:58 +01:00
CFLAGS += $(COMMONFLAGS)
2019-03-30 15:33:04 +01:00
DEFINES += -DHAVE_MMAP
2019-03-03 12:54:58 +01:00
# Use anonymous mmap to allocate executable memory pages
2019-03-02 23:27:15 +01:00
: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}
: {libretro_objs} |> !libretro_core_link |> {core}
2019-03-24 20:04:00 +01:00
: {core} |> !collect_bin |>
: |> !bin |>
2019-03-02 23:27:15 +01:00
2019-03-30 15:33:04 +01:00
PKG_DEPENDS += \
@(SDK_USER)/src/stdcxx/@(SDK_VERSION) \
: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
2019-03-24 20:04:00 +01:00
: |> !pkg |>