getLocalIp/meson.build
project('getLocalIp', 'c')
gnome = import('gnome')
myresources = gnome.compile_resources(
'my-resource', 'resource.xml',
source_dir: '.',
c_name: 'myresource'
)
run_command('cp', '-R', 'locale', meson.current_build_dir(), check: true)
run_command('cp', '-R', 'getIp.desktop', meson.current_build_dir(), check: true)
run_command('cp', '-R', 'getIp.svg', meson.current_build_dir(), check: true)
run_command('cp', '-R', 'uninstall.sh', meson.current_build_dir(), check: true)
extra_args= ['-rdynamic']
gtkdep = dependency('gtk+-3.0')
gthread = dependency('gthread-2.0')
gmodule = dependency('gmodule-2.0')
meson.add_install_script('install.sh')
executable('getLocalIp', myresources,'main.c',
dependencies :[gtkdep, gthread, gmodule ],
c_args : extra_args,
install : false,
install_dir : '/usr/local/bin')