From 2089d2f149f05f5fed84270e62be8ca69dbc2e6a Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Mon, 27 Jul 2015 15:24:43 +0800 Subject: 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. --- src/Makefile.am | 41 +++++++++++++---------------------------- 1 file changed, 13 insertions(+), 28 deletions(-) (limited to 'src') 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 ' ' \ - ;; \ - 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 ' ' \ - ;; \ - 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 ' Source Files' \ - ;; \ - 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 -- cgit v1.2.1