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.
 
 
 
 

30 lines
730 B

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)