From 378363949d4e1337a1fc55c3fd6848e65605ab82 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Fri, 3 Mar 2017 12:04:59 +0800 Subject: Visual Studio builds: Generate .pc files Generate and copy the libcroco-0.6.pc during the "install" stage of the build, when a Python installation is found at the configured location in croco-version-paths.[vsprops|props]. Also fix the 201x "install" project as a "'" is missed, and clean up things a bit. --- win32/vs10/Makefile.am | 1 + win32/vs10/croco-install.propsin | 26 ++++++++++++------ win32/vs10/croco-install.vcxproj | 12 ++++++++- win32/vs10/croco-install.vcxproj.filters | 29 ++++++++++++++++++++ win32/vs10/croco-version-paths.props.in | 4 +++ win32/vs11/Makefile.am | 1 + win32/vs12/Makefile.am | 1 + win32/vs14/Makefile.am | 1 + win32/vs15/Makefile.am | 1 + win32/vs9/croco-install.vcproj | 46 +++++++++++++++++++++++++++++--- win32/vs9/croco-install.vspropsin | 7 +++++ win32/vs9/croco-version-paths.vsprops.in | 4 +++ 12 files changed, 120 insertions(+), 13 deletions(-) create mode 100644 win32/vs10/croco-install.vcxproj.filters (limited to 'win32') diff --git a/win32/vs10/Makefile.am b/win32/vs10/Makefile.am index f89cbea..fcdd2f8 100644 --- a/win32/vs10/Makefile.am +++ b/win32/vs10/Makefile.am @@ -28,6 +28,7 @@ EXTRA_DIST = \ csslint.vcxproj \ csslint.vcxproj.filters \ croco-install.vcxproj \ + croco-install.vcxproj.filters \ libcroco.sln \ croco-build-defines.props \ croco-gen-srcs.props \ diff --git a/win32/vs10/croco-install.propsin b/win32/vs10/croco-install.propsin index d5e493d..ccce87e 100644 --- a/win32/vs10/croco-install.propsin +++ b/win32/vs10/croco-install.propsin @@ -24,29 +24,39 @@ See COPYRIGHTS file for copyright information. $(SolutionDir)$(Configuration)\$(Platform)\bin - $(BinDir)\$(GlibDllPrefix)croco(GlibDllSuffix).dll - $(BinDir)\csslint.exe mkdir $(CopyDir) mkdir $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\$(LibCrocoDllPrefix)croco$(LibCrocoDllSuffix).dll $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\$(LibCrocoDllPrefix)croco$(LibCrocoDllSuffix).pdb $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\csslint.exe $(CopyDir)\bin -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\csslint.pdb $(CopyDir)\bin +copy $(BinDir)\$(LibCrocoDllPrefix)croco$(LibCrocoDllSuffix).dll $(CopyDir)\bin +copy $(BinDir)\$(LibCrocoDllPrefix)croco$(LibCrocoDllSuffix).pdb $(CopyDir)\bin +copy $(BinDir)\csslint.exe $(CopyDir)\bin +copy $(BinDir)\csslint.pdb $(CopyDir)\bin mkdir $(CopyDir)\include\libcroco-$(ApiVersion)\libcroco #include "croco.vs10.headers" -mkdir $(CopyDir)\lib -copy $(SolutionDir)$(Configuration)\$(Platform)\bin\croco-$(ApiVersion).lib $(CopyDir)\lib +mkdir $(CopyDir)\lib\pkgconfig +copy $(BinDir)\croco-$(ApiVersion).lib $(CopyDir)\lib +copy ..\libcroco-$(ApiVersion).pc $(CopyDir)\lib\pkgconfig + ..\libcroco-$(ApiVersion).pc + (if not exist $(CopyDir) mkdir $(CopyDir)) & (if exist $(PythonPath)\python.exe $(PythonPath)\python.exe ..\crocopc.py --prefix=$(CopyDir) --version=$(CrocoMajorVersion).$(CrocoMinorVersion).$(CrocoMicroVersion)) <_PropertySheetDisplayName>crocoinstallprops + + $(BinDir) + $(LibCrocoDoInstall) + + $(LibcrocoPCFiles) + + + $(LibcrocoGenPC) + diff --git a/win32/vs10/croco-install.vcxproj b/win32/vs10/croco-install.vcxproj index a40ad4b..0cda335 100644 --- a/win32/vs10/croco-install.vcxproj +++ b/win32/vs10/croco-install.vcxproj @@ -99,11 +99,21 @@ See COPYRIGHTS file for copyright information. + + Generating .pc files... + $(LibcrocoGenPC) + $(LibcrocoPCFiles);%(Outputs) + Generating .pc files... + $(LibcrocoGenPC) + $(LibcrocoPCFiles);%(Outputs) + Installing Build Results... + $(LibcrocoPCFiles) $(LibCrocoDoInstall) - blah;%(Outputs) + blah;%(Outputs) Installing Build Results... + $(LibcrocoPCFiles) $(LibCrocoDoInstall) blah;%(Outputs) diff --git a/win32/vs10/croco-install.vcxproj.filters b/win32/vs10/croco-install.vcxproj.filters new file mode 100644 index 0000000..9386b54 --- /dev/null +++ b/win32/vs10/croco-install.vcxproj.filters @@ -0,0 +1,29 @@ + + + + + + {67DA6AB6-F800-4c08-8B7A-83BB121AAD01} + rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav + + + + Resource Files + Resource Files + + diff --git a/win32/vs10/croco-version-paths.props.in b/win32/vs10/croco-version-paths.props.in index 2184b21..eb4000f 100644 --- a/win32/vs10/croco-version-paths.props.in +++ b/win32/vs10/croco-version-paths.props.in @@ -34,6 +34,7 @@ See COPYRIGHTS file for copyright information. -$(ApiVersion)-vs$(VSVer) $(LibCrocoSeparateVSDllPrefix) $(LibCrocoSeparateVSDllSuffix) + c:\python34 <_PropertySheetDisplayName>crocoversionpathsprops @@ -81,5 +82,8 @@ See COPYRIGHTS file for copyright information. $(LibCrocoDllSuffix) + + $(PythonPath) + diff --git a/win32/vs11/Makefile.am b/win32/vs11/Makefile.am index 7c713f2..b5f9ea9 100644 --- a/win32/vs11/Makefile.am +++ b/win32/vs11/Makefile.am @@ -23,6 +23,7 @@ EXTRA_DIST = \ csslint.vcxproj \ csslint.vcxproj.filters \ croco-install.vcxproj \ + croco-install.vcxproj.filters \ croco-build-defines.props \ croco-gen-srcs.props \ croco-install.props \ diff --git a/win32/vs12/Makefile.am b/win32/vs12/Makefile.am index 7687c14..a3d6db1 100644 --- a/win32/vs12/Makefile.am +++ b/win32/vs12/Makefile.am @@ -23,6 +23,7 @@ EXTRA_DIST = \ csslint.vcxproj \ csslint.vcxproj.filters \ croco-install.vcxproj \ + croco-install.vcxproj.filters \ croco-build-defines.props \ croco-gen-srcs.props \ croco-install.props \ diff --git a/win32/vs14/Makefile.am b/win32/vs14/Makefile.am index b1e7ee9..d68e3bf 100644 --- a/win32/vs14/Makefile.am +++ b/win32/vs14/Makefile.am @@ -23,6 +23,7 @@ EXTRA_DIST = \ csslint.vcxproj \ csslint.vcxproj.filters \ croco-install.vcxproj \ + croco-install.vcxproj.filters \ croco-build-defines.props \ croco-gen-srcs.props \ croco-install.props \ diff --git a/win32/vs15/Makefile.am b/win32/vs15/Makefile.am index 9f2e096..0a4afa0 100644 --- a/win32/vs15/Makefile.am +++ b/win32/vs15/Makefile.am @@ -23,6 +23,7 @@ EXTRA_DIST = \ csslint.vcxproj \ csslint.vcxproj.filters \ croco-install.vcxproj \ + croco-install.vcxproj.filters \ croco-build-defines.props \ croco-gen-srcs.props \ croco-install.props \ diff --git a/win32/vs9/croco-install.vcproj b/win32/vs9/croco-install.vcproj index a1588b1..a48547c 100644 --- a/win32/vs9/croco-install.vcproj +++ b/win32/vs9/croco-install.vcproj @@ -58,7 +58,7 @@ See COPYRIGHTS file for copyright information. DeleteExtensionsOnClean="" > @@ -85,14 +85,52 @@ See COPYRIGHTS file for copyright information. DeleteExtensionsOnClean="" > - - + + + + + + + + + + + + + + + + diff --git a/win32/vs9/croco-install.vspropsin b/win32/vs9/croco-install.vspropsin index 9348364..63a8afb 100644 --- a/win32/vs9/croco-install.vspropsin +++ b/win32/vs9/croco-install.vspropsin @@ -34,6 +34,9 @@ copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\$(LibCrocoDllPrefix) copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\csslint.exe $(CopyDir)\bin copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\csslint.pdb $(CopyDir)\bin +mkdir $(CopyDir)\lib\pkgconfig +copy ..\libcroco-$(ApiVersion).pc $(CopyDir)\lib\pkgconfig + mkdir $(CopyDir)\include\libcroco-$(ApiVersion)\libcroco #include "croco.headers" @@ -41,4 +44,8 @@ mkdir $(CopyDir)\lib copy $(SolutionDir)$(ConfigurationName)\$(PlatformName)\bin\croco-$(ApiVersion).lib $(CopyDir)\lib " /> + diff --git a/win32/vs9/croco-version-paths.vsprops.in b/win32/vs9/croco-version-paths.vsprops.in index f7a14ea..d03f5e8 100644 --- a/win32/vs9/croco-version-paths.vsprops.in +++ b/win32/vs9/croco-version-paths.vsprops.in @@ -81,4 +81,8 @@ See COPYRIGHTS file for copyright information. Name="LibCrocoDllSuffix" Value="$(LibCrocoSeparateVSDllSuffix)" /> + -- cgit v1.2.1