summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-08-06 22:01:54 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2010-08-06 22:01:54 +0200
commit5d8a0f6139c52807df889e77d1d91e67ab0abf5e (patch)
treeb465b31c84c2ded82630f64729f7bb703e9dd89a
parent0453b6ecc414d3e36e6f124554f52b4dc30fbf1b (diff)
downloadembtoolkit-5d8a0f6139c52807df889e77d1d91e67ab0abf5e.tar.gz
embtoolkit-5d8a0f6139c52807df889e77d1d91e67ab0abf5e.tar.bz2
embtoolkit-5d8a0f6139c52807df889e77d1d91e67ab0abf5e.tar.xz
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 <awg@embtoolkit.org>
-rw-r--r--packages/graphics/atk/atk.kconfig43
1 files changed, 42 insertions, 1 deletions
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