easyssh/meson.build

77 lines
2.2 KiB
Meson
Raw Permalink Normal View History

2021-12-29 19:52:40 +08:00
project('com.github.muriloventuroso.easyssh', 'vala', 'c', version: '1.7.9')
2018-04-18 23:29:56 +08:00
gnome = import('gnome')
i18n = import('i18n')
2018-11-21 01:12:11 +08:00
with_gpg = get_option('with-gpg')
2018-10-24 01:48:42 +08:00
add_global_arguments('-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), language:'c')
2018-04-19 00:16:07 +08:00
2018-10-24 01:48:42 +08:00
if get_option('ubuntu-bionic-patched-vte')
add_project_arguments(['--define', 'UBUNTU_BIONIC_PATCHED_VTE'], language : 'vala')
endif
2018-04-19 00:16:07 +08:00
2020-09-20 05:50:59 +08:00
if get_option('patched-vte')
add_project_arguments(['--define', 'PATCHED_VTE'], language : 'vala')
endif
2018-10-24 01:48:42 +08:00
asresources = gnome.compile_resources(
'as-resources', 'data/' + meson.project_name() + '.gresource.xml',
source_dir: 'data',
c_name: 'as'
)
2018-11-21 01:12:11 +08:00
2021-11-16 09:04:56 +08:00
config_data = configuration_data()
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
config_file = configure_file(
input: 'src' / 'Config.vala.in',
output: '@BASENAME@',
configuration: config_data
)
2018-04-19 00:16:07 +08:00
dependencies = [
dependency('gee-0.8'),
dependency('glib-2.0'),
dependency('gtk+-3.0'),
2021-11-16 20:53:38 +08:00
dependency('granite', version: '>=6.0.0'),
dependency('json-glib-1.0'),
dependency('vte-2.91', version: '>0.52'),
dependency('gee-0.8'),
meson.get_compiler('c').find_library('m', required : false)
]
2018-11-21 01:12:11 +08:00
if with_gpg
2018-11-22 20:59:04 +08:00
gpg = find_program('gpg', 'gpg2', required: true)
add_project_arguments(['--define', 'WITH_GPG'], language : 'vala')
2018-11-21 01:12:11 +08:00
endif
2018-04-18 23:29:56 +08:00
executable(
meson.project_name(),
2018-10-24 01:48:42 +08:00
asresources,
2021-11-16 09:04:56 +08:00
config_file,
2018-04-18 23:29:56 +08:00
'src/Application.vala',
'src/Host.vala',
2019-01-04 00:53:33 +08:00
'src/Account.vala',
2019-05-16 04:42:27 +08:00
'src/Bookmark.vala',
2018-04-18 23:29:56 +08:00
'src/MainWindow.vala',
'src/Views/SourceListView.vala',
'src/Widgets/TerminalBox.vala',
'src/Widgets/Welcome.vala',
2019-01-04 00:53:33 +08:00
'src/Widgets/WelcomeAccounts.vala',
2018-04-18 23:29:56 +08:00
'src/Widgets/HeaderBar.vala',
'src/Widgets/ConnectionEditor.vala',
2019-01-04 00:53:33 +08:00
'src/Widgets/AccountEditor.vala',
2018-04-18 23:29:56 +08:00
'src/Widgets/Connection.vala',
'src/Widgets/ErrorRevealer.vala',
'src/Widgets/Preferences.vala',
'src/Widgets/TerminalWidget.vala',
2019-01-05 03:25:59 +08:00
'src/Widgets/SearchToolbar.vala',
2019-05-16 04:42:27 +08:00
'src/Widgets/BookmarksPopover.vala',
2019-07-23 20:27:35 +08:00
'src/Widgets/Tab.vala',
dependencies: dependencies,
2018-04-18 23:29:56 +08:00
install: true
)
meson.add_install_script('meson/post_install.py')
2018-10-24 01:48:42 +08:00
subdir('data')
subdir('po')