While doing this, i noticed that there is ELM_EMAP, which is statically
disabled. What is this? And is it still needed?

Greetings
   bu5hm4n

On Thu, Oct 27, 2016 at 04:27:51AM -0700, Marcel Hollerbach wrote:
> bu5hm4n pushed a commit to branch master.
> 
> http://git.enlightenment.org/core/efl.git/commit/?id=d896e3efc542c66a651c1ba0e84f3d692981b89c
> 
> commit d896e3efc542c66a651c1ba0e84f3d692981b89c
> Author: Marcel Hollerbach <marcel-hollerb...@t-online.de>
> Date:   Thu Oct 27 12:49:55 2016 +0200
> 
>     elementary: split up the build options from the main header
>     
>     This splits up the definitions from the buildtool into a seperated file
>     called Elementary_Options.h.
>     Reason for that is, that every single time when someone adds or changes
>     something in Elementary.h.in you need to rerun configure, to get the new
>     up to date Elementary.h file. With this commit you have a static none
>     generated Elementary.h file and the Elementary_Options.h file, which
>     will be regenerated when platform things are changing.
>     
>     The version of elementary is now defined as the version of efl, since
>     they are always the same. So we dont need to generate a seperated
>     version field.
> ---
>  configure.ac                                       |  2 +-
>  src/Makefile_Elementary.am                         |  3 ++-
>  src/lib/elementary/.gitignore                      |  2 +-
>  .../elementary/{Elementary.h.in => Elementary.h}   | 22 
> +++++-----------------
>  src/lib/elementary/Elementary_Options.h.in         | 20 ++++++++++++++++++++
>  5 files changed, 29 insertions(+), 20 deletions(-)
> 
> diff --git a/configure.ac b/configure.ac
> index d90b516..1a85080 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -5790,7 +5790,7 @@ src/examples/elementary/Makefile
>  src/lib/eina/eina_config.h
>  src/lib/ecore_x/ecore_x_version.h
>  src/lib/efl/Efl_Config.h
> -src/lib/elementary/Elementary.h
> +src/lib/elementary/Elementary_Options.h
>  src/scripts/eo/eo_debug
>  elm_intro.h
>  spec/efl.spec
> diff --git a/src/Makefile_Elementary.am b/src/Makefile_Elementary.am
> index 44d344c..fec21c2 100644
> --- a/src/Makefile_Elementary.am
> +++ b/src/Makefile_Elementary.am
> @@ -188,6 +188,7 @@ lib_LTLIBRARIES += lib/elementary/libelementary.la
>  
>  includes_HEADERS = \
>  lib/elementary/Elementary.h \
> +lib/elementary/Elementary_Options.h \
>  lib/elementary/Elementary_Cursor.h
>  includesdir = $(includedir)/elementary-@VMAJ@
>  
> @@ -1359,7 +1360,7 @@ endif
>  EXTRA_DIST2 += \
>  tests/elementary/elm_suite.h \
>  tests/elementary/elm_test_helper.h \
> -lib/elementary/Elementary.h.in \
> +lib/elementary/Elementary_Options.h.in \
>  lib/elementary/elm_code_widget_text.c \
>  lib/elementary/elm_code_widget_undo.c
>  
> diff --git a/src/lib/elementary/.gitignore b/src/lib/elementary/.gitignore
> index 0015d39..089c32d 100644
> --- a/src/lib/elementary/.gitignore
> +++ b/src/lib/elementary/.gitignore
> @@ -1,5 +1,5 @@
> -/Elementary.h
>  /Elementary.hh
> +/Elementary_Options.h
>  /elm_intro.h
>  /*.eo.c
>  /*.eo.h
> diff --git a/src/lib/elementary/Elementary.h.in 
> b/src/lib/elementary/Elementary.h
> similarity index 93%
> rename from src/lib/elementary/Elementary.h.in
> rename to src/lib/elementary/Elementary.h
> index 9438641..9de8202 100644
> --- a/src/lib/elementary/Elementary.h.in
> +++ b/src/lib/elementary/Elementary.h
> @@ -7,21 +7,8 @@
>  #ifndef ELEMENTARY_H
>  #define ELEMENTARY_H
>  
> -#define ELM_ELDBUS
> -#define ELM_EFREET
> -#define ELM_ETHUMB
> -
> -@ELM_UNIX_DEF@ ELM_UNIX
> -@ELM_WIN32_DEF@ ELM_WIN32
> -#undef ELM_EMAP
> -@ELM_DEBUG_DEF@ ELM_DEBUG
> -@ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
> -@ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
> -@ELM_DIRENT_H_DEF@ ELM_DIRENT_H
> -
> -#ifdef EFL_BETA_API_SUPPORT
> -# define ELM_ELOCATION
> -#endif
> +/* Options which can be enabled or disabled by the buildtool */
> +#include "Elementary_Options.h"
>  
>  /* Standard headers for standard system calls etc. */
>  #include <stdio.h>
> @@ -83,6 +70,7 @@
>  #include <Efreet_Mime.h>
>  #include <Efreet_Trash.h>
>  #include <Ethumb_Client.h>
> +#include <Efl.h>
>  
>  #ifdef ELM_ELOCATION
>  #include <Elocation.h>
> @@ -135,8 +123,8 @@ extern "C"
>  #include <elm_getting_started.h>
>  #include <elm_authors.h>
>  
> -#define ELM_VERSION_MAJOR @EFL_VERSION_MAJOR@
> -#define ELM_VERSION_MINOR @EFL_VERSION_MINOR@
> +#define ELM_VERSION_MAJOR EFL_VERSION_MAJOR
> +#define ELM_VERSION_MINOR EFL_VERSION_MINOR
>  
>  typedef struct _Elm_Version
>  {
> diff --git a/src/lib/elementary/Elementary_Options.h.in 
> b/src/lib/elementary/Elementary_Options.h.in
> new file mode 100644
> index 0000000..a52444d
> --- /dev/null
> +++ b/src/lib/elementary/Elementary_Options.h.in
> @@ -0,0 +1,20 @@
> +#ifndef ELEMENTARY_OPTIONS_H
> +#define ELEMENTARY_OPTIONS_H
> +
> +#define ELM_ELDBUS
> +#define ELM_EFREET
> +#define ELM_ETHUMB
> +
> +@ELM_UNIX_DEF@ ELM_UNIX
> +@ELM_WIN32_DEF@ ELM_WIN32
> +#undef ELM_EMAP
> +@ELM_DEBUG_DEF@ ELM_DEBUG
> +@ELM_ALLOCA_H_DEF@ ELM_ALLOCA_H
> +@ELM_LIBINTL_H_DEF@ ELM_LIBINTL_H
> +@ELM_DIRENT_H_DEF@ ELM_DIRENT_H
> +
> +#ifdef EFL_BETA_API_SUPPORT
> +# define ELM_ELOCATION
> +#endif
> +
> +#endif
> 
> -- 
> 
> 

------------------------------------------------------------------------------
The Command Line: Reinvented for Modern Developers
Did the resurgence of CLI tooling catch you by surprise?
Reconnect with the command line and become more productive. 
Learn the new .NET and ASP.NET CLI. Get your free copy!
http://sdm.link/telerik
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to