addtax/src/meson.build

31 lines
730 B
Meson

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]
# -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')
executable('addtax',
sources,
include_directories : inc,
c_args: c_args,
link_args: link_args,
dependencies : [gtk_dep, m_dep, gmodule_dep],
install : true)