We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On https://docs.gradle.org/current/userguide/cpp_library_plugin.html#sec:cpp_library_build_variants it says... "The linkage expresses whether a shared library or static library should be created. Libraries can produce a shared library, a static library or both."
When I specify the following only the shared (build/lib/main/debug/shared/windows/*.[dll ilk pdb]) files are produced.
linkage.set(listOf(Linkage.STATIC, Linkage.SHARED))
When I specify the following only the static library (build/lib/main/debug/windows/*.lib) file is produced.
linkage.set(listOf(Linkage.STATIC))
It is often useful to have both the static and shared library.
There is a github project https://github.com/phreed/sample-build-cpp-app-lib-kotlin-dsl/tree/master which demonstrates the issue.
./gradlew :myapp:assemble
There are three branches:
Windows 11 with VS Community 2017
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
On https://docs.gradle.org/current/userguide/cpp_library_plugin.html#sec:cpp_library_build_variants it says...
"The linkage expresses whether a shared library or static library should be created. Libraries can produce a shared library, a static library or both."
Current Behavior
When I specify the following only the shared (build/lib/main/debug/shared/windows/*.[dll ilk pdb]) files are produced.
When I specify the following only the static library (build/lib/main/debug/windows/*.lib) file is produced.
Context
It is often useful to have both the static and shared library.
Steps to Reproduce (for bugs)
There is a github project https://github.com/phreed/sample-build-cpp-app-lib-kotlin-dsl/tree/master which demonstrates the issue.
./gradlew :myapp:assemble
There are three branches:
Your Environment
Windows 11 with VS Community 2017
The text was updated successfully, but these errors were encountered: