<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 30/07/2015 19:36, Rashad M wrote:<br>
</div>
<blockquote
cite="mid:CANNqv9cbBvnBnWPG6MMAFLGa29yr3FhK_2NqS3DphPgCz9j3XQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi all,</div>
</blockquote>
Hi Rashad<br>
<blockquote
cite="mid:CANNqv9cbBvnBnWPG6MMAFLGa29yr3FhK_2NqS3DphPgCz9j3XQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>We have a similar way here to get dll dependencies
recursively and create a zip archive. Ideally, this could be
integrated in cmake but not sure if that will be ok on cmake
side. The code doesn't uses fixup_bundle(..) but follows a
similar function syntax.</div>
<div><br>
</div>
<div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent"> package_mingw(</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent"> ARCH "${mxearch}"</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent"> MXEROOT "${mxeroot}"</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent"> PREFIX_DIR "${archive_name}"</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent"> PEFILES "${pefiles}"</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent"> SEARCHDIRS "")</div>
</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent">
</div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent">more details here: <a moz-do-not-send="true" href="https://git.orfeo-toolbox.org/otb.git/blob/HEAD:/CMakeLists.txt#l422">https://git.orfeo-toolbox.org/otb.git/blob/HEAD:/CMakeLists.txt#l422</a></div>
<div class="pre" style="margin:0px;padding:0px;border:0px;outline:0px;font-size:13px;vertical-align:baseline;font-family:Consolas,'Bitstream Vera Sans Mono',monospace;white-space:pre-wrap;color:rgb(0,0,0);line-height:18.2000007629395px;background:transparent">
</div>
<div>Note: this was only tested on a cross compiling build and
contains some code specific for our project. </div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://git.orfeo-toolbox.org/otb.git/blob/HEAD:/CMake/MinGWPackage.cmake">https://git.orfeo-toolbox.org/otb.git/blob/HEAD:/CMake/MinGWPackage.cmake</a></div>
</div>
</blockquote>
That is all very Windows specific CMake already uses the same
technique as your code but in a more platform independent way. You
may want to consider optimizing in the same way as has been added to
the BundleUtilities.cmake helper GetPrerequisites.cmake in:<br>
<br>
<a class="moz-txt-link-freetext" href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f01a8823">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f01a8823</a><br>
<br>
since the objdump -p output on large framework libraries like Qt
(10000+ lines) is very inefficient when processed as a CMake
variable. In our CMake built Qt5 project we are getting huge speed
ups on the install phase on Windows with this change.<br>
<br>
Regards<br>
Bill Somerville.<br>
<br>
<blockquote
cite="mid:CANNqv9cbBvnBnWPG6MMAFLGa29yr3FhK_2NqS3DphPgCz9j3XQ@mail.gmail.com"
type="cite">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jul 28, 2015 at 7:04 PM, Brad
King <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:brad.king@kitware.com" target="_blank">brad.king@kitware.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex"><span
class="">On 07/28/2015 12:51 PM, Bill Somerville wrote:<br>
> The possible lack of grep is a potential issue so
your read<br>
> back from file suggestion is interesting, is there a
recognized place to<br>
> write temporary files like this?<br>
<br>
</span>IIRC the code in question runs during "cmake -P
cmake_install.cmake"<br>
scripts so CMAKE_CURRENT_BINARY_DIR may be a reasonable
choice.<br>
If for any reason you need to randomize the file name then
you<br>
could use string(RANDOM).<br>
<br>
Since this is specific to Windows perhaps $ENV{TEMP} will be
useful,<br>
though I don't recall off the top of my head whether
applications<br>
are supposed to read that directly. Certainly a randomized
file<br>
name would be needed if a shared temp dir were used.<br>
<br>
-Brad<br>
<br>
--<br>
<br>
Powered by <a moz-do-not-send="true"
href="http://www.kitware.com" rel="noreferrer"
target="_blank">www.kitware.com</a><br>
<span class=""><br>
Please keep messages on-topic and check the CMake FAQ at:
<a moz-do-not-send="true"
href="http://www.cmake.org/Wiki/CMake_FAQ"
rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
</span><span class="">Kitware offers various services to
support the CMake community. For more information on each
offering, please visit:<br>
<br>
CMake Support: <a moz-do-not-send="true"
href="http://cmake.org/cmake/help/support.html"
rel="noreferrer" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
</span>CMake Consulting: <a moz-do-not-send="true"
href="http://cmake.org/cmake/help/consulting.html"
rel="noreferrer" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
<span class="im HOEnZb">CMake Training Courses: <a
moz-do-not-send="true"
href="http://cmake.org/cmake/help/training.html"
rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a></a><br>
<br>
</span><span class="im HOEnZb">Visit other Kitware
open-source projects at <a moz-do-not-send="true"
href="http://www.kitware.com/opensource/opensource.html"
rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
</span>
<div class="HOEnZb">
<div class="h5">Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true"
href="http://public.kitware.com/mailman/listinfo/cmake"
rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
<div class="gmail_signature">
<div><font face="arial, helvetica, sans-serif">Regards,<br>
Rashad</font></div>
</div>
</div>
</blockquote>
<br>
</body>
</html>