Makefiles: ELEMENTARY_BUILD is only defined on windows, no need to check.
authorVincent Torri <vincent dot torri at gmail dot com>
Fri, 29 Aug 2014 17:32:33 +0000 (19:32 +0200)
committerTom Hacohen <tom@stosb.com>
Tue, 2 Sep 2014 09:29:50 +0000 (10:29 +0100)
Use ELEMENTARY_BUILD in CPP flags as it will be used only on Windows anyway.

src/edje_externals/Makefile.am
src/lib/Makefile.am
src/modules/access_output/Makefile.am
src/modules/datetime_input_ctxpopup/Makefile.am
src/modules/prefs/Makefile.am
src/modules/test_entry/Makefile.am
src/modules/test_map/Makefile.am

index 8357b73..59c61de 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
 -I$(top_builddir)/src/lib \
 -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -19,10 +20,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_WAYLAND_CFLAGS@ \
 @ELEMENTARY_DRM_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 pkgdir = $(libdir)/edje/modules/elm/$(MODULE_EDJE)
 pkg_LTLIBRARIES = module.la
 
index 4b4ca84..3038a71 100644 (file)
@@ -22,6 +22,7 @@ AM_CPPFLAGS = \
 -DLOCALE_DIR=\"$(localedir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
 -DICON_DIR=\"$(datadir)/icons\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -34,10 +35,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_WAYLAND_CFLAGS@ \
 @ELEMENTARY_DRM_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 lib_LTLIBRARIES = libelementary.la
 
 includes_HEADERS = \
index 7290690..cfd9646 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
 -I$(top_builddir)/src/lib \
 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -20,10 +21,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_EMAP_CFLAGS@ \
 @ELEMENTARY_WAYLAND_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 pkgdir = $(libdir)/elementary/modules/access_output/$(MODULE_ARCH)
 pkg_LTLIBRARIES = module.la
 
index 3fe00e2..ddf10b5 100644 (file)
@@ -10,6 +10,7 @@ AM_CPPFLAGS = \
 -I$(top_builddir)/src/lib \
 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -23,10 +24,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_EMAP_CFLAGS@ \
 @ELEMENTARY_DRM_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 pkgdir = $(libdir)/elementary/modules/datetime_input_ctxpopup/$(MODULE_ARCH)
 pkg_LTLIBRARIES = module.la
 
index d53f1d2..49239c3 100644 (file)
@@ -22,6 +22,7 @@ AM_CPPFLAGS = \
 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
 -DLOCALE_DIR=\"$(localedir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -32,10 +33,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_EMAP_CFLAGS@ \
 @ELEMENTARY_WAYLAND_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 pkgdir = $(libdir)/elementary/modules/prefs/$(MODULE_ARCH)
 pkg_LTLIBRARIES = module.la
 
index bf191b8..167f660 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
 -I$(top_builddir)/src/lib \
 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -20,10 +21,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_EMAP_CFLAGS@ \
 @ELEMENTARY_WAYLAND_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 pkgdir = $(libdir)/elementary/modules/test_entry/$(MODULE_ARCH)
 pkg_LTLIBRARIES = module.la
 
index 260cd59..01a1fa0 100644 (file)
@@ -9,6 +9,7 @@ AM_CPPFLAGS = \
 -I$(top_builddir)/src/lib \
 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DELEMENTARY_BUILD \
 @ELEMENTARY_CFLAGS@ \
 @ELEMENTARY_X_CFLAGS@ \
 @ELEMENTARY_FB_CFLAGS@ \
@@ -20,10 +21,6 @@ AM_CPPFLAGS = \
 @ELEMENTARY_EMAP_CFLAGS@ \
 @ELEMENTARY_WAYLAND_CFLAGS@
 
-if ELEMENTARY_WINDOWS_BUILD
-AM_CPPFLAGS += -DELEMENTARY_BUILD
-endif
-
 pkgdir = $(libdir)/elementary/modules/test_map/$(MODULE_ARCH)
 pkg_LTLIBRARIES = module.la