Platform dependent native tasks

Hi,

In the Gradle documentation about native binaries it is said that one can apply additional attributes for each platfrom, so you can include other files etc.
How can these additional attributes be used?
(I have a task that checks if a file exists, that files name depends on platform and architecture)