diff options
author | eu@felipetonello.com <eu@felipetonello.com> | 2016-07-20 15:24:00 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2016-07-29 11:00:59 +0200 |
commit | 639864337308268996c648d1fc607f54554f59e6 (patch) | |
tree | 7792cf23e3b6b2e6adb41236e9792ced111616c4 /meta-multimedia | |
parent | 3bbc28d7c76cf0a8aab18096420d0b52209103c7 (diff) | |
download | meta-openembedded-639864337308268996c648d1fc607f54554f59e6.tar.gz |
juce: Improved juce class and recipes
This allows recipes that inherits juce class to have more modular
dependencies and change it if necessary.
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-multimedia')
-rw-r--r-- | meta-multimedia/classes/juce.bbclass | 23 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/juce/nativesdk-projucer_git.bb | 1 | ||||
-rw-r--r-- | meta-multimedia/recipes-multimedia/juce/projucer-native_git.bb | 1 |
3 files changed, 19 insertions, 6 deletions
diff --git a/meta-multimedia/classes/juce.bbclass b/meta-multimedia/classes/juce.bbclass index ac97ca348..715282fd1 100644 --- a/meta-multimedia/classes/juce.bbclass +++ b/meta-multimedia/classes/juce.bbclass | |||
@@ -1,12 +1,23 @@ | |||
1 | inherit pkgconfig | 1 | inherit pkgconfig |
2 | 2 | ||
3 | JUCE_X11_DEPS = "libx11 libxext libxinerama libxinerama libxrandr libxcursor freetype" | 3 | JUCE_MODULES ??= " \ |
4 | JUCE_DEPS = " \ | 4 | juce_core \ |
5 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${JUCE_X11_DEPS}', '', d)} \ | 5 | juce_events \ |
6 | alsa-lib \ | 6 | ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'juce_audio_devices', '', d)} \ |
7 | curl \ | 7 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'juce_graphics juce_gui_basics', '', d)} \ |
8 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'juce_opengl', '', d)} \ | ||
8 | " | 9 | " |
9 | DEPENDS_prepend = "projucer-native ${JUCE_DEPS} " | 10 | JUCE_X11_DEPS = "libx11 libxext libxinerama libxrandr libxcursor" |
11 | |||
12 | PACKAGECONFIG_prepend= "${JUCE_MODULES} " | ||
13 | PACKAGECONFIG[juce_core] = ",,curl," | ||
14 | PACKAGECONFIG[juce_events] = ",,libx11," | ||
15 | PACKAGECONFIG[juce_audio_devices] = ",,alsa-lib," | ||
16 | PACKAGECONFIG[juce_graphics] = ",,${JUCE_X11_DEPS} freetype," | ||
17 | PACKAGECONFIG[juce_gui_basics] = ",,${JUCE_X11_DEPS}," | ||
18 | PACKAGECONFIG[juce_opengl] = ",,virtual/libgl," | ||
19 | |||
20 | DEPENDS_prepend = "projucer-native " | ||
10 | 21 | ||
11 | export OE_JUCE_PROJUCER = "${STAGING_BINDIR_NATIVE}/Projucer" | 22 | export OE_JUCE_PROJUCER = "${STAGING_BINDIR_NATIVE}/Projucer" |
12 | 23 | ||
diff --git a/meta-multimedia/recipes-multimedia/juce/nativesdk-projucer_git.bb b/meta-multimedia/recipes-multimedia/juce/nativesdk-projucer_git.bb index 93b23b1b5..7836bae69 100644 --- a/meta-multimedia/recipes-multimedia/juce/nativesdk-projucer_git.bb +++ b/meta-multimedia/recipes-multimedia/juce/nativesdk-projucer_git.bb | |||
@@ -1,2 +1,3 @@ | |||
1 | inherit nativesdk | 1 | inherit nativesdk |
2 | include projucer.inc | 2 | include projucer.inc |
3 | BBCLASSEXTEND = "nativesdk" | ||
diff --git a/meta-multimedia/recipes-multimedia/juce/projucer-native_git.bb b/meta-multimedia/recipes-multimedia/juce/projucer-native_git.bb index b919a7dcb..fb54fb9e9 100644 --- a/meta-multimedia/recipes-multimedia/juce/projucer-native_git.bb +++ b/meta-multimedia/recipes-multimedia/juce/projucer-native_git.bb | |||
@@ -1,2 +1,3 @@ | |||
1 | inherit native | 1 | inherit native |
2 | include projucer.inc | 2 | include projucer.inc |
3 | BBCLASSEXTEND = "native" | ||