2018-09-13 16:25:44 -03:00
|
|
|
gtk_dep = dependency('gtk+-3.0', version : '>=3.0.0')
|
|
|
|
# gmodule-export-2.0 is needed to connect the handlers
|
|
|
|
gmodule_dep = dependency('gmodule-export-2.0', version : '>=2.0')
|
|
|
|
|
|
|
|
# Check for the math library
|
|
|
|
cc = meson.get_compiler('c')
|
|
|
|
m_dep = cc.find_library('m', required : false)
|
|
|
|
|
|
|
|
sources = ['addtax.c']
|
|
|
|
sources += ['misc.c']
|
|
|
|
sources += [main_resource_c]
|
|
|
|
|
2018-09-25 16:36:01 -03:00
|
|
|
# -no-pie so that the executable is double clickable in gui
|
|
|
|
if cc.get_id() == 'gcc'
|
|
|
|
c_args = ['-no-pie']
|
|
|
|
link_args = ['-no-pie']
|
|
|
|
else
|
|
|
|
c_args = ''
|
|
|
|
link_args = ''
|
|
|
|
endif
|
|
|
|
|
|
|
|
inc = include_directories('include')
|
|
|
|
|
2018-10-13 13:28:59 -03:00
|
|
|
addtaxexe = executable('addtax',
|
2018-09-13 16:25:44 -03:00
|
|
|
sources,
|
2018-09-25 16:36:01 -03:00
|
|
|
include_directories : inc,
|
2018-09-25 16:39:35 -03:00
|
|
|
c_args : c_args,
|
|
|
|
link_args : link_args,
|
2018-09-13 16:25:44 -03:00
|
|
|
dependencies : [gtk_dep, m_dep, gmodule_dep],
|
|
|
|
install : true)
|
2018-10-13 13:28:59 -03:00
|
|
|
|
|
|
|
test('basic', addtaxexe, args : ['15000', '100000'])
|