meson.build 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. pkgconfig = import('pkgconfig')
  25. glib = dependency('glib-2.0')
  26. gobject = dependency('gobject-2.0')
  27. math = meson.get_compiler('c').find_library('m', required: true)
  28. if get_option('enable_gtk3')
  29. gtk3 = dependency('gtk+-3.0', version: '>=3.20.0')
  30. endif
  31. if get_option('enable_gtk4')
  32. gtk4 = dependency('gtk4')
  33. endif
  34. g_ir_compiler = find_program('g-ir-compiler')
  35. if get_option('enable_gflow')
  36. subdir('libgflow')
  37. endif
  38. if get_option('enable_gtk3')
  39. subdir('libgtkflow3')
  40. endif
  41. if get_option('enable_gtk4')
  42. subdir('libgtkflow4')
  43. endif
  44. if get_option('enable_gflow') and get_option('enable_gtk3')
  45. subdir('test')
  46. endif
  47. if get_option('enable_gflow') and get_option('enable_gtk4')
  48. subdir('gtkflow4-demo')
  49. endif