[anjuta] project-wizard: check HavePackage before adding PROJECT_CFLAGS
- From: Sebastien Granjoux <sgranjoux src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [anjuta] project-wizard: check HavePackage before adding PROJECT_CFLAGS
- Date: Sat, 24 Dec 2011 09:37:44 +0000 (UTC)
commit 71f49eb480d887589cfe697de0d7a9138de6b9e7
Author: Arnel A. Borja <kyoushuu yahoo com>
Date: Sat Dec 24 13:36:38 2011 +0800
project-wizard: check HavePackage before adding PROJECT_CFLAGS
.../templates/gtk/src/Makefile.am.tpl | 4 ++--
.../templates/gtkapplication/src/Makefile.am.tpl | 4 ++--
.../templates/gtkmm/src/Makefile.am.tpl | 4 ++--
.../templates/vala-gtk/src/Makefile.am.tpl | 4 ++--
4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plugins/project-wizard/templates/gtk/src/Makefile.am.tpl b/plugins/project-wizard/templates/gtk/src/Makefile.am.tpl
index 0741903..d01c41c 100644
--- a/plugins/project-wizard/templates/gtk/src/Makefile.am.tpl
+++ b/plugins/project-wizard/templates/gtk/src/Makefile.am.tpl
@@ -11,8 +11,8 @@ ui_DATA = [+NameHLower+].ui
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
- $([+NameCUpper+]_CFLAGS)
+ -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\"[+IF (=(get "HavePackage") "1")+] \
+ $([+NameCUpper+]_CFLAGS)[+ENDIF+]
AM_CFLAGS =\
-Wall\
diff --git a/plugins/project-wizard/templates/gtkapplication/src/Makefile.am.tpl b/plugins/project-wizard/templates/gtkapplication/src/Makefile.am.tpl
index 5a59ded..fbd5dcf 100644
--- a/plugins/project-wizard/templates/gtkapplication/src/Makefile.am.tpl
+++ b/plugins/project-wizard/templates/gtkapplication/src/Makefile.am.tpl
@@ -11,8 +11,8 @@ ui_DATA = [+NameHLower+].ui
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
- $([+NameCUpper+]_CFLAGS)
+ -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\"[+IF (=(get "HavePackage") "1")+] \
+ $([+NameCUpper+]_CFLAGS)[+ENDIF+]
AM_CFLAGS =\
-Wall\
diff --git a/plugins/project-wizard/templates/gtkmm/src/Makefile.am.tpl b/plugins/project-wizard/templates/gtkmm/src/Makefile.am.tpl
index 02846ea..079c1a8 100644
--- a/plugins/project-wizard/templates/gtkmm/src/Makefile.am.tpl
+++ b/plugins/project-wizard/templates/gtkmm/src/Makefile.am.tpl
@@ -11,8 +11,8 @@ ui_DATA = [+NameHLower+].ui
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
- $([+NameCUpper+]_CFLAGS)
+ -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\"[+IF (=(get "HavePackage") "1")+] \
+ $([+NameCUpper+]_CFLAGS)[+ENDIF+]
AM_CFLAGS =\
-Wall\
diff --git a/plugins/project-wizard/templates/vala-gtk/src/Makefile.am.tpl b/plugins/project-wizard/templates/vala-gtk/src/Makefile.am.tpl
index dab5bf0..b8f89f9 100644
--- a/plugins/project-wizard/templates/vala-gtk/src/Makefile.am.tpl
+++ b/plugins/project-wizard/templates/vala-gtk/src/Makefile.am.tpl
@@ -11,8 +11,8 @@ ui_DATA = [+NameHLower+].ui
AM_CPPFLAGS = \
-DPACKAGE_LOCALE_DIR=\""$(localedir)"\" \
-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
- -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\" \
- $([+NameCUpper+]_CFLAGS)
+ -DPACKAGE_DATA_DIR=\""$(pkgdatadir)"\"[+IF (=(get "HavePackage") "1")+] \
+ $([+NameCUpper+]_CFLAGS)[+ENDIF+]
AM_CFLAGS =\
-Wall\
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]