Project

General

Profile

Bug #1174

Visual Studio Support Enhancements

Added by Robin Mills over 5 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
build
Target version:
Start date:
31 Mar 2016
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

The Visual Studio support for v0.26 is too ambitious for the time available. Adding CMake/Visual Studio support to v0.26 has been a very considerable undertaking. Additionally CMake/Visual Studio is being used by the build server. So, I'm deferring most of this to v1.0 and some of this will be implemented in v0.27.

v0.25 introduced a new script 'configure.bat' which calls configure.py. This enables the user to configure the Visual Studio build system to optionally select different libraries to be included in the build. Currently, when a library is selected, the code must be present in the prescribed directory relative to <exiv2dir>. This should be extended to enable the use of pre-build binary libraries. This will have a hugely beneficial impact on build times. When building support libraries from source, the increase in build time for expat and zlib are about 20-30 seconds each. However, openssl/libssh/curl adds about 20-30 minutes to the build. Storing precompiled copies of built libraries on build server will have a huge performance gain on the build server.

The use of the clang compiler from within Visual Studio (as an alternative to the Microsoft cl compiler) should be investigated and supported if possible.

The build server runs the test suite from jenkins_build.sh. I will investigate modifying the Visual Studio solution/project files to enable tests to be run from Visual Studio itself. To actually use those tests will require cygwin to be installed on the user's computer. When cygwin is not available, the user will be instructed to install cygwin. I had a prototype of this running some time ago and this is quite easy.

When we add the groups of tests, the number of sub-projects in Visual Studio will be more than 50. A hierarchy of projects should be established. These would include "support" (zlib, expat etc) "core" (xmpsdk, src/*.cpp, exiv2, exifprint etc), "test apps" (iotest etc), "sample apps" (exiv2json etc), and "testing" (tests, teste etc).


Related issues

Related to Exiv2 - Feature #1121: Visual Studio support for v0.27Closed24 Sep 2015

Actions

History

#1

Updated by Robin Mills about 3 years ago

  • Status changed from New to Closed
  • Target version changed from 1.0 to 0.27
  • % Done changed from 0 to 100
  • Estimated time set to 1.00 h

I'm closing this. In Exiv2 v0.27, we have removed support for msvc solution/project files and will generate those with CMake. We have also adopted conan to build/install dependencies.

Also available in: Atom PDF