build.gradle 531 B

1234567891011121314151617181920212223242526272829303132333435
  1. model {
  2. components {
  3. Data(NativeLibrarySpec) {
  4. sources {
  5. rc {
  6. source {
  7. srcDir '..'
  8. include 'DLLVersion.rc'
  9. }
  10. }
  11. cpp {
  12. source {
  13. srcDir 'src'
  14. include '**/*.cpp'
  15. }
  16. exportedHeaders {
  17. srcDir 'include'
  18. }
  19. lib project: ':Foundation', library: 'Foundation'
  20. }
  21. }
  22. }
  23. }
  24. binaries {
  25. all {
  26. }
  27. withType(SharedLibraryBinarySpec) {
  28. if (toolChain in VisualCpp) {
  29. cppCompiler.define "Data_EXPORTS"
  30. }
  31. }
  32. }
  33. }
  34. task poco { dependsOn "assemble" }