aboutsummaryrefslogtreecommitdiff
path: root/docs/maintainers/vcpkg_execute_required_process.md
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-05-28 14:20:32 -0700
committerGitHub <noreply@github.com>2017-05-28 14:20:32 -0700
commit39b69e5b06df309b9dcfea55296a4c2c3eea93ce (patch)
tree6fcbc7ef1752c45270abfe21eabd5452876462d8 /docs/maintainers/vcpkg_execute_required_process.md
parente95a0986962405ab5b6e2da149462f04f199b2c8 (diff)
parent49cd3995862c0bed0701f84535812e1d0690896f (diff)
downloadvcpkg-39b69e5b06df309b9dcfea55296a4c2c3eea93ce.tar.gz
vcpkg-39b69e5b06df309b9dcfea55296a4c2c3eea93ce.zip
Merge pull request #1111 from Microsoft/docs
[vcpkg] Documentation revamp using MkDocs & readthedocs
Diffstat (limited to 'docs/maintainers/vcpkg_execute_required_process.md')
-rw-r--r--docs/maintainers/vcpkg_execute_required_process.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/maintainers/vcpkg_execute_required_process.md b/docs/maintainers/vcpkg_execute_required_process.md
new file mode 100644
index 000000000..4b1a7e081
--- /dev/null
+++ b/docs/maintainers/vcpkg_execute_required_process.md
@@ -0,0 +1,33 @@
+# vcpkg_execute_required_process
+
+Execute a process with logging and fail the build if the command fails.
+
+## Usage
+```cmake
+vcpkg_execute_required_process(
+ COMMAND <${PERL}> [<arguments>...]
+ WORKING_DIRECTORY <${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg>
+ LOGNAME <build-${TARGET_TRIPLET}-dbg>
+)
+```
+## Parameters
+### COMMAND
+The command to be executed, along with its arguments.
+
+### WORKING_DIRECTORY
+The directory to execute the command in.
+
+### LOGNAME
+The prefix to use for the log files.
+
+This should be a unique name for different triplets so that the logs don't conflict when building multiple at once.
+
+## Examples
+
+* [ffmpeg](https://github.com/Microsoft/vcpkg/blob/master/ports/ffmpeg/portfile.cmake)
+* [openssl](https://github.com/Microsoft/vcpkg/blob/master/ports/openssl/portfile.cmake)
+* [boost](https://github.com/Microsoft/vcpkg/blob/master/ports/boost/portfile.cmake)
+* [qt5](https://github.com/Microsoft/vcpkg/blob/master/ports/qt5/portfile.cmake)
+
+## Source
+[scripts/cmake/vcpkg_execute_required_process.cmake](https://github.com/Microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_execute_required_process.cmake)