Permalink
Browse files

include ImageMenuItem in the build

defind GTK_2_16, as it's only supported on gtk>2.16
  • Loading branch information...
1 parent 2aee6e0 commit 0d4132a386868b623a14e1e2d1f4c335107cb123 @StephaneDelcroix StephaneDelcroix committed Sep 21, 2009
Showing with 9 additions and 1 deletion.
  1. +2 −1 Makefile.am
  2. +7 −0 configure.ac
View
@@ -6,6 +6,7 @@ GTK_SRCS = \
$(srcdir)/Gtk.Sources/Dialog.cs \
$(srcdir)/Gtk.Sources/Global.cs \
$(srcdir)/Gtk.Sources/Image.cs \
+ $(srcdir)/Gtk.Sources/ImageMenuItem.cs \
$(srcdir)/Gtk.Sources/Widget.cs
GTK_CUSTOMS = \
@@ -55,7 +56,7 @@ gtk_generated/Builder.cs: gtk-api.xml gtkbeans-api.xml $(GTK_CUSTOMS)
gtk-sharp-beans.dll: $(srcdir)/gtk_generated/Builder.cs $(SRCS)
@echo -e "\n*** Building $@"
- $(CSC) -target:library -out:$@ $(UNSAFE) $(DEBUG) $(ASSEMBLIES) $(SRCS) $(srcdir)/gtk_generated/*.cs
+ $(CSC) -target:library -out:$@ $(CSC_DEFINES) $(UNSAFE) $(DEBUG) $(ASSEMBLIES) $(SRCS) $(srcdir)/gtk_generated/*.cs
install-data-local: gtk-sharp-beans.dll
@echo -e "\n*** Installing $< into the GAC"
View
@@ -24,6 +24,13 @@ PKG_CHECK_MODULES(GLIBSHARP, glib-sharp-2.0 >= 2.12)
PKG_CHECK_MODULES(GIOSHARP, gio-sharp-2.0 >= 2.13.92)
PKG_CHECK_MODULES(GAPI, gapi-2.0 >= 2.12.0)
+CSC_DEFINES=""
+if pkg-config --atleast-version=2.16 gtk+-2.0; then
+ CSC_DEFINES="$CSC_DEFINES -d:GTK_2_16"
+fi
+
+AC_SUBST(CSC_DEFINES)
+
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
LIB_SUFFIX=.dylib

0 comments on commit 0d4132a

Please sign in to comment.