Skip to content

Commit

Permalink
Correct code-workspace to include build-dependent libbitcoin projects…
Browse files Browse the repository at this point in the history
… with repositories.
  • Loading branch information
pmienk committed Oct 31, 2024
1 parent a085676 commit dc2fdb1
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions templates/gsl.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ function workflow_relative_path(repository, path_prefix)
canonical_path_name(my.repository)), my.subpath)
endfunction

function has_repository(build)
define my.build = has_repository.build
return defined(my.build.repository)
endfunction

function is_libbitcoin_project(build)
define my.build = is_libbitcoin_project.build
return defined(my.build.github) & (my.build.github = "libbitcoin")
endfunction

# Generation
###############################################################################
.endtemplate
Expand All @@ -34,9 +44,14 @@ endfunction
. output(my.out_file)
{
"folders": [
. new projects as _cumulative
. cumulative_install(_cumulative, generate, _repository)
. for _cumulative.build as _build where is_libbitcoin_project(_build) & has_repository(_build)
{
"path": "../../../$(_repository.name)"
}
"path": "../../../$(_build.repository)"
}$(last() ?? "" ? ",")
. endfor
. endnew
],
"settings": {}
}
Expand Down

0 comments on commit dc2fdb1

Please sign in to comment.