forked from trustwallet/wallet-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Download libraries instead of using submodule (trustwallet#25)
- Loading branch information
1 parent
ba4fa31
commit 4f9c5b0
Showing
15 changed files
with
357 additions
and
279 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -9,5 +9,7 @@ xcode/ | |
|
||
# Dependencies | ||
node_modules | ||
lib/json | ||
lib/protobuf | ||
|
||
.idea/ |
This file contains 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 |
---|---|---|
@@ -1,9 +1,3 @@ | ||
[submodule "lib/protobuf"] | ||
path = lib/protobuf | ||
url = https://github.com/protocolbuffers/protobuf.git | ||
[submodule "lib/googletest"] | ||
path = lib/googletest | ||
url = https://github.com/google/googletest.git | ||
[submodule "lib/json"] | ||
path = lib/json | ||
url = https://github.com/nlohmann/json.git |
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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,55 @@ | ||
--- | ||
format_version: '6' | ||
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | ||
project_type: other | ||
trigger_map: | ||
- push_branch: master | ||
workflow: primary | ||
- pull_request_source_branch: "*" | ||
pull_request_target_branch: master | ||
workflow: primary | ||
workflows: | ||
primary: | ||
steps: | ||
- [email protected]: | ||
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}' | ||
- [email protected]: {} | ||
- [email protected]: {} | ||
- [email protected]: | ||
title: Unlink Node | ||
inputs: | ||
- content: brew unlink node@8 || true | ||
- [email protected]: | ||
inputs: | ||
- packages: autoconf automake cmake protobuf swift-protobuf boost node | ||
- [email protected]: | ||
title: Run Tests | ||
inputs: | ||
- content: |- | ||
#!/usr/bin/env bash | ||
set -e | ||
set -x | ||
tools/generate-files | ||
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release | ||
make -C build tests | ||
build/tests/tests --gtest_output=xml | ||
- [email protected]: | ||
title: Run Ruby Tests | ||
inputs: | ||
- content: | | ||
#!/usr/bin/env bash | ||
set -e | ||
set -x | ||
cd codegen | ||
rake | ||
- [email protected]: | ||
inputs: | ||
- source_root_path: "$BITRISE_SOURCE_DIR/swift" | ||
- [email protected]: | ||
inputs: | ||
- scheme: TrustWalletCore | ||
- project_path: swift/TrustWalletCore.xcworkspace | ||
- [email protected]: {} | ||
- [email protected]: {} |
This file contains 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 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,20 @@ | ||
set(json_PREFIX ${PROJECT_SOURCE_DIR}/lib/json) | ||
file(MAKE_DIRECTORY ${json_PREFIX}/include/nlohmann) | ||
|
||
ExternalProject_Add( | ||
nlohmann_json | ||
|
||
PREFIX "nlohmann" | ||
INSTALL_DIR ${json_PREFIX} | ||
|
||
URL https://github.com/nlohmann/json/releases/download/v3.5.0/include.zip | ||
URL_HASH SHA256=3564da9c5b0cf2e032f97c69baedf10ddbc98030c337d0327a215ea72259ea21 | ||
|
||
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND "" | ||
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/nlohmann <INSTALL_DIR>/include/nlohmann | ||
) | ||
ExternalProject_Get_Property(nlohmann_json source_dir) | ||
|
||
set(json_SOURCE_DIR ${source_dir}) | ||
set(json_INCLUDE_DIRS ${json_SOURCE_DIR}) |
Oops, something went wrong.