summaryrefslogtreecommitdiff
path: root/Makefile-msvcproj.am
blob: f4dcd3cd842bcf6a4ff7fe2780bcdf81b5d5a58a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
# This is to fill in Visual C++ projects for projects which add/remove
# sources from them every now and then.

# --------------------------
# cmph (static lib) projects
# --------------------------
./build/win32/vs9/cmph.vcproj: $(top_srcdir)/build/win32/vs9/cmph.vcprojin
	for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '   <File RelativePath="..\..\..\'$$F'" />' \
			;; \
		esac; \
	done >cmph.sourcefiles
	$(CPP) -P - <$(top_srcdir)/build/win32/vs9/cmph.vcprojin >$@
	rm cmph.sourcefiles

./build/win32/vs10/cmph.vcxproj: $(top_srcdir)/build/win32/vs10/cmph.vcxprojin
	for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '    <ClCompile Include="..\..\..\'$$F'" />' \
			;; \
		esac; \
	done >cmph.vs10.sourcefiles
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/cmph.vcxprojin >$@
	rm cmph.vs10.sourcefiles

./build/win32/vs10/cmph.vcxproj.filters: $(top_srcdir)/build/win32/vs10/cmph.vcxproj.filtersin
	for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '    <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
			;; \
		esac; \
	done >cmph.vs10.sourcefiles.filters
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/cmph.vcxproj.filtersin >$@
	rm cmph.vs10.sourcefiles.filters

# -------------------------
# girepository DLL projects
# -------------------------
./build/win32/vs9/girepository.vcproj: $(top_srcdir)/build/win32/vs9/girepository.vcprojin ./build/win32/vs9/gir.vs9.install
	for F in `echo $(libgirepository_1_0_la_SOURCES) $(libgirepository_gthash_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '   <File RelativePath="..\..\..\'$$F'" />' \
			;; \
		esac; \
	done >girepository.sourcefiles
	$(CPP) -P - <$(top_srcdir)/build/win32/vs9/girepository.vcprojin >$@
	rm girepository.sourcefiles

./build/win32/vs10/girepository.vcxproj: $(top_srcdir)/build/win32/vs10/girepository.vcxprojin ./build/win32/vs10/gir.vs10.install
	for F in `echo $(libgirepository_1_0_la_SOURCES) $(libgirepository_gthash_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '    <ClCompile Include="..\..\..\'$$F'" />' \
			;; \
		esac; \
	done >girepository.vs10.sourcefiles
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/girepository.vcxprojin >$@
	rm girepository.vs10.sourcefiles

./build/win32/vs10/girepository.vcxproj.filters: $(top_srcdir)/build/win32/vs10/girepository.vcxproj.filtersin
	for F in `echo $(libgirepository_1_0_la_SOURCES) $(libgirepository_gthash_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '    <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
			;; \
		esac; \
	done >girepository.vs10.sourcefiles.filters
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/girepository.vcxproj.filtersin >$@
	rm girepository.vs10.sourcefiles.filters

# ------------------------------------
# g-ir-compiler.exe projects
# (We integrate the
# libgirepository_internals_la_SOURCES
# and
# libgirepository_gthash_la_SOURCES
# here)
# ------------------------------------
./build/win32/vs9/g-ir-compiler.vcproj: $(top_srcdir)/build/win32/vs9/g-ir-compiler.vcprojin
	for F in `echo $(libgirepository_gthash_la_SOURCES) $(libgirepository_internals_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '   <File RelativePath="..\..\..\'$$F'" />' \
			;; \
		esac; \
	done >g-ir-compiler.sourcefiles
	$(CPP) -P - <$(top_srcdir)/build/win32/vs9/g-ir-compiler.vcprojin >$@
	rm g-ir-compiler.sourcefiles

./build/win32/vs10/g-ir-compiler.vcxproj: $(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxprojin
	for F in `echo $(libgirepository_gthash_la_SOURCES) $(libgirepository_internals_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '    <ClCompile Include="..\..\..\'$$F'" />' \
			;; \
		esac; \
	done >g-ir-compiler.vs10.sourcefiles
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxprojin >$@
	rm g-ir-compiler.vs10.sourcefiles

./build/win32/vs10/g-ir-compiler.vcxproj.filters: $(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxproj.filtersin
	for F in `echo $(libgirepository_gthash_la_SOURCES) $(libgirepository_internals_la_SOURCES) | tr '/' '\\\\'`; do \
		case $$F in \
		*.c)	echo '    <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
			;; \
		esac; \
	done >g-ir-compiler.vs10.sourcefiles.filters
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/g-ir-compiler.vcxproj.filtersin >$@
	rm g-ir-compiler.vs10.sourcefiles.filters

#--------------------------------
# Generate the "lists" of headers
# and Python scripts to install
#--------------------------------
./build/win32/vs9/gir.vs9.install:
	echo 'mkdir $$(CopyDir)\include\gobject-introspection-$$(ApiVersion)\girepository&#x0D;&#x0A;' >./build/win32/vs9/gir.vs9.install
	echo '' >>./build/win32/vs9/gir.vs9.install
	for F in `echo $(girepo_HEADERS) | tr '/' '\\\\'`; do \
		case $$F in \
		*.h) echo 'copy ..\..\..\'$$F' $$(CopyDir)\include\gobject-introspection-$$(ApiVersion)\girepository&#x0D;&#x0A;' \
			;; \
		esac; \
	done >>./build/win32/vs9/gir.vs9.install
	echo '' >>./build/win32/vs9/gir.vs9.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\collections&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\C&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Gjs&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Python&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
	echo '' >>./build/win32/vs9/gir.vs9.install
	for F in `echo $(pkgpyexec_PYTHON) $(collections_PYTHON) $(nobase_dist_template_DATA) | tr '/' '\\\\'`; do \
		case $$F in \
		giscanner\\doctemplates\\C\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\C&#x0D;&#x0A;' \
			;; \
		giscanner\\doctemplates\\Gjs\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Gjs&#x0D;&#x0A;' \
			;; \
		giscanner\\doctemplates\\Python\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Python&#x0D;&#x0A;' \
			;; \
		giscanner\\doctemplates\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates&#x0D;&#x0A;' \
			;; \
		giscanner\\collections\\*.py) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\collections&#x0D;&#x0A;' \
			;; \
		giscanner\\*.py) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner&#x0D;&#x0A;' \
			;; \
		esac; \
	done >>./build/win32/vs9/gir.vs9.install

./build/win32/vs10/gir.vs10.install:
	echo 'mkdir $$(CopyDir)\include\gobject-introspection-$$(ApiVersion)\girepository' >./build/win32/vs10/gir.vs10.install
	echo '' >>./build/win32/vs10/gir.vs10.install
	for F in `echo $(girepo_HEADERS) | tr '/' '\\\\'`; do \
		case $$F in \
		*.h) echo 'copy ..\..\..\'$$F' $$(CopyDir)\include\gobject-introspection-$$(ApiVersion)\girepository' && \
			echo '' \
			;; \
		esac; \
	done >>./build/win32/vs10/gir.vs10.install
	echo '' >>./build/win32/vs10/gir.vs10.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\collections' >>./build/win32/vs10/gir.vs10.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates' >>./build/win32/vs10/gir.vs10.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\C' >>./build/win32/vs10/gir.vs10.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Gjs' >>./build/win32/vs10/gir.vs10.install
	echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Python' >>./build/win32/vs10/gir.vs10.install
	echo '' >>./build/win32/vs10/gir.vs10.install
	for F in `echo $(pkgpyexec_PYTHON) $(collections_PYTHON) $(nobase_dist_template_DATA) | tr '/' '\\\\'`; do \
		case $$F in \
		giscanner\\doctemplates\\C\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\C' \
			;; \
		giscanner\\doctemplates\\Gjs\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Gjs' \
			;; \
		giscanner\\doctemplates\\Python\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates\Python' \
			;; \
		giscanner\\doctemplates\\*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\doctemplates' \
			;; \
		giscanner\\collections\\*.py) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner\collections' \
			;; \
		giscanner\\*.py) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner' && \
			echo '' \
			;; \
		esac; \
	done >>./build/win32/vs10/gir.vs10.install

./build/win32/vs9/gi-install.vsprops: ./build/win32/vs9/gir.vs9.install $(top_srcdir)/build/win32/vs9/gi-install.vspropsin
	$(CPP) -P - <$(top_srcdir)/build/win32/vs9/gi-install.vspropsin >$@
	rm ./build/win32/vs9/gir.vs9.install

./build/win32/vs10/gir.props: ./build/win32/vs10/gir.vs10.install $(top_srcdir)/build/win32/vs10/gir.propsin
	$(CPP) -P - <$(top_srcdir)/build/win32/vs10/gir.propsin >$@
	rm ./build/win32/vs10/gir.vs10.install

GENERATED_MSVC_FILES =	\
	./build/win32/vs9/girepository.vcproj	\
	./build/win32/vs10/girepository.vcxproj	\
	./build/win32/vs10/girepository.vcxproj.filters	\
	./build/win32/vs9/g-ir-compiler.vcproj	\
	./build/win32/vs10/g-ir-compiler.vcxproj	\
	./build/win32/vs10/g-ir-compiler.vcxproj.filters	\
	./build/win32/vs9/cmph.vcproj	\
	./build/win32/vs10/cmph.vcxproj	\
	./build/win32/vs10/cmph.vcxproj.filters	\
	config.h.win32

EXTRA_DIST +=	\
	./girepository/girepository.symbols	\
	$(GENERATED_MSVC_FILES)

CLEANFILES += $(GENERATED_MSVC_FILES)