Skip to contentSkip to conversation

package/efl: enable Eolian languages bindings

PATCH Superseded Romain Naour 2 participants 4 messages Jul 17, 2016 – Jul 18, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/efl: enable Eolian languages bindings

Eolian languages bindings needs C++11, so we needs at least a gcc 4.8 for the host and target variant.
The C++11 support with gcc 4.7 is not sufficient.

Build eolian_cxx for the host only if Eolian support for the target is selected.

---
 package/efl/Config.in |  8 ++++++++
 package/efl/efl.mk    | 21 ++++++++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)
package/efl/Config.in +8 -0
index ee1a39d..f73700d 100644
@@ -121,6 +121,14 @@ config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
 comment "Warning: one of the recommended option for EFL is not enabled"
 	depends on !BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
 
+config BR2_PACKAGE_EFL_EOLIAN
+	bool "Enable Eolian"
+	depends on BR2_HOST_GCC_AT_LEAST_4_8 # Eolian (host) needs C++11
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # Eolian needs C++11
+
+comment "Eolian needs host and target gcc >= 4.8"
+	depends on !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
 comment "libecore video support"
 
 config BR2_PACKAGE_EFL_FB
package/efl/efl.mk +16 -5
index fd06246..0ae11b2 100644
@@ -23,7 +23,6 @@ EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 	jpeg luajit udev util-linux zlib
 
 # Configure options:
-# --disable-cxx-bindings: disable C++11 bindings.
 # --disable-lua-old: build elua for the target.
 # --disable-sdl: disable sdl2 support.
 # --disable-systemd: disable systemd support.
@@ -32,8 +31,8 @@ EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 EFL_CONF_OPTS = \
 	--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
 	--with-elua=$(HOST_DIR)/usr/bin/elua \
+	--with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx \
 	--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
-	--disable-cxx-bindings \
 	--disable-lua-old \
 	--disable-sdl \
 	--disable-systemd \
@@ -45,6 +44,12 @@ ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG),)
 EFL_CONF_OPTS += --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
 endif
 
+ifeq ($(BR2_PACKAGE_EFL_EOLIAN),y)
+EFL_CONF_OPTS += --enable-cxx-bindings
+else
+EFL_CONF_OPTS += --disable-cxx-bindings
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
 EFL_DEPENDENCIES += util-linux
 EFL_CONF_OPTS += --enable-libmount
@@ -216,7 +221,7 @@ $(eval $(autotools-package))
 ################################################################################
 
 # We want to build only some host tools used later in the build.
-# Actually we want: edje_cc, embryo_cc and eet.
+# Actually we want: edje_cc, eet, embryo_cc and eolian_cxx.
 
 # Host dependencies:
 # * host-dbus: for Eldbus
@@ -234,9 +239,16 @@ HOST_EFL_DEPENDENCIES = \
 	host-luajit \
 	host-zlib
 
+# Enable Eolian language bindings to provide eolian_cxx tool for the host which
+# is required to build Eolian language bindings for the target.
+ifeq ($(BR2_PACKAGE_EFL_EOLIAN),y)
+HOST_EFL_CONF_OPTS += --enable-cxx-bindings
+else
+HOST_EFL_CONF_OPTS += --disable-cxx-bindings
+endif
+
 # Configure options:
 # --disable-audio, --disable-multisense remove libsndfile dependency.
-# --disable-cxx-bindings: disable C++11 bindings.
 # --disable-fontconfig: remove dependency on fontconfig.
 # --disable-fribidi: remove dependency on libfribidi.
 # --disable-gstreamer1: remove dependency on gtreamer 1.0.
@@ -251,7 +263,6 @@ HOST_EFL_DEPENDENCIES = \
 #   Yes I really know what I am doing.
 HOST_EFL_CONF_OPTS += \
 	--disable-audio \
-	--disable-cxx-bindings \
 	--disable-fontconfig \
 	--disable-fribidi \
 	--disable-gstreamer1 \
Signature · 1 line
2.5.5
#1 lore raw

PATCH 2/2 package/elementary: add path to eolian_cxx

When efl package is build with Eolian support, eolian_cxx tool is build for the host.

---
 package/elementary/elementary.mk | 2 ++
 1 file changed, 2 insertions(+)
package/elementary/elementary.mk +2 -0
index 33d4034..dfd296e 100644
@@ -18,6 +18,7 @@ ELEMENTARY_CONF_OPTS = \
 	--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
 	--with-eet-eet=$(HOST_DIR)/usr/bin/eet \
 	--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
+	--with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx \
 	--with-eldbus_codegen=$(HOST_DIR)/usr/bin/eldbus-codegen \
 	--with-elm-prefs-cc=$(HOST_DIR)/usr/bin/elm_prefs_cc \
 	--with-doxygen=no \
@@ -30,6 +31,7 @@ HOST_ELEMENTARY_CONF_OPTS = \
 	--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
 	--with-eet-eet=$(HOST_DIR)/usr/bin/eet \
 	--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
+	--with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx \
 	--with-doxygen=no \
 	--disable-elementary-test
 
Signature · 1 line
2.5.5
#2 lore raw

PATCH 1/2 package/efl: enable Eolian languages bindings

In reply to Romain Naour

Romain, All,

On 2016-07-17 22:22 +0200, Romain Naour spake thusly:

Quoted 18 lines

Eolian languages bindings needs C++11, so we needs at least a gcc 4.8 for the host and target variant.
The C++11 support with gcc 4.7 is not sufficient.

Build eolian_cxx for the host only if Eolian support for the target is selected.

---
 package/efl/Config.in |  8 ++++++++
 package/efl/efl.mk    | 21 ++++++++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)
package/efl/Config.in +0 -0
index ee1a39d..f73700d 100644

package/efl/Config.in config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG · line 127

Quoted 7 lines
package/efl/Config.in +4 -0
@@ -121,6 +121,14 @@ config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
 comment "Warning: one of the recommended option for EFL is not enabled"
 	depends on !BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
 
+config BR2_PACKAGE_EFL_EOLIAN
+	bool "Enable Eolian"
+	depends on BR2_HOST_GCC_AT_LEAST_4_8 # Eolian (host) needs C++11
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # Eolian needs C++11

Maybe a little help text to explain what Eolian is? ;-)

Quoted 19 lines
package/efl/Config.in +3 -0
+comment "Eolian needs host and target gcc >= 4.8"
+	depends on !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
 comment "libecore video support"
 
 config BR2_PACKAGE_EFL_FB
package/efl/efl.mk +0 -1
index fd06246..0ae11b2 100644
@@ -23,7 +23,6 @@ EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 	jpeg luajit udev util-linux zlib
 
 # Configure options:
-# --disable-cxx-bindings: disable C++11 bindings.
 # --disable-lua-old: build elua for the target.
 # --disable-sdl: disable sdl2 support.
 # --disable-systemd: disable systemd support.

package/efl/efl.mk EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \ · line 34

Quoted 4 lines
package/efl/efl.mk +1 -0
@@ -32,8 +31,8 @@ EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 EFL_CONF_OPTS = \
 	--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
 	--with-elua=$(HOST_DIR)/usr/bin/elua \
+	--with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx \

Maybe this should go...

package/efl/efl.mk ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG),) · line 48

Quoted 11 lines
package/efl/efl.mk +2 -1
 	--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
-	--disable-cxx-bindings \
 	--disable-lua-old \
 	--disable-sdl \
 	--disable-systemd \
@@ -45,6 +44,12 @@ ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG),)
 EFL_CONF_OPTS += --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
 endif
 
+ifeq ($(BR2_PACKAGE_EFL_EOLIAN),y)
+EFL_CONF_OPTS += --enable-cxx-bindings

... here?

package/efl/efl.mk $(eval $(autotools-package)) · line 224

Quoted 13 lines
package/efl/efl.mk +5 -1
+else
+EFL_CONF_OPTS += --disable-cxx-bindings
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
 EFL_DEPENDENCIES += util-linux
 EFL_CONF_OPTS += --enable-libmount
@@ -216,7 +221,7 @@ $(eval $(autotools-package))
 ################################################################################
 
 # We want to build only some host tools used later in the build.
-# Actually we want: edje_cc, embryo_cc and eet.
+# Actually we want: edje_cc, eet, embryo_cc and eolian_cxx.

Nit: eolian_cxx is only needed when Eolian support is enabled.

Regards,
Yann E. MORIN.

Quoted 35 lines
package/efl/efl.mk +8 -2
 # Host dependencies:
 # * host-dbus: for Eldbus
@@ -234,9 +239,16 @@ HOST_EFL_DEPENDENCIES = \
 	host-luajit \
 	host-zlib
 
+# Enable Eolian language bindings to provide eolian_cxx tool for the host which
+# is required to build Eolian language bindings for the target.
+ifeq ($(BR2_PACKAGE_EFL_EOLIAN),y)
+HOST_EFL_CONF_OPTS += --enable-cxx-bindings
+else
+HOST_EFL_CONF_OPTS += --disable-cxx-bindings
+endif
+
 # Configure options:
 # --disable-audio, --disable-multisense remove libsndfile dependency.
-# --disable-cxx-bindings: disable C++11 bindings.
 # --disable-fontconfig: remove dependency on fontconfig.
 # --disable-fribidi: remove dependency on libfribidi.
 # --disable-gstreamer1: remove dependency on gtreamer 1.0.
@@ -251,7 +263,6 @@ HOST_EFL_DEPENDENCIES = \
 #   Yes I really know what I am doing.
 HOST_EFL_CONF_OPTS += \
 	--disable-audio \
-	--disable-cxx-bindings \
 	--disable-fontconfig \
 	--disable-fribidi \
 	--disable-gstreamer1 \
Signature · 6 lines
2.5.5

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH 1/2 package/efl: enable Eolian languages bindings

Hi Yann, All,

Le 17/07/2016 ? 23:13, Yann E. MORIN a ?crit :

Quoted 24 lines

Romain, All,

On 2016-07-17 22:22 +0200, Romain Naour spake thusly:

Quoted 21 lines

Eolian languages bindings needs C++11, so we needs at least a gcc 4.8 for the host and target variant.
The C++11 support with gcc 4.7 is not sufficient.

Build eolian_cxx for the host only if Eolian support for the target is selected.

---
 package/efl/Config.in |  8 ++++++++
 package/efl/efl.mk    | 21 ++++++++++++++++-----
 2 files changed, 24 insertions(+), 5 deletions(-)
package/efl/Config.in +0 -0
index ee1a39d..f73700d 100644
@@ -121,6 +121,14 @@ config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
 comment "Warning: one of the recommended option for EFL is not enabled"
 	depends on !BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG
 
Quoted 6 lines

package/efl/Config.in config BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG · line 127

Quoted 4 lines
package/efl/Config.in +4 -0
+config BR2_PACKAGE_EFL_EOLIAN
+	bool "Enable Eolian"
+	depends on BR2_HOST_GCC_AT_LEAST_4_8 # Eolian (host) needs C++11
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # Eolian needs C++11

Maybe a little help text to explain what Eolian is? ;-)

ok

Quoted 36 lines
Quoted 20 lines
package/efl/Config.in +3 -0
+comment "Eolian needs host and target gcc >= 4.8"
+	depends on !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+
 comment "libecore video support"
 
 config BR2_PACKAGE_EFL_FB
package/efl/efl.mk +0 -1
index fd06246..0ae11b2 100644
@@ -23,7 +23,6 @@ EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 	jpeg luajit udev util-linux zlib
 
 # Configure options:
-# --disable-cxx-bindings: disable C++11 bindings.
 # --disable-lua-old: build elua for the target.
 # --disable-sdl: disable sdl2 support.
 # --disable-systemd: disable systemd support.

package/efl/efl.mk EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \ · line 34

Quoted 4 lines
package/efl/efl.mk +1 -0
@@ -32,8 +31,8 @@ EFL_DEPENDENCIES = host-pkgconf host-efl host-luajit dbus freetype \
 EFL_CONF_OPTS = \
 	--with-edje-cc=$(HOST_DIR)/usr/bin/edje_cc \
 	--with-elua=$(HOST_DIR)/usr/bin/elua \
+	--with-eolian-cxx=$(HOST_DIR)/usr/bin/eolian_cxx \

Maybe this should go...

Quoted 9 lines
package/efl/efl.mk +0 -1
 	--with-eolian-gen=$(HOST_DIR)/usr/bin/eolian_gen \
-	--disable-cxx-bindings \
 	--disable-lua-old \
 	--disable-sdl \
 	--disable-systemd \
@@ -45,6 +44,12 @@ ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG),)
 EFL_CONF_OPTS += --enable-i-really-know-what-i-am-doing-and-that-this-will-probably-break-things-and-i-will-fix-them-myself-and-send-patches-abb
 endif
 
Quoted 4 lines

package/efl/efl.mk ifeq ($(BR2_PACKAGE_EFL_HAS_RECOMMENDED_CONFIG),) · line 48

Quoted 2 lines
package/efl/efl.mk +2 -0
+ifeq ($(BR2_PACKAGE_EFL_EOLIAN),y)
+EFL_CONF_OPTS += --enable-cxx-bindings

... here?

Ok, also I should do so for elementary etc.

Quoted 11 lines
Quoted 11 lines
package/efl/efl.mk +4 -0
+else
+EFL_CONF_OPTS += --disable-cxx-bindings
+endif
+
 ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
 EFL_DEPENDENCIES += util-linux
 EFL_CONF_OPTS += --enable-libmount
@@ -216,7 +221,7 @@ $(eval $(autotools-package))
 ################################################################################
 
Quoted 5 lines

package/efl/efl.mk $(eval $(autotools-package)) · line 224

Quoted 3 lines
package/efl/efl.mk +1 -1
 # We want to build only some host tools used later in the build.
-# Actually we want: edje_cc, embryo_cc and eet.
+# Actually we want: edje_cc, eet, embryo_cc and eolian_cxx.

Nit: eolian_cxx is only needed when Eolian support is enabled.

Will fix.

Thanks,
Romain

Quoted 40 lines

Regards,
Yann E. MORIN.

Quoted 35 lines
package/efl/efl.mk +8 -2
 # Host dependencies:
 # * host-dbus: for Eldbus
@@ -234,9 +239,16 @@ HOST_EFL_DEPENDENCIES = \
 	host-luajit \
 	host-zlib
 
+# Enable Eolian language bindings to provide eolian_cxx tool for the host which
+# is required to build Eolian language bindings for the target.
+ifeq ($(BR2_PACKAGE_EFL_EOLIAN),y)
+HOST_EFL_CONF_OPTS += --enable-cxx-bindings
+else
+HOST_EFL_CONF_OPTS += --disable-cxx-bindings
+endif
+
 # Configure options:
 # --disable-audio, --disable-multisense remove libsndfile dependency.
-# --disable-cxx-bindings: disable C++11 bindings.
 # --disable-fontconfig: remove dependency on fontconfig.
 # --disable-fribidi: remove dependency on libfribidi.
 # --disable-gstreamer1: remove dependency on gtreamer 1.0.
@@ -251,7 +263,6 @@ HOST_EFL_DEPENDENCIES = \
 #   Yes I really know what I am doing.
 HOST_EFL_CONF_OPTS += \
 	--disable-audio \
-	--disable-cxx-bindings \
 	--disable-fontconfig \
 	--disable-fribidi \
 	--disable-gstreamer1 \
Signature · 6 lines
2.5.5

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot