A Gtk3 app that added 10% tax to a price
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

meson.build 730B

123456789101112131415161718192021222324252627282930
  1. gtk_dep = dependency('gtk+-3.0', version : '>=3.0.0')
  2. # gmodule-export-2.0 is needed to connect the handlers
  3. gmodule_dep = dependency('gmodule-export-2.0', version : '>=2.0')
  4. # Check for the math library
  5. cc = meson.get_compiler('c')
  6. m_dep = cc.find_library('m', required : false)
  7. sources = ['addtax.c']
  8. sources += ['misc.c']
  9. sources += [main_resource_c]
  10. # -no-pie so that the executable is double clickable in gui
  11. if cc.get_id() == 'gcc'
  12. c_args = ['-no-pie']
  13. link_args = ['-no-pie']
  14. else
  15. c_args = ''
  16. link_args = ''
  17. endif
  18. inc = include_directories('include')
  19. executable('addtax',
  20. sources,
  21. include_directories : inc,
  22. c_args: c_args,
  23. link_args: link_args,
  24. dependencies : [gtk_dep, m_dep, gmodule_dep],
  25. install : true)