CORE_PKGS += stdcxx
NO_UNDEFINED =

LIBRETRO_COMM_DIR =

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

: foreach $(SOURCES_C) |> !libretro_cc |> {libretro_objs}
: foreach $(SOURCES_CXX) |> !libretro_cxx |> {libretro_objs}

: {libretro_objs} |> !libretro_core_link |> {core}
: {core} |> !collect_bin |>
: |> !bin |>

PKG_DEPENDS += \
	@(PUBLIC_SRC_STDCXX) \

: $(TUP_CWD)/runtime |> !collect_pkg_runtime |>
: |> !pkg |>
