[gtksourceview/gnome-3-22] Visual Studio builds: Define GTK_SOURCE_COMPILATION
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-22] Visual Studio builds: Define GTK_SOURCE_COMPILATION
- Date: Mon, 14 Nov 2016 08:37:00 +0000 (UTC)
commit 284044fd9463a8c281d049cf87ad05ba580d96d6
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Nov 14 16:34:50 2016 +0800
Visual Studio builds: Define GTK_SOURCE_COMPILATION
This avoids some unneeded warnings during the build, and will become a
requirement in the future.
gtksourceview/Makefile.am is updated for generating the complete NMake
snippets for building introspection.
build/win32/vs10/gtksourceview-build-defines.props | 2 +-
.../win32/vs9/gtksourceview-build-defines.vsprops | 2 +-
gtksourceview/Makefile.am | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/build/win32/vs10/gtksourceview-build-defines.props
b/build/win32/vs10/gtksourceview-build-defines.props
index 3f7c41e..9448f8e 100644
--- a/build/win32/vs10/gtksourceview-build-defines.props
+++ b/build/win32/vs10/gtksourceview-build-defines.props
@@ -4,7 +4,7 @@
<Import Project="gtksourceview-version-paths.props" />
</ImportGroup>
<PropertyGroup Label="UserMacros">
-
<GtkSourceBuildDefines>G_LOG_DOMAIN="GtkSourceView";GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0</GtkSourceBuildDefines>
+
<GtkSourceBuildDefines>G_LOG_DOMAIN="GtkSourceView";GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0;GTK_SOURCE_COMPILATION</GtkSourceBuildDefines>
</PropertyGroup>
<PropertyGroup>
<_PropertySheetDisplayName>gtksourceviewbuilddefinesprops</_PropertySheetDisplayName>
diff --git a/build/win32/vs9/gtksourceview-build-defines.vsprops
b/build/win32/vs9/gtksourceview-build-defines.vsprops
index 5d28be3..1b88672 100644
--- a/build/win32/vs9/gtksourceview-build-defines.vsprops
+++ b/build/win32/vs9/gtksourceview-build-defines.vsprops
@@ -21,6 +21,6 @@
/>
<UserMacro
Name="GtkSourceBuildDefines"
-
Value="G_LOG_DOMAIN=\"GtkSourceView\";GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0"
+
Value="G_LOG_DOMAIN=\"GtkSourceView\";GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0;GTK_SOURCE_COMPILATION"
/>
</VisualStudioPropertySheet>
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index b86eccf..2b54f13 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -404,7 +404,7 @@ GtkSource_3_0_gir_MSVC_INCLUDE_GIRS = Gtk-3.0 Gdk-3.0
GtkSource_3_0_gir_MSVC_PACKAGES = gtk+-3.0 gdk-3.0
GtkSource_3_0_gir_MSVC_EXPORT_PACKAGES = gtksourceview-3.0
GtkSource_3_0_gir_MSVC_LIBS = gtksourceview-3.0
-GtkSource_3_0_gir_MSVC_CFLAGS = -I..\\..
+GtkSource_3_0_gir_MSVC_CFLAGS = -I..\\.. -DGTK_SOURCE_COMPILATION
GtkSource_3_0_gir_MSVC_SCANNERFLAGS = \
--c-include=gtksourceview/gtksource.h \
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]