Advertisement
apoorv569

meson.build

May 2nd, 2021
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. project('SampleHive', 'cpp',
  2. version : '0.1',
  3. license : 'GPL v3',
  4. default_options : ['warning_level=1',
  5. 'cpp_std=c++11'])
  6.  
  7. src = [
  8.  
  9. 'src/App.cpp',
  10. 'src/MainFrame.cpp',
  11. 'src/Browser.cpp',
  12. 'src/SettingsDialog.cpp',
  13. 'src/TagEditorDialog.cpp',
  14. 'src/Database.cpp',
  15. 'src/Serialize.cpp',
  16. 'src/TreeItemDialog.cpp',
  17. 'src/Tags.cpp',
  18.  
  19. ]
  20.  
  21. wxconfig = find_program (['wx-config-gtk3', 'wx-config'])
  22. wx_modules = ['media', 'std']
  23. wx_cxx_flags = []
  24. wx_libs = []
  25. foreach module : wx_modules
  26. wx_cxx_flags += run_command (wxconfig, '--cxxflags', module).stdout ().strip ().split()
  27. wx_libs += run_command (wxconfig, '--libs', module).stdout ().strip ().split()
  28. endforeach
  29.  
  30. wx = dependency('wxwidgets', version: '>=3.0.0')
  31. wxsvg = dependency('libwxsvg')
  32. taglib = dependency('taglib')
  33. sqlite3 = dependency('sqlite3')
  34. yaml = dependency('yaml-cpp')
  35.  
  36. executable('SampleHive',
  37. sources : src,
  38. cpp_args: [wx_cxx_flags],
  39. link_args: [wx_libs],
  40. dependencies : [wx, wxsvg, taglib, sqlite3, yaml])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement