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
| Windows | Windows 2022 | MSVC 2022 | Compile, Testing |
22
22
23
23
### Clone the code
@@ -41,9 +41,45 @@ This script could help you set a developing environment from a minimal installat
41
41
42
42
## Building from source
43
43
44
-
You could build the debug versioned SDK with `make` in the source directory, or `make all-release` to build the release version.
44
+
You can build the debug versioned SDK with `make` in the source directory, or `make all-release` to build the release version.
45
45
46
-
By default, `make` uses [Conan 2](https://conan.io/) to manage dependencies (gRPC, protobuf, abseil, etc.). The `scripts/build.sh` handles Conan integration automatically.
46
+
By default, `make` uses [Conan 2](https://conan.io/) to manage dependencies (gRPC, protobuf, abseil, etc.). The top-level `Makefile` delegates to `scripts/build.sh`, which handles Conan integration and CMake configuration automatically.
47
+
48
+
Common top-level make targets:
49
+
50
+
```shell
51
+
$ make # debug build, same as make all-debug
52
+
$ make all-release # release build
53
+
$ make test# debug build with unit tests and mocked integration tests enabled
54
+
$ make test-release # release build with unit tests and mocked integration tests enabled
55
+
$ make lint # build with unit tests and run lint checks
56
+
$ make package # release build and create DEB/RPM packages under cmake_build/Pack
57
+
$ make clean # remove build directories
58
+
```
59
+
60
+
You can pass environment variables through `make` to control `scripts/build.sh` and CMake:
61
+
62
+
```shell
63
+
$ MILVUS_SDK_VERSION=v2.6.3 make all-release
64
+
$ CMAKE_INSTALL_PREFIX=/opt/milvus make install
65
+
$ BUILD_SHARED_LIBS=OFF make all-release
66
+
$ CPPSTD=17 make test
67
+
```
68
+
69
+
`scripts/build.sh` also supports command-line flags. Most users should prefer the make targets above, but the script can be invoked directly for more control:
`MILVUS_SDK_VERSION` is embedded into the SDK version string generated from `src/impl/version.h.in`. If you do not pass `MILVUS_SDK_VERSION` or `scripts/build.sh -v`, CMake derives the version from the latest reachable git tag. For release builds, pass the intended version explicitly or build from the release tag.
Copy file name to clipboardExpand all lines: doc/html/version_8h_source.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@
85
85
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment">// See the License for the specific language governing permissions and</span></div>
86
86
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">// limitations under the License.</span></div>
0 commit comments