libretro-samples/midi/midi_test
Emery Hemingway fd6547e86f Tupfiles for super-repositories
Add minimal metadata for a Tup build system. Tup will discover any file
named "Tupfile" in a the sub-directories where it is run. In this case a
tupfile defines the core name and invokes the "include_rules" directive,
which will include the Tup rules defined in parent directories. This
allows a parent repository with platform-specific build rules to host
this repository as a submodule. The sample cores may thus be ported to
new platforms without polluting the local makefiles. Naturally the
external build rules must be synchronized with the source code herein,
the tupfiles here only define TARGET_NAME so that they will never
contradict information contained in the makefiles.

A sample Tuprules.tup for a super-repository:

ifeq ($(TARGET_NAME),advanced_tests)
	CFLAGS += -I../../libretro-common/include
	SOURCES_C += libretro-test.c
endif
CFLAGS += -O3 -Wall -pedantic -std=gnu99
: foreach $(SOURCES_C) |> !libretro_cc |> {objs}
: {objs} |> !libretro_ld |> $(TARGET_NAME)_libretro.so
2019-03-03 12:34:32 +01:00
..
jni Add MIDI test core 2018-10-06 00:18:03 +02:00
libretro.c midi_test: fail retro_load_game without MIDI 2019-03-03 11:51:09 +01:00
libretro.h Add MIDI test core 2018-10-06 00:18:03 +02:00
link.T Add MIDI test core 2018-10-06 00:18:03 +02:00
Makefile Add MIDI test core 2018-10-06 00:18:03 +02:00
README.md Add MIDI test core 2018-10-06 00:18:03 +02:00
Tupfile Tupfiles for super-repositories 2019-03-03 12:34:32 +01:00

midi_test_libretro

A MIDI test core written in C for libretro.

Demonstrates usage of the MIDI API:

  • Input/Output (input to output loopback)
  • Output (metronome, one octave keyboard)

Usage

Keyboard keys 0,1,2 and 3 select current test: 0 None, 1 Metronome, 2 Loopback, 3 Keyboard.

Programming language

C

Building

To compile, you will need a C compiler and assorted toolchain installed.

make