inital packaging commit
[platform/upstream/gobject-introspection.git] / Makefile-msvcproj.am
1 # This is to fill in Visual C++ projects for projects which add/remove
2 # sources from them every now and then.
3
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 \
9                 case $$F in \
10                 *.c)    echo '   <File RelativePath="..\..\..\'$$F'" />' \
11                         ;; \
12                 esac; \
13         done >cmph.sourcefiles
14         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/cmph.vcprojin >$@
15         rm cmph.sourcefiles
16
17 ./build/win32/vs10/cmph.vcxproj: $(top_srcdir)/build/win32/vs10/cmph.vcxprojin
18         for F in `echo $(libcmph_la_SOURCES) | tr '/' '\\'`; do \
19                 case $$F in \
20                 *.c)    echo '    <ClCompile Include="..\..\..\'$$F'" />' \
21                         ;; \
22                 esac; \
23         done >cmph.vs10.sourcefiles
24         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/cmph.vcxprojin >$@
25         rm cmph.vs10.sourcefiles
26
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 \
29                 case $$F in \
30                 *.c)    echo '    <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
31                         ;; \
32                 esac; \
33         done >cmph.vs10.sourcefiles.filters
34         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/cmph.vcxproj.filtersin >$@
35         rm cmph.vs10.sourcefiles.filters
36
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 \
42                 case $$F in \
43                 *.c)    echo '   <File RelativePath="..\..\..\'$$F'" />' \
44                         ;; \
45                 esac; \
46         done >girepository.sourcefiles
47         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/girepository.vcprojin >$@
48         rm girepository.sourcefiles
49
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 \
52                 case $$F in \
53                 *.c)    echo '    <ClCompile Include="..\..\..\'$$F'" />' \
54                         ;; \
55                 esac; \
56         done >girepository.vs10.sourcefiles
57         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/girepository.vcxprojin >$@
58         rm girepository.vs10.sourcefiles
59
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 \
62                 case $$F in \
63                 *.c)    echo '    <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
64                         ;; \
65                 esac; \
66         done >girepository.vs10.sourcefiles.filters
67         $(CPP) -P - <$(top_srcdir)/build/win32/vs10/girepository.vcxproj.filtersin >$@
68         rm girepository.vs10.sourcefiles.filters
69
70 # ------------------------------------
71 # g-ir-compiler.exe projects
72 # (We integrate the
73 # libgirepository_internals_la_SOURCES
74 # and
75 # libgirepository_gthash_la_SOURCES
76 # here)
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 \
80                 case $$F in \
81                 *.c)    echo '   <File RelativePath="..\..\..\'$$F'" />' \
82                         ;; \
83                 esac; \
84         done >g-ir-compiler.sourcefiles
85         $(CPP) -P - <$(top_srcdir)/build/win32/vs9/g-ir-compiler.vcprojin >$@
86         rm g-ir-compiler.sourcefiles
87
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 \
90                 case $$F in \
91                 *.c)    echo '    <ClCompile Include="..\..\..\'$$F'" />' \
92                         ;; \
93                 esac; \
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
97
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 \
100                 case $$F in \
101                 *.c)    echo '    <ClCompile Include="..\..\..\'$$F'"><Filter>Sources</Filter></ClCompile>' \
102                         ;; \
103                 esac; \
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
107
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&#x0D;&#x0A;' >./build/win32/vs9/gir.vs9.install
114         echo '' >>./build/win32/vs9/gir.vs9.install
115         for F in `echo $(girepo_HEADERS) | tr '/' '\\'`; do \
116                 case $$F in \
117                 *.h) echo 'copy ..\..\..\'$$F' $$(CopyDir)\include\gobject-introspection-$$(GIApiVersion)\girepository&#x0D;&#x0A;' \
118                         ;; \
119                 esac; \
120         done >>./build/win32/vs9/gir.vs9.install
121         echo '' >>./build/win32/vs9/gir.vs9.install
122         echo 'mkdir $$(CopyDir)\lib\gobject-introspection\giscanner&#x0D;&#x0A;' >>./build/win32/vs9/gir.vs9.install
123         echo '' >>./build/win32/vs9/gir.vs9.install
124         for F in `echo $(pkgpyexec_PYTHON) | tr '/' '\\'`; do \
125                 case $$F in \
126                 *.py|*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner&#x0D;&#x0A;' \
127                         ;; \
128                 esac; \
129         done >>./build/win32/vs9/gir.vs9.install
130
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 \
135                 case $$F in \
136                 *.h) echo 'copy ..\..\..\'$$F' $$(CopyDir)\include\gobject-introspection-$$(GIApiVersion)\girepository' && \
137                         echo '' \
138                         ;; \
139                 esac; \
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 \
145                 case $$F in \
146                 *.py|*.tmpl) echo 'copy ..\..\..\'$$F' $$(CopyDir)\lib\gobject-introspection\giscanner' && \
147                         echo '' \
148                         ;; \
149                 esac; \
150         done >>./build/win32/vs10/gir.vs10.install
151
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
155
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
159
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 \
170         config.h.win32
171
172 EXTRA_DIST +=   \
173         ./girepository/girepository.symbols     \
174         $(GENERATED_MSVC_FILES)
175
176 CLEANFILES += $(GENERATED_MSVC_FILES)