You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -61,57 +76,55 @@ Additionally, the following prerequisites are also needed, but they are managed
61
76
62
77
## Full Build
63
78
64
-
The full build can be triggered with one top-level script:
79
+
WalletCore is ready to be built after installing all prerequisites.
80
+
Building for each platform is different.
65
81
66
-
```shell
67
-
./bootstrap.sh
68
-
```
82
+
### Native building and testing
69
83
70
-
Or, broken up in smaller steps:
84
+
To build and run tests on the native platform (Linux, MacOS), run the following command:
71
85
72
86
```shell
73
-
## Linux
74
-
./tools/install-sys-dependencies-linux
75
-
76
-
## MacOS
77
-
./tools/install-sys-dependencies-mac
78
-
79
-
./tools/install-dependencies
80
-
./tools/install-rust-dependencies
87
+
./tools/build-and-test
81
88
```
82
89
83
-
This script downloads and compiles some prerequisites.
90
+
Or, broken up in smaller steps:
91
+
92
+
1. This script generates source files, coin- and protobuf files.
93
+
Needs to be re-run whenever `registry.json`, or protobuf files, or `./include` interface, or Rust codebase are changed.
84
94
85
95
```shell
86
96
./tools/generate-files
87
97
```
88
98
89
-
This script generates source files, coin- and protobuf files. Needs to be re-run whenever `registry.json` or protobuf files are changed.
99
+
2. Standard CMake and make commands for building the library. The `cmake` command needs to be re-run whenever a new C++ source file is added.
90
100
91
101
```shell
92
102
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Debug
93
-
make -Cbuild
94
103
```
95
104
96
-
Standard CMake and make commands for building the library. The `cmake` command needs to be re-run whenever a new source file is added.
97
-
98
-
After build, _unit tests_ can be executed:
105
+
3. Build TrezorCrypto and WalletCore C++ tests.
99
106
100
107
```shell
101
-
./build/tests/tests tests --gtest_filter=*
108
+
make -Cbuild -j12 tests TrezorCryptoTests
102
109
```
103
110
104
-
The generate-cmake-make-test steps are also available together in one script:
111
+
4. Run TrezorCrypto and WalletCore C++ tests.
105
112
106
113
```shell
107
-
./tools/build-and-test
114
+
./build/tests/tests tests --gtest_filter=*
108
115
```
109
116
110
117
If you'd rather use and IDE for building and debugging you can specify the `-G` option to cmake. For instance to use Xcode call `cmake -Bxcode -GXcode -DCMAKE_BUILD_TYPE=Debug` and use the generated project in the xcode folder.
0 commit comments