From 5d8a0f6139c52807df889e77d1d91e67ab0abf5e Mon Sep 17 00:00:00 2001 From: Abdoulaye Walsimou Gaye Date: Fri, 6 Aug 2010 22:01:54 +0200 Subject: Packages: atk: Allow selection of atk version >= atk-x.y.z internally Some packages may need to select atk version >= atk-x.y.z, notably gtk+. This is the first package, in Embtk, which supports this kind of versions selection, so the version selection logic may need improvement in the future. Signed-off-by: Abdoulaye Walsimou Gaye --- packages/graphics/atk/atk.kconfig | 43 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/packages/graphics/atk/atk.kconfig b/packages/graphics/atk/atk.kconfig index 2d62fb1..3ca9fd3 100644 --- a/packages/graphics/atk/atk.kconfig +++ b/packages/graphics/atk/atk.kconfig @@ -29,16 +29,57 @@ config EMBTK_HAVE_ATK GNOME Accessibility is the suite of software services and support in GNOME that allows people with disabilities to utilize all of the functionality of the GNOME user environment. + +# atk versions selection helpers symbols +config EMBTK_ATK_VERSION_1_32_X_AND_GREATER + bool + help + Equal or greater than atk-1.32.x + Note: this version does not exist yet. It is only here for + reference for versions selection logic +config EMBTK_ATK_VERSION_1_30_X_AND_GREATER + bool + help + Equal or greater than atk-1.30.x +config EMBTK_ATK_VERSION_1_28_X_AND_GREATER + bool + help + Equal or greater than atk-1.28.x + +config EMBTK_ATK_VERSION_1_32_X + bool + default y if EMBTK_ATK_VERSION_1_32_X_AND_GREATER +config EMBTK_ATK_VERSION_1_30_X + bool + default y if EMBTK_ATK_VERSION_1_30_X_AND_GREATER + select EMBTK_ATK_VERSION_1_32_X +config EMBTK_ATK_VERSION_1_28_X + bool + default y if EMBTK_ATK_VERSION_1_28_X_AND_GREATER + select EMBTK_ATK_VERSION_1_30_X + +# Select all of these versions if none selected +config EMBTK_ATK_VERSION_ALL + bool + default y if \ + !EMBTK_ATK_VERSION_1_32_X_AND_GREATER && \ + !EMBTK_ATK_VERSION_1_30_X_AND_GREATER && \ + !EMBTK_ATK_VERSION_1_28_X_AND_GREATER + select EMBTK_ATK_VERSION_1_28_X + +# atk version selectable upon above selection logic choice prompt "atk version you wish" depends on EMBTK_HAVE_ATK help - Here you can choose which version of atk you want to use. + Here you can choose which version of atk you want to use. config EMBTK_ATK_VERSION_1_30_0 bool "atk-1.30.0" + depends on EMBTK_ATK_VERSION_1_30_X config EMBTK_ATK_VERSION_1_28_0 bool "atk-1.28.0" + depends on EMBTK_ATK_VERSION_1_28_X endchoice config EMBTK_ATK_MAJOR_VERSION_STRING -- cgit v1.2.3