[gtksourceview/gnome-3-24] Visual Studio builds: Define GTK_SOURCE_COMPILATION



commit a674c23bfe3792bbc43d1a94e885dde9f4e1285d
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=\&quot;GtkSourceView\&quot;;GTK_SOURCE_VERSION_MIN_REQUIRED=GTK_SOURCE_VERSION_3_0"
+               
Value="G_LOG_DOMAIN=\&quot;GtkSourceView\&quot;;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 5d5ca5f..b3be63a 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -405,7 +405,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]