aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/meson.build
blob: f9d64a5ceb66e8f4b93d37d6838e644bb45c6e47 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                   
                               


                              
                                        



                         

            
                                                                                                      




                                                                             
 



                                                                                       

                                                                                       
 







                                                            
project('weltschmerz', 'vala', 'c')

gnome = import('gnome')
valac = meson.get_compiler('vala')
cc    = meson.get_compiler('c')

dependencies = [
  valac.find_library('posix'),
  cc.find_library('m', required: false),
  dependency('gtk+-3.0'),
  dependency('vte-2.91'),
]

subdir('po')

sources = files('weltschmerz.vala', 'terminal.vala', 'config.vala', 'configreader.vala', 'utils.vala')
sources += gnome.compile_resources('resources', 'resources.xml')

executable('weltschmerz', sources, dependencies: dependencies, install: true)

install_man('weltschmerz.1')

# install_man supports locale only on meson >= 0.58.0, so let's wait a bit
# until we rely on that
install_data('weltschmerz.de.1',
  install_dir: join_paths(get_option('mandir'), 'de', 'man1'), rename: 'weltschmerz.1')
install_data('weltschmerz.fi.1',
  install_dir: join_paths(get_option('mandir'), 'fi', 'man1'), rename: 'weltschmerz.1')

i18n.merge_file(
	input: 'weltschmerz.desktop.in',
	output: 'weltschmerz.desktop',
	po_dir: 'po',
	type: 'desktop',
	install: true,
	install_dir: get_option('datadir') / 'applications',
)