Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions exports/taskfiles/utils/cmake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ tasks:
# omitted, the native build tool's default number is used. See `man cmake`.
# @param {string} [CMAKE_SETTINGS_DIR] The directory where the project's CMake settings file
# should be stored.
# @param {string} [CMAKE_SOURCE_DIR] Relative path from the extracted tarball directory to the
# CMake source directory containing the CMakeLists.txt file. Defaults to ".", meaning the root
# of the extracted directory.
# @param {string[]} [CMAKE_TARGETS] A list of specific targets to build instead of the default
# target.
install-remote-tar:
Expand All @@ -172,29 +175,31 @@ tasks:
{{default "" .CMAKE_JOBS}}
CMAKE_SETTINGS_DIR: >-
{{default "" .CMAKE_SETTINGS_DIR}}
CMAKE_SOURCE_DIR: >-
Comment thread
Bill-hbrhbr marked this conversation as resolved.
{{default "." .CMAKE_SOURCE_DIR}}
Comment thread
Bill-hbrhbr marked this conversation as resolved.
CMAKE_TARGETS:
ref: "default (list) .CMAKE_TARGETS"

Comment thread
Bill-hbrhbr marked this conversation as resolved.
# Directory parameters
BUILD_DIR: "{{.WORK_DIR}}/{{.CMAKE_PACKAGE_NAME}}-build"
EXTRACTED_DIR: "{{.WORK_DIR}}/{{.CMAKE_PACKAGE_NAME}}-extracted"
INSTALL_PREFIX: "{{.WORK_DIR}}/{{.CMAKE_PACKAGE_NAME}}-install"
SOURCE_DIR: "{{.WORK_DIR}}/{{.CMAKE_PACKAGE_NAME}}-src"

requires:
vars: ["CMAKE_PACKAGE_NAME", "TAR_SHA256", "TAR_URL", "WORK_DIR"]
deps:
- task: "remote:download-and-extract-tar"
vars:
FILE_SHA256: "{{.TAR_SHA256}}"
OUTPUT_DIR: "{{.SOURCE_DIR}}"
OUTPUT_DIR: "{{.EXTRACTED_DIR}}"
URL: "{{.TAR_URL}}"
cmds:
- task: "generate"
vars:
BUILD_DIR: "{{.BUILD_DIR}}"
EXTRA_ARGS:
ref: ".CMAKE_GEN_ARGS"
SOURCE_DIR: "{{.SOURCE_DIR}}"
SOURCE_DIR: "{{.EXTRACTED_DIR}}/{{.CMAKE_SOURCE_DIR}}"
- task: "build"
vars:
BUILD_DIR: "{{.BUILD_DIR}}"
Expand Down