summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChun-wei Fan <fanchunwei@src.gnome.org>2015-07-27 15:24:43 +0800
committerChun-wei Fan <fanchunwei@src.gnome.org>2015-07-27 16:22:40 +0800
commit2089d2f149f05f5fed84270e62be8ca69dbc2e6a (patch)
tree28c9d917a12df9548366d3a7676c0c7b8cdfae9f /src
parent68e19d7c494c25622d37acfd20f71ae7622b2a62 (diff)
downloadlibcroco-2089d2f149f05f5fed84270e62be8ca69dbc2e6a.tar.gz
Build: Clean Up MSVC Project Generation
Add and use a common autotools module, which can be used to generate the various Visual Studio 2008/2010 project files, which also have the following benefits: -Have the header installation porperty sheet also generated from the templates using 'make dist', to ensure the headers listings are kept up-to-date between releases. -Make src/Makefile.am cleaner -Support out-of-tree builds and 'make -jN dist' better Also improve the debugging experience for the stack by copying the .pdb files, which are already generated for all builds.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am41
1 files changed, 13 insertions, 28 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4017338..54a4924 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -115,34 +115,19 @@ libcroco_0_6_la_LIBADD = \
EXTRA_DIST = libcroco.symbols
-dist-hook: ../build/win32/vs9/croco.vcproj ../build/win32/vs10/croco.vcxproj ../build/win32/vs10/croco.vcxproj.filters
+# MSVC Build Items
-../build/win32/vs9/croco.vcproj: $(top_srcdir)/build/win32/vs9/croco.vcprojin
- for F in $(libcroco_0_6_la_SOURCES); do \
- case $$F in \
- *.c) echo ' <File RelativePath="..\..\..\src\'$$F'" />' \
- ;; \
- esac; \
- done >libcroco.sourcefiles
- $(CPP) -P - <$(top_srcdir)/build/win32/vs9/croco.vcprojin >$@
- rm libcroco.sourcefiles
+MSVCPROJS = croco
-../build/win32/vs10/croco.vcxproj: $(top_srcdir)/build/win32/vs10/croco.vcxprojin
- for F in $(libcroco_0_6_la_SOURCES); do \
- case $$F in \
- *.c) echo ' <ClCompile Include="..\..\..\src\'$$F'" />' \
- ;; \
- esac; \
- done >libcroco.vs10.sourcefiles
- $(CPP) -P - <$(top_srcdir)/build/win32/vs10/croco.vcxprojin >$@
- rm libcroco.vs10.sourcefiles
+croco_FILES = $(libcroco_0_6_la_SOURCES)
+croco_EXCLUDES = dummy
-../build/win32/vs10/croco.vcxproj.filters: $(top_srcdir)/build/win32/vs10/croco.vcxproj.filtersin
- for F in $(libcroco_0_6_la_SOURCES); do \
- case $$F in \
- *.c) echo ' <ClCompile Include="..\..\..\src\'$$F'"><Filter>Source Files</Filter></ClCompile>' \
- ;; \
- esac; \
- done >libcroco.vs10.sourcefiles.filters
- $(CPP) -P - <$(top_srcdir)/build/win32/vs10/croco.vcxproj.filtersin >$@
- rm libcroco.vs10.sourcefiles.filters
+croco_HEADERS_DIR = $(crocoincdir)
+croco_HEADERS_INST = $(crocoinc_HEADERS)
+croco_HEADERS_EXCLUDES = dummy
+
+include $(top_srcdir)/build/Makefile.msvcproj
+
+dist-hook: \
+ $(top_builddir)/build/win32/vs9/croco.vcproj \
+ $(top_builddir)/build/win32/vs9/croco.headers