summaryrefslogtreecommitdiffstats
path: root/externals/cmake-modules
diff options
context:
space:
mode:
authorAlexandre Bouvier <contact@amb.tf>2022-12-31 14:23:38 +0100
committerAlexandre Bouvier <contact@amb.tf>2023-01-02 18:22:07 +0100
commiteceee8c3d930563e26841d556f9acb965eab67c8 (patch)
treec17a3f5362f35d7ffbcc46c881f1b656e71db81b /externals/cmake-modules
parentMerge pull request #9541 from abouvier/cmake-option (diff)
downloadyuzu-eceee8c3d930563e26841d556f9acb965eab67c8.tar
yuzu-eceee8c3d930563e26841d556f9acb965eab67c8.tar.gz
yuzu-eceee8c3d930563e26841d556f9acb965eab67c8.tar.bz2
yuzu-eceee8c3d930563e26841d556f9acb965eab67c8.tar.lz
yuzu-eceee8c3d930563e26841d556f9acb965eab67c8.tar.xz
yuzu-eceee8c3d930563e26841d556f9acb965eab67c8.tar.zst
yuzu-eceee8c3d930563e26841d556f9acb965eab67c8.zip
Diffstat (limited to 'externals/cmake-modules')
-rw-r--r--externals/cmake-modules/WindowsCopyFiles.cmake27
1 files changed, 0 insertions, 27 deletions
diff --git a/externals/cmake-modules/WindowsCopyFiles.cmake b/externals/cmake-modules/WindowsCopyFiles.cmake
deleted file mode 100644
index 08b598365..000000000
--- a/externals/cmake-modules/WindowsCopyFiles.cmake
+++ /dev/null
@@ -1,27 +0,0 @@
-# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
-# SPDX-License-Identifier: GPL-2.0-or-later
-
-# This file provides the function windows_copy_files.
-# This is only valid on Windows.
-
-# Include guard
-if(__windows_copy_files)
- return()
-endif()
-set(__windows_copy_files YES)
-
-# Any number of files to copy from SOURCE_DIR to DEST_DIR can be specified after DEST_DIR.
-# This copying happens post-build.
-function(windows_copy_files TARGET SOURCE_DIR DEST_DIR)
- # windows commandline expects the / to be \ so switch them
- string(REPLACE "/" "\\\\" SOURCE_DIR ${SOURCE_DIR})
- string(REPLACE "/" "\\\\" DEST_DIR ${DEST_DIR})
-
- # /NJH /NJS /NDL /NFL /NC /NS /NP - Silence any output
- # cmake adds an extra check for command success which doesn't work too well with robocopy
- # so trick it into thinking the command was successful with the || cmd /c "exit /b 0"
- add_custom_command(TARGET ${TARGET} POST_BUILD
- COMMAND ${CMAKE_COMMAND} -E make_directory ${DEST_DIR}
- COMMAND robocopy ${SOURCE_DIR} ${DEST_DIR} ${ARGN} /NJH /NJS /NDL /NFL /NC /NS /NP || cmd /c "exit /b 0"
- )
-endfunction()