MCPcopy Create free account
hub / github.com/Kitware/CMake / CMakeToWixPath

Function CMakeToWixPath

Source/CPack/WiX/cmCMakeToWixPath.cxx:12–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#ifdef __CYGWIN__
11# include <sys/cygwin.h>
12std::string CMakeToWixPath(std::string const& cygpath)
13{
14 std::vector<char> winpath_chars;
15 ssize_t winpath_size;
16
17 // Get the required buffer size.
18 winpath_size =
19 cygwin_conv_path(CCP_POSIX_TO_WIN_A, cygpath.c_str(), nullptr, 0);
20 if (winpath_size <= 0) {
21 return cygpath;
22 }
23
24 winpath_chars.assign(static_cast<size_t>(winpath_size) + 1, '\0');
25
26 winpath_size = cygwin_conv_path(CCP_POSIX_TO_WIN_A, cygpath.c_str(),
27 winpath_chars.data(), winpath_size);
28 if (winpath_size < 0) {
29 return cygpath;
30 }
31
32 return cmTrimWhitespace(winpath_chars.data());
33}
34#else
35std::string CMakeToWixPath(std::string const& path)
36{

Callers 5

RunLightCommandMethod · 0.85
PackageWithWixMethod · 0.85
PackageWithWix3Method · 0.85
CopyDefinitionMethod · 0.85
EmitComponentFileMethod · 0.85

Calls 4

cmTrimWhitespaceFunction · 0.85
c_strMethod · 0.80
assignMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…