# More details to generat cpp dependencies

**URL:** <https://discuss.gradle.org/t/more-details-to-generat-cpp-dependencies/11567>\
**Category:** Help/Discuss\
**Created:** [September 10, 2015, 3:09pm UTC](https://discuss.gradle.org/t/more-details-to-generat-cpp-dependencies/11567 "2015-09-10T15:09:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hela](https://avatars.discourse-cdn.com/v4/letter/h/ecccb3/32.png) [@hela](https://discuss.gradle.org/u/hela)\
**Post date:** [September 10, 2015, 3:09pm UTC](https://discuss.gradle.org/t/more-details-to-generat-cpp-dependencies/11567/1 "2015-09-10T15:09:09Z")

</div>

Continuing the discussion from [Gradle internals: use makedep to generate cpp dependencies](https://discuss.gradle.org/t/gradle-internals-use-makedep-to-generate-cpp-dependencies/7141/6):

> [@Gradle internals: use makedep to generate cpp dependencies](https://discuss.gradle.org/t/gradle-internals-use-makedep-to-generate-cpp-dependencies/7141/6):
>
> linkage: ‘api’

Continuing the discussion from [Gradle internals: use makedep to generate cpp dependencies](https://discuss.gradle.org/t/gradle-internals-use-makedep-to-generate-cpp-dependencies/7141/6):

> [@Gradle internals: use makedep to generate cpp dependencies](https://discuss.gradle.org/t/gradle-internals-use-makedep-to-generate-cpp-dependencies/7141/6):
>
> Try setting the linkage to “api” for the library:

Hallo,

I would like to ask:  
1- what are the attributes that exist to define a library?  
2- Also to know what _ **linkage** _ exactly do?

3- Is there a possibility to look in depth how the Gradle compile/internals builds the cpp dependencies?

Thank you  
Best regards,

Special Thank @ghhale for all given Tips in the forum 😄

---

<div class="post-metadata">

**Author:** ![sterling](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/sterling/32/5395_2.png) [@sterling](https://discuss.gradle.org/u/sterling)\
**Post date:** [September 10, 2015, 10:20pm UTC](https://discuss.gradle.org/t/more-details-to-generat-cpp-dependencies/11567/2 "2015-09-10T22:20:37Z")

</div>

I’d suggest looking at the User Guide’s chapter on building native binaries:  
[https://docs.gradle.org/current/userguide/nativeBinaries.html](https://docs.gradle.org/current/userguide/nativeBinaries.html)

And some of the samples that are included in the Gradle distribution:

> **[gradle/gradle](https://github.com/gradle/gradle/tree/master/subprojects/docs/src/samples/native-binaries)**
>
> gradle - Adaptable, fast automation for all
