MSVC 2010 Project Files: Split up the Property Sheets
[platform/upstream/glib.git] / build / Makefile-newvs.am
1 # Centralized autotools file
2 # Create the Visual Studio 2012 project files
3 # from the Visual Studio 2010 project files
4
5 # Author: Fan, Chun-wei
6 # November 05, 2012
7
8 # MSVC_SLN: name of root project
9
10 VCXPROJ_FILES =
11
12 $(MSVC_SLN).sln: $(top_srcdir)/build/win32/vs10/$(MSVC_SLN).sln create_vcxproj copy_filters create_props
13         cat $(top_srcdir)/build/win32/vs10/$(MSVC_SLN).sln | sed 's/11\.00/12\.00/g' | sed 's/2010/2012/g' > $(top_builddir)/build/win32/vs11/$(MSVC_SLN).sln
14
15 README.txt: $(top_srcdir)/build/win32/vs10/README.txt
16         cat $(top_srcdir)/build/win32/vs10/README.txt | sed 's/vs10/vs11/g' | sed 's/VS10/VS11/g' > $(top_builddir)/build/win32/vs11/README.txt
17
18 create_vcxproj:
19         for F in `(cd $(top_builddir)/build/win32/vs10 && ls *.vcxproj)`; do \
20                 case $$F in \
21                         *)      cat $(top_builddir)/build/win32/vs10/$$F | sed 's/v100/v110/g' > $(top_builddir)/build/win32/vs11/$$F \
22                         ;; \
23                 esac; \
24         done
25
26 create_props:
27         for F in `(cd $(top_builddir)/build/win32/vs10 && ls *.props)`; do \
28                 case $$F in \
29                         *)      cat $(top_builddir)/build/win32/vs10/$$F | sed 's/10/11/g' > $(top_builddir)/build/win32/vs11/$$F \
30                         ;; \
31                 esac; \
32         done
33
34 copy_filters:
35         cp  $(top_srcdir)/build/win32/vs10/*.vcxproj.filters $(top_builddir)/build/win32/vs11/
36
37