meson.build 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #********************************************************************+
  2. # Copyright 2016-2022 Daniel 'grindhold' Brendle
  3. #
  4. # This file is part of libgtkflow.
  5. #
  6. # libgtkflow is free software: you can redistribute it and/or
  7. # modify it under the terms of the GNU Lesser General Public License
  8. # as published by the Free Software Foundation, either
  9. # version 3 of the License, or (at your option) any later
  10. # version.
  11. #
  12. # libgtkflow is distributed in the hope that it will be
  13. # useful, but WITHOUT ANY WARRANTY; without even the implied
  14. # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  15. # PURPOSE. See the GNU Lesser General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Lesser General Public
  18. # License along with libgtkflow.
  19. # If not, see http://www.gnu.org/licenses/.
  20. #*********************************************************************
  21. project ('gtkflow', 'vala', 'c', meson_version: '>=0.46.1')
  22. # If you can verify that this project also builds with a lower
  23. # meson version, feel free to change the meson_version kwarg
  24. api = '0.10'
  25. pkgconfig = import('pkgconfig')
  26. glib = dependency('glib-2.0')
  27. gobject = dependency('gobject-2.0')
  28. math = meson.get_compiler('c').find_library('m', required: true)
  29. if get_option('enable_gtk3')
  30. gtk3 = dependency('gtk+-3.0', version: '>=3.20.0')
  31. endif
  32. if get_option('enable_gtk4')
  33. gtk4 = dependency('gtk4')
  34. endif
  35. g_ir_compiler = find_program('g-ir-compiler')
  36. subdir('libgflow')
  37. if get_option('enable_gtk3')
  38. subdir('libgtkflow3')
  39. subdir('test')
  40. endif
  41. if get_option('enable_gtk4')
  42. subdir('libgtkflow4')
  43. subdir('test4')
  44. endif