My Noir.Graphics component, does require certain libraries to be linked.
For windows I need “User32.dll”, “OpenGL32.dll” to be linked,
on linux I need X11 and MesaGLDev (I currently don’t now the libraries name).
My sound Component will need certain libraries too.
On the other hand, I’ll need to exclude certain files, which are used in conjunction with the PIMPL-Pattern (also known as Bridge-Pattern). These files are merely implementations for every platform.
How can this be achieved the Gradle DSL, since I am fairly new to it?
That’s my current gradle file:
Thanks for your answer.
Currently I am using the second approach since I have troubles understanding
how to configure prebuildt libraries.
I have adapted my buildfile a bit and fixed some errors, which came from my lack of knowledge of gradle’s DSL.
Will there be an official tutorial?
The tutorials presented on the “Cpp Build Operator” Page are deprecated and the Gradle Docs are kind off unclear (still, in comparison to CMake I got something to build ).