meson.build 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 2018-2019 Daniel 'grindhold' Brendle
  2. #
  3. # This file is part of libphexfile.
  4. #
  5. # libphexfile is free software: you can redistribute it and/or
  6. # modify it under the terms of the GNU Lesser General Public License
  7. # as published by the Free Software Foundation, either
  8. # version 3 of the License, or (at your option) any later
  9. # version.
  10. #
  11. # libphexfile is distributed in the hope that it will be
  12. # useful, but WITHOUT ANY WARRANTY; without even the implied
  13. # warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  14. # PURPOSE. See the GNU Lesser General Public License for more details.
  15. #
  16. # You should have received a copy of the GNU Lesser General Public
  17. # License along with libphexfile.
  18. # If not, see http://www.gnu.org/licenses/.
  19. project('phexfile', 'vala', 'c', license:'LGPL')
  20. pkgconfig = import('pkgconfig')
  21. api = '0.2'
  22. phexfile_version = api + '.0'
  23. glib = dependency('glib-2.0')
  24. gobject = dependency('gobject-2.0')
  25. gio = dependency('gio-2.0')
  26. json_glib = dependency('json-glib-1.0')
  27. subdir('src')
  28. subdir('test')
  29. pkgconfig.generate(libraries : phexfile_lib,
  30. version : phexfile_version,
  31. name : 'phexfile',
  32. filebase : meson.current_build_dir()+'/phexfile-'+api,
  33. requires : 'glib-2.0 gobject-2.0 gio-2.0 json-glib-1.0',
  34. subdirs: 'phexfile-'+api,
  35. description : 'A library to parse and eventually write the simulation format of phex.',
  36. install: true)
  37. install_data('phexfile-'+api+'.deps', install_dir: get_option('datadir') + '/vala/vapi')