forked from klee/klee
-
Notifications
You must be signed in to change notification settings - Fork 11
Move the dependencies from the submodules to build.sh
#163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule json
deleted from
6af826
Submodule optional
deleted from
0723ab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/usr/bin/env bash | ||
| install_build_dependencies_json() { | ||
| source "${DIR}/common-functions" | ||
|
||
| with_sudo apt update -y | ||
|
|
||
| dependencies=( | ||
|
||
| ca-certificates | ||
| wget | ||
| unzip | ||
| git | ||
| ) | ||
|
|
||
| #Install essential dependencies | ||
| with_sudo apt -y --no-install-recommends install "${dependencies[@]}" | ||
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/usr/bin/env bash | ||
| install_build_dependencies_json() { | ||
|
||
| # Install essential dependency | ||
| # Ignore if already installed | ||
| brew install wget || /usr/bin/true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| #!/usr/bin/env bash | ||
| setup_build_variables_json() { | ||
|
||
| JSON_INSTALL_PATH="${BASE}/json-${JSON_VERSION}" | ||
| json_url="https://github.com/nlohmann/json.git" | ||
| return 0 | ||
| } | ||
|
|
||
| download_json() { | ||
| source "${DIR}/common-functions" | ||
|
||
| # Download json | ||
| git_clone_or_update "${json_url}" "${JSON_INSTALL_PATH}" "${JSON_VERSION}" | ||
| touch "${JSON_INSTALL_PATH}"/.is_installed | ||
| } | ||
|
|
||
| build_json() { | ||
| return 0 | ||
| } | ||
|
|
||
| install_json() { | ||
| return 0 | ||
| } | ||
|
|
||
| is_installed_json() { | ||
| ( | ||
| setup_build_variables_json | ||
| [[ -f "${JSON_INSTALL_PATH}"/.is_installed ]] | ||
|
||
| ) || return 1 | ||
| } | ||
|
|
||
| get_build_artifacts_json() { | ||
| ( | ||
| setup_build_variables_json | ||
| echo "${JSON_INSTALL_PATH}" | ||
| ) | ||
| } | ||
|
|
||
| setup_artifact_variables_json() { | ||
| setup_build_variables_json | ||
| } | ||
|
|
||
| get_docker_config_id_json() { | ||
| ( | ||
| setup_build_variables_json | ||
| echo "${JSON_VERSION}" | ||
| ) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| #!/usr/bin/env bash | ||
| install_build_dependencies_optional() { | ||
|
||
| source "${DIR}/common-functions" | ||
|
||
| with_sudo apt update -y | ||
|
|
||
| dependencies=( | ||
|
||
| ca-certificates | ||
| wget | ||
| unzip | ||
| git | ||
| ) | ||
|
|
||
| #Install essential dependencies | ||
| with_sudo apt -y --no-install-recommends install "${dependencies[@]}" | ||
|
||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/usr/bin/env bash | ||
| install_build_dependencies_optional() { | ||
|
||
| # Install essential dependency | ||
| # Ignore if already installed | ||
| brew install wget || /usr/bin/true | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| #!/usr/bin/env bash | ||
| setup_build_variables_optional() { | ||
|
||
| OPTIONAL_INSTALL_PATH="${BASE}/optional-${OPTIONAL_VERSION}" | ||
| optional_url="https://github.com/martinmoene/optional-lite.git" | ||
| return 0 | ||
| } | ||
|
|
||
| download_optional() { | ||
| source "${DIR}/common-functions" | ||
|
||
| # Download optional | ||
| git_clone_or_update "${optional_url}" "${OPTIONAL_INSTALL_PATH}" "${OPTIONAL_VERSION}" | ||
| touch "${OPTIONAL_INSTALL_PATH}"/.is_installed | ||
| } | ||
|
|
||
| build_optional() { | ||
| return 0 | ||
| } | ||
|
|
||
| install_optional() { | ||
| return 0 | ||
| } | ||
|
|
||
| is_installed_optional() { | ||
| ( | ||
| setup_build_variables_optional | ||
| [[ -f "${OPTIONAL_INSTALL_PATH}"/.is_installed ]] | ||
|
||
| ) || return 1 | ||
| } | ||
|
|
||
| get_build_artifacts_optional() { | ||
| ( | ||
| setup_build_variables_optional | ||
| echo "${OPTIONAL_INSTALL_PATH}" | ||
| ) | ||
| } | ||
|
|
||
| setup_artifact_variables_optional() { | ||
| setup_build_variables_optional | ||
| } | ||
|
|
||
| get_docker_config_id_optional() { | ||
| ( | ||
| setup_build_variables_optional | ||
| echo "${OPTIONAL_VERSION}" | ||
| ) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/usr/bin/env bash | ||
| # shellcheck disable=SC2034 | ||
|
|
||
| # Build information for json | ||
|
||
| required_variables_json=( | ||
|
||
| "JSON_VERSION" | ||
| ) | ||
|
|
||
| # Artifacts json depends on | ||
| artifact_dependency_json=("") | ||
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| #!/usr/bin/env bash | ||
| # shellcheck disable=SC2034 | ||
|
|
||
| # Build information for optional | ||
|
||
| required_variables_optional=( | ||
|
||
| "OPTIONAL_VERSION" | ||
| ) | ||
|
|
||
| # Artifacts optional depends on | ||
| artifact_dependency_optional=("") | ||
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.