tootle-linux-client/meson.build

122 lines
3.3 KiB
Meson
Raw Normal View History

2018-04-14 14:09:06 +02:00
project('com.github.bleakgrey.tootle', 'vala', 'c')
gnome = import('gnome')
i18n = import('i18n')
add_global_arguments([
2020-05-30 13:39:41 +02:00
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
'-DHANDY_USE_UNSTABLE_API',
2018-04-14 14:09:06 +02:00
],
language: 'c',
)
# FIXME Disable --disable-since-check after libhandy 1.0 is released
add_project_arguments (
'--disable-since-check',
language: 'vala'
)
2018-04-14 14:09:06 +02:00
asresources = gnome.compile_resources(
2020-05-29 14:19:35 +02:00
'as-resources', 'data/gresource.xml',
2018-04-14 14:09:06 +02:00
source_dir: 'data',
c_name: 'as'
)
2020-07-06 18:56:40 +02:00
libhandy_dep = dependency('libhandy-1', version: '>= 0.83.0', required: false)
2020-06-01 14:40:50 +02:00
if not libhandy_dep.found()
libhandy = subproject(
'libhandy',
default_options: [
'examples=false',
2020-06-29 23:43:45 +02:00
'glade_catalog=disabled',
2020-06-01 14:40:50 +02:00
'tests=false',
]
)
2020-06-29 23:43:45 +02:00
libhandy_dep = declare_dependency(
dependencies: [
libhandy.get_variable('libhandy_dep'),
libhandy.get_variable('libhandy_vapi'),
]
)
2020-06-01 14:40:50 +02:00
endif
2018-04-14 14:09:06 +02:00
executable(
meson.project_name(),
asresources,
2020-05-29 14:19:35 +02:00
'src/Build.vala',
2018-04-14 14:09:06 +02:00
'src/Application.vala',
'src/Desktop.vala',
2019-03-07 17:16:52 +01:00
'src/Drawing.vala',
'src/Html.vala',
2020-05-29 14:19:35 +02:00
'src/Request.vala',
2018-05-27 18:25:16 +02:00
'src/InstanceAccount.vala',
2020-05-29 14:19:35 +02:00
'src/Services/Streams.vala',
'src/Services/Settings.vala',
'src/Services/Accounts.vala',
'src/Services/IAccountListener.vala',
'src/Services/IStreamListener.vala',
'src/Services/Cache.vala',
'src/Services/Network.vala',
2018-04-14 14:09:06 +02:00
'src/API/Account.vala',
2020-06-29 23:43:45 +02:00
'src/API/AccountField.vala',
2018-04-30 19:56:02 +02:00
'src/API/Relationship.vala',
2018-04-28 18:27:10 +02:00
'src/API/Mention.vala',
'src/API/Tag.vala',
2018-04-14 14:09:06 +02:00
'src/API/Status.vala',
2020-05-29 14:19:35 +02:00
'src/API/Visibility.vala',
2018-04-17 14:01:55 +02:00
'src/API/Notification.vala',
'src/API/NotificationType.vala',
2018-05-04 22:57:31 +02:00
'src/API/Attachment.vala',
2020-06-03 17:06:11 +02:00
'src/API/Conversation.vala',
2020-07-28 20:30:45 +02:00
'src/API/List.vala',
2020-06-20 12:04:58 +02:00
'src/API/Entity.vala',
2020-06-03 17:06:11 +02:00
'src/Widgets/Widgetizable.vala',
2020-05-29 14:19:35 +02:00
'src/Widgets/Avatar.vala',
'src/Widgets/AccountsButton.vala',
2020-06-29 23:43:45 +02:00
'src/Widgets/TimelineFilter.vala',
2018-04-28 18:27:10 +02:00
'src/Widgets/RichLabel.vala',
2019-03-11 15:14:37 +01:00
'src/Widgets/Status.vala',
'src/Widgets/Notification.vala',
2020-05-29 14:19:35 +02:00
'src/Widgets/VisibilityPopover.vala',
'src/Widgets/Attachment/Box.vala',
'src/Widgets/Attachment/Slot.vala',
'src/Widgets/Attachment/Picture.vala',
2019-03-11 15:14:37 +01:00
'src/Dialogs/ISavedWindow.vala',
'src/Dialogs/MainWindow.vala',
'src/Dialogs/Compose.vala',
'src/Dialogs/Preferences.vala',
2020-07-28 20:30:45 +02:00
'src/Dialogs/ListEditor.vala',
2020-05-29 14:19:35 +02:00
'src/Views/Base.vala',
'src/Views/NewAccount.vala',
2019-03-11 15:14:37 +01:00
'src/Views/Timeline.vala',
'src/Views/Home.vala',
'src/Views/Local.vala',
'src/Views/Federated.vala',
'src/Views/Notifications.vala',
2020-06-03 14:41:21 +02:00
'src/Views/Conversations.vala',
'src/Views/Bookmarks.vala',
2019-03-11 15:14:37 +01:00
'src/Views/ExpandedStatus.vala',
'src/Views/Profile.vala',
'src/Views/Favorites.vala',
'src/Views/Search.vala',
'src/Views/Hashtag.vala',
2020-07-28 20:30:45 +02:00
'src/Views/Lists.vala',
'src/Views/List.vala',
2018-04-14 14:09:06 +02:00
dependencies: [
2018-10-23 12:05:24 +02:00
dependency('gtk+-3.0', version: '>=3.22.0'),
2018-04-14 14:09:06 +02:00
dependency('glib-2.0', version: '>=2.30.0'),
2018-10-27 10:29:25 +02:00
dependency('gee-0.8', version: '>=0.8.5'),
2019-03-09 12:42:27 +01:00
dependency('granite', version: '>=5.2.0'),
2020-05-29 14:19:35 +02:00
dependency('libsoup-2.4'),
2020-06-20 12:04:58 +02:00
dependency('json-glib-1.0', version: '>=1.4.4'),
2020-06-01 14:40:50 +02:00
libhandy_dep,
2018-04-14 14:09:06 +02:00
],
2020-05-29 14:19:35 +02:00
install: true,
2018-04-14 14:09:06 +02:00
)
subdir('data')
subdir('po')
meson.add_install_script('meson/post_install.py')