1 # This is to fill in Visual C++ projects for projects which add/remove
2 # sources from them every now and then.
4 # --------------------------
5 # cmph (static lib) projects
6 # --------------------------
7 ./build/win32/vs9/cmph.vcproj: $(top_srcdir)/build/win32/vs9/cmph.vcprojin
8 for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\'`; do \
10 *.c) echo ' <File RelativePath="..\..\..\'$$F'" />' \
13 done >cmph.sourcefiles
14 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/cmph.vcprojin >$@
17 ./build/win32/vs10/cmph.vcxproj: $(top_srcdir)/build/win32/vs10/cmph.vcxprojin
18 for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\'`; do \
20 *.c) echo ' <ClCompile Include="..\..\..\'$$F'" />' \
23 done >cmph.vs10.sourcefiles
24 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/cmph.vcxprojin >$@
25 rm cmph.vs10.sourcefiles
27 ./build/win32/vs10/cmph.vcxproj.filters: $(top_srcdir)/build/win32/vs10/cmph.vcxproj.filtersin
28 for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\'`; do \
30 *.c) echo ' <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
33 done >cmph.vs10.sourcefiles.filters
34 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/cmph.vcxproj.filtersin >$@
35 rm cmph.vs10.sourcefiles.filters
37 # -------------------------
38 # girepository DLL projects
39 # -------------------------
40 ./build/win32/vs9/girepository.vcproj: $(top_srcdir)/build/win32/vs9/girepository.vcprojin ./build/win32/vs9/gir.vs9.install
41 for F in `echo $(libgirepository_1_0_la_SOURCES) $(libgirepository_gthash_la_SOURCES) | tr '/' '\\'`; do \
43 *.c) echo ' <File RelativePath="..\..\..\'$$F'" />' \
46 done >girepository.sourcefiles
47 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/girepository.vcprojin >$@
48 rm girepository.sourcefiles
50 ./build/win32/vs10/girepository.vcxproj: $(top_srcdir)/build/win32/vs10/girepository.vcxprojin ./build/win32/vs10/gir.vs10.install
51 for F in `echo $(libgirepository_1_0_la_SOURCES) $(libgirepository_gthash_la_SOURCES) | tr '/' '\\'`; do \
53 *.c) echo ' <ClCompile Include="..\..\..\'$$F'" />' \
56 done >girepository.vs10.sourcefiles
57 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/girepository.vcxprojin >$@
58 rm girepository.vs10.sourcefiles
60 ./build/win32/vs10/girepository.vcxproj.filters: $(top_srcdir)/build/win32/vs10/girepository.vcxproj.filtersin
61 for F in `echo $(libgirepository_1_0_la_SOURCES) $(libgirepository_gthash_la_SOURCES) | tr '/' '\\'`; do \
63 *.c) echo ' <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
66 done >girepository.vs10.sourcefiles.filters
67 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/girepository.vcxproj.filtersin >$@
68 rm girepository.vs10.sourcefiles.filters
70 # ------------------------------------
71 # g-ir-compiler.exe projects
73 # libgirepository_internals_la_SOURCES
75 # libgirepository_gthash_la_SOURCES
77 # ------------------------------------
78 ./build/win32/vs9/g-ir-compiler.vcproj: $(top_srcdir)/build/win32/vs9/g-ir-compiler.vcprojin
79 for F in `echo $(libgirepository_gthash_la_SOURCES) $(libgirepository_internals_la_SOURCES) | tr '/' '\\'`; do \
81 *.c) echo ' <File RelativePath="..\..\..\'$$F'" />' \
84 done >g-ir-compiler.sourcefiles
85 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/g-ir-compiler.vcprojin >$@
86 rm g-ir-compiler.sourcefiles
88 ./build/win32/vs10/g-ir-compiler.vcxproj: $(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxprojin
89 for F in `echo $(libgirepository_gthash_la_SOURCES) $(libgirepository_internals_la_SOURCES) | tr '/' '\\'`; do \
91 *.c) echo ' <ClCompile Include="..\..\..\'$$F'" />' \
94 done >g-ir-compiler.vs10.sourcefiles
95 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxprojin >$@
96 rm g-ir-compiler.vs10.sourcefiles
98 ./build/win32/vs10/g-ir-compiler.vcxproj.filters: $(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxproj.filtersin
99 for F in `echo $(libgirepository_gthash_la_SOURCES) $(libgirepository_internals_la_SOURCES) | tr '/' '\\'`; do \
101 *.c) echo ' <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
104 done >g-ir-compiler.vs10.sourcefiles.filters
105 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxproj.filtersin >$@
106 rm g-ir-compiler.vs10.sourcefiles.filters
108 #--------------------------------
109 # Generate the "lists" of headers
110 # and Python scripts to install
111 #--------------------------------
112 ./build/win32/vs9/gir.vs9.install:
113 echo 'mkdir $$(CopyDir)\include\gobject-introspection-$$(GIApiVersion)\girepository
' >./build/win32/vs9/gir.vs9.install
114 echo '' >>./build/win32/vs9/gir.vs9.install
115 for F in `echo $(girepo_HEADERS) | tr '/' '\\'`; do \
117 *.h) echo 'copy ..\..\..\'$$F' $$(CopyDir)\include\gobject-introspection-$$(GIApiVersion)\girepository
' \
120 done >>./build/win32/vs9/gir.vs9.install
121 echo '' >>./build/win32/vs9/gir.vs9.install
122 echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner
' >>./build/win32/vs9/gir.vs9.install
123 echo '' >>./build/win32/vs9/gir.vs9.install
124 for F in `echo $(pkgpyexec_PYTHON) | tr '/' '\\'`; do \
126 *.py|*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner
' \
129 done >>./build/win32/vs9/gir.vs9.install
131 ./build/win32/vs10/gir.vs10.install:
132 echo 'mkdir $$(CopyDir)\include\gobject-introspection-$$(GIApiVersion)\girepository' >./build/win32/vs10/gir.vs10.install
133 echo '' >>./build/win32/vs10/gir.vs10.install
134 for F in `echo $(girepo_HEADERS) | tr '/' '\\'`; do \
136 *.h) echo 'copy ..\..\..\'$$F' $$(CopyDir)\include\gobject-introspection-$$(GIApiVersion)\girepository' && \
140 done >>./build/win32/vs10/gir.vs10.install
141 echo '' >>./build/win32/vs10/gir.vs10.install
142 echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner' >>./build/win32/vs10/gir.vs10.install
143 echo '' >>./build/win32/vs10/gir.vs10.install
144 for F in `echo $(pkgpyexec_PYTHON) | tr '/' '\\'`; do \
146 *.py|*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner' && \
150 done >>./build/win32/vs10/gir.vs10.install
152 ./build/win32/vs9/gir.vsprops: ./build/win32/vs9/gir.vs9.install $(top_srcdir)/build/win32/vs9/gir.vspropsin
153 $(CPP) -P - <$(top_srcdir)/build/win32/vs9/gir.vspropsin >$@
154 rm ./build/win32/vs9/gir.vs9.install
156 ./build/win32/vs10/gir.props: ./build/win32/vs10/gir.vs10.install $(top_srcdir)/build/win32/vs10/gir.propsin
157 $(CPP) -P - <$(top_srcdir)/build/win32/vs10/gir.propsin >$@
158 rm ./build/win32/vs10/gir.vs10.install
160 GENERATED_MSVC_FILES = \
161 ./build/win32/vs9/girepository.vcproj \
162 ./build/win32/vs10/girepository.vcxproj \
163 ./build/win32/vs10/girepository.vcxproj.filters \
164 ./build/win32/vs9/g-ir-compiler.vcproj \
165 ./build/win32/vs10/g-ir-compiler.vcxproj \
166 ./build/win32/vs10/g-ir-compiler.vcxproj.filters \
167 ./build/win32/vs9/cmph.vcproj \
168 ./build/win32/vs10/cmph.vcxproj \
169 ./build/win32/vs10/cmph.vcxproj.filters \
173 ./girepository/girepository.symbols \
174 $(GENERATED_MSVC_FILES)
176 CLEANFILES += $(GENERATED_MSVC_FILES)