kumquat-buildroot/package/directfb-examples/Config.in
Thomas De Schampheleire 35eaed8d07 Config.in files: use if/endif instead of 'depends on' for main symbol
In the Config.in file of package foo, it often happens that there are other
symbols besides BR2_PACKAGE_FOO. Typically, these symbols only make sense
when foo itself is enabled. There are two ways to express this: with
    depends on BR2_PACKAGE_FOO
in each extra symbol, or with
    if BR2_PACKAGE_FOO
        ...
    endif
around the entire set of extra symbols.

The if/endif approach avoids the repetition of 'depends on' statements on
multiple symbols, so this is clearly preferred. But even when there is only
one extra symbol, if/endif is a more logical choice:
- it is future-proof for when extra symbols are added
- it allows to have just one strategy instead of two (less confusion)

This patch modifies the Config.in files accordingly.

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2013-12-25 12:21:39 +01:00

161 lines
4.4 KiB
Plaintext

config BR2_PACKAGE_DIRECTFB_EXAMPLES
bool "directfb examples"
depends on BR2_PACKAGE_DIRECTFB
help
The DirectFB-examples package contains a set of simple DirectFB
applications that can be used to test and demonstrate various
DirectFB features.
http://directfb.org/downloads/Extras/README.DirectFB-examples
if BR2_PACKAGE_DIRECTFB_EXAMPLES
config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
bool "usr/bin/df_andi"
help
Penguin demo, press 'space' to form convergence logo,
's'/'d' to spawn/destroy 'a' penguin, 'r' to revive penguin
after space was pressed, 'c' tests clipping.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_BLTLOAD
bool "usr/bin/df_bltload"
help
Reads information from /proc/bltstat.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_CPULOAD
bool "usr/bin/df_cpuload"
help
CPU Load with data from /proc/stat.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DATABUFFER
bool "usr/bin/df_databuffer"
help
Simple test application for data buffers.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DIOLOAD
bool "usr/bin/df_dioload"
help
Disk IO with data from /proc/stat.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DOK
bool "usr/bin/df_dok"
help
DirectFB benchmark application, runs some tests and
displays benchmark results afterwards.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DRIVERTEST
bool "usr/bin/df_drivertest"
help
Tool to check drivers for bugs and accuracy.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_FIRE
bool "usr/bin/df_fire"
help
The famous fire effect ported to DirectFB (16 bpp only).
config BR2_PACKAGE_DIRECTFB_EXAMPLES_FLIP
bool "usr/bin/df_flip"
help
Raw Flip() benchmark.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_FONTS
bool "usr/bin/df_fonts"
help
Takes a list of font files and shows character tables.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_INPUT
bool "usr/bin/df_input"
help
Test application for input devices.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
bool "usr/bin/df_joystick"
help
A colored version of df_particle, fointain can be moved with
joystick. The particles of different colors can be spawned
with different joystick buttons (1-4).
config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
bool "usr/bin/df_knuckles"
help
3D skull drawn using triangles that can be rotated using
the mouse. 'Space' switches to wireframe, 'b' toggles
backface culling.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_LAYER
bool "usr/bin/df_layer"
help
Simple videoplayer with layers.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX
bool "usr/bin/df_matrix"
help
Testing SetMatrix() for free transforms.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX_WATER
bool "usr/bin/df_matrix_water"
help
Same as df_matrix, but using new Water API.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
bool "usr/bin/df_neo"
help
Port from a gdk-pixbuf demo to DirectFB, uses scaling,
alpha blending and color modulation, use cursor keys and
space to change parameters.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_NETLOAD
bool "usr/bin/df_netload"
help
Network statistica from /proc/net/dev.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_PALETTE
bool "usr/bin/df_palette"
help
A example blitting from a surface with a
rotating/morphing palette.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_PARTICLE
bool "usr/bin/df_particle"
help
A moving fountain consisting of alphablended rectangles,
nice and fast if hardware accelerated.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_PORTER
bool "usr/bin/df_porter"
help
Shows porter/duff blending rules.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_STRESS
bool "usr/bin/df_stress"
help
Stress tests surface manager, for debugging purposes only.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_TEXTURE
bool "usr/bin/df_texture"
help
A simple texture example. The 3d windows can be rotated
with the mouse.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO
bool "usr/bin/df_video"
help
Shows window stack with alpha blending and video playback
in a moving window.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_VIDEO_PARTICLE
bool "usr/bin/df_video_particle"
help
Same as df_particle, but the rectangles have been
replaced by a video (via video4linux). Nice color effects.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_WINDOW
bool "usr/bin/df_window"
help
Simple demonstration of the DirectFB window stack, follow
the instructions in the upper left corner. Pass a video
device file or a movie file on the command-line to enable
video playback in one of the windows.
endif