libretro-genode/libretro/cores/core.tup

31 lines
993 B
Plaintext

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