summaryrefslogtreecommitdiff
path: root/package/directfb-examples
diff options
context:
space:
mode:
authorThomas De Schampheleire <patrickdepinguin@gmail.com>2013-12-20 22:31:30 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-12-25 12:21:39 +0100
commit35eaed8d07bdc73a83990bc306fcdb08b2e70eaf (patch)
treefe38a982159d30eeadbc0a30462da1676bdd11b0 /package/directfb-examples
parent142a81d60533ef179300c44fd29aaefbfae62d3a (diff)
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>
Diffstat (limited to 'package/directfb-examples')
-rw-r--r--package/directfb-examples/Config.in30
1 files changed, 4 insertions, 26 deletions
diff --git a/package/directfb-examples/Config.in b/package/directfb-examples/Config.in
index afd6d6d5a3..51dd288d5a 100644
--- a/package/directfb-examples/Config.in
+++ b/package/directfb-examples/Config.in
@@ -8,9 +8,10 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES
http://directfb.org/downloads/Extras/README.DirectFB-examples
+if BR2_PACKAGE_DIRECTFB_EXAMPLES
+
config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
bool "usr/bin/df_andi"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Penguin demo, press 'space' to form convergence logo,
's'/'d' to spawn/destroy 'a' penguin, 'r' to revive penguin
@@ -18,68 +19,57 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_ANDI
config BR2_PACKAGE_DIRECTFB_EXAMPLES_BLTLOAD
bool "usr/bin/df_bltload"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Reads information from /proc/bltstat.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_CPULOAD
bool "usr/bin/df_cpuload"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
CPU Load with data from /proc/stat.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DATABUFFER
bool "usr/bin/df_databuffer"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Simple test application for data buffers.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DIOLOAD
bool "usr/bin/df_dioload"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Disk IO with data from /proc/stat.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DOK
bool "usr/bin/df_dok"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
DirectFB benchmark application, runs some tests and
displays benchmark results afterwards.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_DRIVERTEST
bool "usr/bin/df_drivertest"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Tool to check drivers for bugs and accuracy.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_FIRE
bool "usr/bin/df_fire"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
The famous fire effect ported to DirectFB (16 bpp only).
config BR2_PACKAGE_DIRECTFB_EXAMPLES_FLIP
bool "usr/bin/df_flip"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Raw Flip() benchmark.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_FONTS
bool "usr/bin/df_fonts"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Takes a list of font files and shows character tables.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_INPUT
bool "usr/bin/df_input"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Test application for input devices.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
bool "usr/bin/df_joystick"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
A colored version of df_particle, fointain can be moved with
joystick. The particles of different colors can be spawned
@@ -87,7 +77,6 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_JOYSTICK
config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
bool "usr/bin/df_knuckles"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
3D skull drawn using triangles that can be rotated using
the mouse. 'Space' switches to wireframe, 'b' toggles
@@ -95,25 +84,21 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_KNUCKLES
config BR2_PACKAGE_DIRECTFB_EXAMPLES_LAYER
bool "usr/bin/df_layer"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Simple videoplayer with layers.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX
bool "usr/bin/df_matrix"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Testing SetMatrix() for free transforms.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_MATRIX_WATER
bool "usr/bin/df_matrix_water"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Same as df_matrix, but using new Water API.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
bool "usr/bin/df_neo"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Port from a gdk-pixbuf demo to DirectFB, uses scaling,
alpha blending and color modulation, use cursor keys and
@@ -121,62 +106,55 @@ config BR2_PACKAGE_DIRECTFB_EXAMPLES_NEO
config BR2_PACKAGE_DIRECTFB_EXAMPLES_NETLOAD
bool "usr/bin/df_netload"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Network statistica from /proc/net/dev.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_PALETTE
bool "usr/bin/df_palette"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
A example blitting from a surface with a
rotating/morphing palette.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_PARTICLE
bool "usr/bin/df_particle"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
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"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Shows porter/duff blending rules.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_STRESS
bool "usr/bin/df_stress"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
help
Stress tests surface manager, for debugging purposes only.
config BR2_PACKAGE_DIRECTFB_EXAMPLES_TEXTURE
bool "usr/bin/df_texture"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
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"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
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"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
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"
- depends on BR2_PACKAGE_DIRECTFB_EXAMPLES
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