35eaed8d07
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>
62 lines
1.4 KiB
Plaintext
62 lines
1.4 KiB
Plaintext
config BR2_PACKAGE_SDL_IMAGE
|
|
bool "SDL_image"
|
|
depends on BR2_PACKAGE_SDL
|
|
help
|
|
SDL_image is an image file loading library. It loads images
|
|
as SDL surfaces, and supports the following formats:
|
|
BMP, GIF, JPEG, LBM, PCX, PNG, PNM, TGA, TIFF, XCF, XPM, XV.
|
|
|
|
http://www.libsdl.org/projects/SDL_image/
|
|
|
|
if BR2_PACKAGE_SDL_IMAGE
|
|
|
|
menu "SDL_image file format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_BMP
|
|
bool "enable BMP file format support"
|
|
default y
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_GIF
|
|
bool "enable GIF file format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_JPEG
|
|
bool "enable JPEG file format support"
|
|
select BR2_PACKAGE_JPEG
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_LBM
|
|
bool "enable LBM file format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_PCX
|
|
bool "enable PCX file format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_PNG
|
|
bool "enable PNG file format support"
|
|
select BR2_PACKAGE_LIBPNG
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_PNM
|
|
bool "enable PNM file format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_TARGA
|
|
bool "enable TARGA format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_TIFF
|
|
bool "enable TIFF file format support"
|
|
select BR2_PACKAGE_TIFF
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_WEBP
|
|
bool "enable WEBP file format support"
|
|
select BR2_PACKAGE_WEBP
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_XCF
|
|
bool "enable XCF file format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_XPM
|
|
bool "enable XPM format support"
|
|
|
|
config BR2_PACKAGE_SDL_IMAGE_XV
|
|
bool "enable XV file format support"
|
|
|
|
endmenu
|
|
|
|
endif
|