diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-01-19 14:04:09 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-19 14:04:09 -0800 |
| commit | 2b48e780860e860addf4bacf7ec4cec883f92d48 (patch) | |
| tree | 5f04a001408a72f53dbd79654779d109769389de /scripts | |
| parent | d92a4e7914f2f724d9ac9e7e442414f6bd624a5f (diff) | |
| parent | 0600d2b842a28dcffc24aec21600b9f2df7549fc (diff) | |
| download | vcpkg-2b48e780860e860addf4bacf7ec4cec883f92d48.tar.gz vcpkg-2b48e780860e860addf4bacf7ec4cec883f92d48.zip | |
Merge pull request #529 from codicodi/add-glib
Add glib
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/cmake/vcpkg_common_functions.cmake | 1 | ||||
| -rw-r--r-- | scripts/cmake/vcpkg_copy_tool_dependencies.cmake | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_common_functions.cmake b/scripts/cmake/vcpkg_common_functions.cmake index ff1fae953..6e60bf2bc 100644 --- a/scripts/cmake/vcpkg_common_functions.cmake +++ b/scripts/cmake/vcpkg_common_functions.cmake @@ -11,3 +11,4 @@ include(vcpkg_configure_cmake) include(vcpkg_configure_qmake) include(vcpkg_apply_patches) include(vcpkg_copy_pdbs) +include(vcpkg_copy_tool_dependencies) diff --git a/scripts/cmake/vcpkg_copy_tool_dependencies.cmake b/scripts/cmake/vcpkg_copy_tool_dependencies.cmake new file mode 100644 index 000000000..432e3c12a --- /dev/null +++ b/scripts/cmake/vcpkg_copy_tool_dependencies.cmake @@ -0,0 +1,16 @@ +# Copy dlls for all tools in TOOL_DIR + +function(vcpkg_copy_tool_dependencies TOOL_DIR) + macro(search_for_dependencies PATH_TO_SEARCH) + file(GLOB TOOLS ${TOOL_DIR}/*.exe ${TOOL_DIR}/*.dll) + foreach(TOOL ${TOOLS}) + execute_process(COMMAND powershell -noprofile -executionpolicy UnRestricted -nologo + -file ${VCPKG_ROOT_DIR}/scripts/buildsystems/msbuild/applocal.ps1 + -targetBinary ${TOOL} + -installedDir ${PATH_TO_SEARCH} + OUTPUT_VARIABLE OUT) + endforeach() + endmacro() + search_for_dependencies(${CURRENT_PACKAGES_DIR}/bin) + search_for_dependencies(${CURRENT_INSTALLED_DIR}/bin) +endfunction() |
