Skip to content

Commit cd71fec

Browse files
committed
refactor(taskfiles)!: Remove directory parameters from utils:cmake:install-remote-tar.
1 parent c19656b commit cd71fec

1 file changed

Lines changed: 3 additions & 14 deletions

File tree

exports/taskfiles/utils/cmake.yaml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,6 @@ tasks:
148148
# project's CMake settings file should be stored.
149149
# @param {string[]} [CMAKE_TARGETS] A list of specific targets to build instead of the default
150150
# target.
151-
#
152-
# Directory parameters
153-
# @param {string} [BUILD_DIR={{.WORK_DIR}}/{{.NAME}}-build] Directory in which to generate the
154-
# build system and perform the build.
155-
# @param {string} [INSTALL_PREFIX={{.WORK_DIR}}/{{.NAME}}-install] Path prefix of where the
156-
# project should be installed.
157-
# @param {string} [SOURCE_DIR={{.WORK_DIR}}/{{.NAME}}-src] Directory in which to extract the tar
158-
# file.
159151
install-remote-tar:
160152
internal: true
161153
label: "{{.TASK}}:{{.NAME}}-{{.TAR_URL}}-{{.INSTALL_PREFIX}}"
@@ -175,12 +167,9 @@ tasks:
175167
ref: "default (list) .CMAKE_TARGETS"
176168

177169
# Directory parameters
178-
BUILD_DIR: >-
179-
{{default (printf "%s/%s-build" .WORK_DIR .NAME) .BUILD_DIR}}
180-
INSTALL_PREFIX: >-
181-
{{default (printf "%s/%s-install" .WORK_DIR .NAME) .INSTALL_PREFIX}}
182-
SOURCE_DIR: >-
183-
{{default (printf "%s/%s-src" .WORK_DIR .NAME) .SOURCE_DIR}}
170+
BUILD_DIR: "{{.WORK_DIR}}/{{.NAME}}-build"
171+
INSTALL_PREFIX: "{{.WORK_DIR}}/{{.NAME}}-install"
172+
SOURCE_DIR: "{{.WORK_DIR}}/{{.NAME}}-src"
184173

185174
requires:
186175
vars: ["NAME", "TAR_SHA256", "TAR_URL", "WORK_DIR"]

0 commit comments

Comments
 (0)