As of 4.1, Gradle includes several plugins for building applications and libraries from C++ and Swift sources. Check out the blog post for an introduction.
Issues related to Gradle's support for native languages are tracked in this repo.
This project adheres to the Gradle Code of Conduct. By participating, you are expected to uphold this code.
Features
Compile and link libraries and applications from C++ and Swift source.
Build C++ for macOS, Linux and Windows.
Build Swift for macOS and Linux.
Supports GCC, Clang, Visual C++, MinGW compilers.
Fast parallel, incremental compilation for C++.
Incremental compilation for Swift.
Distributed caching of C++ and Swift compilation.
Transitive dependency management, including support for composite builds and pre-built binaries from a Maven binary repository. Other pre-built binaries are not yet supported.
Source dependencies.
Publishing dependencies to a Maven binary repository.
Tool chain discovery based on requirements declared in the build, including discovery of these compilers when running on cygwin or using Visual C++.
Xcode integration, to allow you to generate Xcode workspace and project files from your Gradle build.
Visual Studio integration, to allow you to generate a Visual Studio solution and project files from your Gradle build.
XCTest integration, supported on macOs and Linux.
Contributing
If you're looking to contribute to Gradle or provide a patch/pull request, you can find more info here.
请发表评论