# build-tool **Repository Path**: joey-fudan/build-tool ## Basic Information - **Project Name**: build-tool - **Description**: c++ tool to build dependent libraries - **Primary Language**: Shell - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-01-17 - **Last Updated**: 2025-04-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: Cpp ## README # Usage Run the following command in the new project. ```shell git submodule add https://gitee.com/joey-fudan/build-tool.git .build-tool git submodule add https://gitee.com/joey-fudan/benchmark.git .build-tool-dep/benchmark # v1.9.2 git submodule add https://gitee.com/joey-fudan/googletest.git .build-tool-dep/googletest # v1.16.0 git submodule add https://gitee.com/joey-fudan/fmt.git .build-tool-dep/fmt # 11.1.4 git submodule add https://gitee.com/joey-fudan/zlib.git .build-tool-dep/zlib # v1.3.1 git submodule add https://gitee.com/joey-fudan/openssl.git .build-tool-dep/openssl # openssl-3.4.1 git submodule add https://gitee.com/joey-fudan/curl.git .build-tool-dep/curl # curl-8_12_1 git submodule add https://gitee.com/joey-fudan/quill.git .build-tool-dep/quill # v9.0.0 git submodule add https://gitee.com/joey-fudan/abseil-cpp.git .build-tool-dep/abseil-cpp # 20250127.1 ``` After all needed library repos are pulled down, run the following to build them. Make sure to set compiling env variables before running shell scripts, i.e., `CC`, `CFLAGS`, `LDFLAGS`, `PKG_CONFIG_PATH`, ... ```shell .build-tool/build.sh benchmark googletest ``` `.build-tool/build.sh --all` will build all libraries in `.build-tool-dep`. Run the following command to delete the submodule. ```shell git submodule deinit -f path-to-submodule rm -rf .git/modules/path-to-submodule git rm -f path-to-submodule ```