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.
This commit is contained in:
Marcel Hollerbach 2016-10-27 12:49:55 +02:00
parent 986264c556
commit d896e3efc5
5 changed files with 29 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
/Elementary.h
/Elementary.hh
/Elementary_Options.h
/elm_intro.h
/*.eo.c
/*.eo.h

View File

@ -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
{

View File

@ -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