[gtk+] MSVC Projects: "Generate" the gtk-inspector Projects



commit 61b9bcf1d528bc02af62fb8336d5dfa7016dc591
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Tue Jun 3 17:03:40 2014 +0800

    MSVC Projects: "Generate" the gtk-inspector Projects
    
    Like the GDK and GTK portions, use autotools scripts to generate the
    complete projects for gtk-inspector as sources there seem to change from
    time to time.
    
    It might be so that this, like the a11y sources, will be referenced from
    the main Makefile.am of GTK directly, but just do this so that the
    projects can build properly.

 build/win32/vs10/Makefile.am                       |    2 +
 build/win32/vs10/gtk-inspector.vcxproj.filters     |   38 --------------------
 build/win32/vs10/gtk-inspector.vcxproj.filtersin   |   20 ++++++++++
 ...k-inspector.vcxproj => gtk-inspector.vcxprojin} |   20 +----------
 build/win32/vs9/Makefile.am                        |    1 +
 ...gtk-inspector.vcproj => gtk-inspector.vcprojin} |   20 +----------
 gtk/inspector/Makefile.am                          |   32 ++++++++++++++++
 7 files changed, 57 insertions(+), 76 deletions(-)
---
diff --git a/build/win32/vs10/Makefile.am b/build/win32/vs10/Makefile.am
index 071626d..96b8db3 100644
--- a/build/win32/vs10/Makefile.am
+++ b/build/win32/vs10/Makefile.am
@@ -19,7 +19,9 @@ EXTRA_DIST += \
        gtk3-demo-application.vcxproj   \
        gtk3-demo-application.vcxproj.filters   \
        gtk-inspector.vcxproj   \
+       gtk-inspector.vcxprojin \
        gtk-inspector.vcxproj.filters   \
+       gtk-inspector.vcxproj.filtersin \
        gailutil.vcxproj        \
        gailutil.vcxproj.filters        \
        install.vcxproj \
diff --git a/build/win32/vs10/gtk-inspector.vcxproj.filtersin 
b/build/win32/vs10/gtk-inspector.vcxproj.filtersin
new file mode 100644
index 0000000..faa7212
--- /dev/null
+++ b/build/win32/vs10/gtk-inspector.vcxproj.filtersin
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003";>
+  <ItemGroup>
+    <Filter Include="Header Files">
+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
+      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
+    </Filter>
+    <Filter Include="Resource Files">
+      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
+      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx</Extensions>
+    </Filter>
+    <Filter Include="Source Files">
+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
+      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
+    </Filter>
+  </ItemGroup>
+  <ItemGroup>
+#include "libgtk-inspector.vs10.sourcefiles.filters"
+  </ItemGroup>
+</Project>
diff --git a/build/win32/vs10/gtk-inspector.vcxproj b/build/win32/vs10/gtk-inspector.vcxprojin
similarity index 84%
rename from build/win32/vs10/gtk-inspector.vcxproj
rename to build/win32/vs10/gtk-inspector.vcxprojin
index b97c515..441186d 100644
--- a/build/win32/vs10/gtk-inspector.vcxproj
+++ b/build/win32/vs10/gtk-inspector.vcxprojin
@@ -117,25 +117,7 @@
     </ClCompile>
   </ItemDefinitionGroup>
   <ItemGroup>
-    <ClCompile Include="..\..\..\gtk\inspector\actions.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\button-path.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\classes-list.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\css-editor.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\data-list.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\general.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\init.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\inspect-button.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\object-hierarchy.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\prop-list.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\property-cell-renderer.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\python-hooks.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\python-shell.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\resource-list.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\resources.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\signals-list.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\visual.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\widget-tree.c" />
-    <ClCompile Include="..\..\..\gtk\inspector\window.c" />
+#include "libgtk-inspector.vs10.sourcefiles"
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="gtk-prebuild.vcxproj">
diff --git a/build/win32/vs9/Makefile.am b/build/win32/vs9/Makefile.am
index ec5789f..8583084 100644
--- a/build/win32/vs9/Makefile.am
+++ b/build/win32/vs9/Makefile.am
@@ -12,6 +12,7 @@ EXTRA_DIST += \
        gtk3-demo.vcproj        \
        gtk3-demo-application.vcproj    \
        gtk-inspector.vcproj    \
+       gtk-inspector.vcprojin  \
        gailutil.vcproj \
        install.vcproj  \
        broadwayd.vcproj        \
diff --git a/build/win32/vs9/gtk-inspector.vcproj b/build/win32/vs9/gtk-inspector.vcprojin
similarity index 71%
rename from build/win32/vs9/gtk-inspector.vcproj
rename to build/win32/vs9/gtk-inspector.vcprojin
index bfecdbc..838ea93 100644
--- a/build/win32/vs9/gtk-inspector.vcproj
+++ b/build/win32/vs9/gtk-inspector.vcprojin
@@ -124,25 +124,7 @@
                        Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
                        UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
                        >
-                       <File RelativePath="..\..\..\gtk\inspector\actions.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\button-path.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\classes-list.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\css-editor.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\data-list.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\general.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\init.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\inspect-button.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\object-hierarchy.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\prop-list.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\property-cell-renderer.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\python-hooks.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\python-shell.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\resource-list.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\resources.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\signals-list.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\visual.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\widget-tree.c" />
-                       <File RelativePath="..\..\..\gtk\inspector\window.c" />
+#include "libgtk-inspector.sourcefiles"
                </Filter>
        </Files>
 </VisualStudioProject>
diff --git a/gtk/inspector/Makefile.am b/gtk/inspector/Makefile.am
index 67e9c4e..79b3219 100644
--- a/gtk/inspector/Makefile.am
+++ b/gtk/inspector/Makefile.am
@@ -119,4 +119,36 @@ distclean-local:
          rm -f $(MAINTAINERCLEANFILES); \
        fi
 
+dist-hook: $(top_builddir)/build/win32/vs9/gtk-inspector.vcproj 
$(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj 
$(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj.filters
+
+$(top_builddir)/build/win32/vs9/gtk-inspector.vcproj: $(top_srcdir)/build/win32/vs9/gtk-inspector.vcprojin
+       for F in `echo $(libgtkinspector_la_SOURCES) | tr '/' '\\'`; do \
+               case $$F in \
+               *.c) echo '   <File RelativePath="..\..\..\gtk\inspector\'$$F'" />' \
+                    ;; \
+               esac; \
+       done >libgtk-inspector.sourcefiles
+       $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gtk-inspector.vcprojin >$@
+       rm libgtk-inspector.sourcefiles
+
+$(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj: 
$(top_srcdir)/build/win32/vs10/gtk-inspector.vcxprojin
+       for F in `echo $(libgtkinspector_la_SOURCES) | tr '/' '\\'`; do \
+               case $$F in \
+               *.c) echo '   <ClCompile Include="..\..\..\gtk\inspector\'$$F'" />' \
+                    ;; \
+               esac; \
+       done >libgtk-inspector.vs10.sourcefiles
+       $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gtk-inspector.vcxprojin >$@
+       rm libgtk-inspector.vs10.sourcefiles
+
+$(top_builddir)/build/win32/vs10/gtk-inspector.vcxproj.filters: 
$(top_srcdir)/build/win32/vs10/gtk-inspector.vcxproj.filtersin
+       for F in `echo $(libgtkinspector_la_SOURCES) | tr '/' '\\'`; do \
+               case $$F in \
+               *.c) echo '   <ClCompile Include="..\..\..\gtk\inspector\'$$F'"><Filter>Source 
Files</Filter></ClCompile>' \
+                    ;; \
+               esac; \
+       done >libgtk-inspector.vs10.sourcefiles.filters
+       $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gtk-inspector.vcxproj.filtersin >$@
+       rm libgtk-inspector.vs10.sourcefiles.filters
+
 -include $(top_srcdir)/git.mk


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]