Is it possible to have a native software build task copy a header file into the directory where the binaries are placed?


(Peter P.) #1

I have a C header file for all of my public APIs built as a NativeLibrarySpec and I wanted to if it is possible to have Gradle copy this header file into the directory where it places the binaries.


(Tony Abbott) #2

I’d try the same approach as in this post: [native] copy files into all install directories

Try adding an action to end of the LinkSharedLibrary or CreateStaticLibrary task, as appropriate.