2018-04-14 12:09:06 +00:00
|
|
|
project('com.github.bleakgrey.tootle', 'vala', 'c')
|
|
|
|
|
|
|
|
gnome = import('gnome')
|
|
|
|
i18n = import('i18n')
|
|
|
|
|
|
|
|
add_global_arguments([
|
2020-05-30 11:39:41 +00:00
|
|
|
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
|
|
|
'-DHANDY_USE_UNSTABLE_API',
|
2018-04-14 12:09:06 +00:00
|
|
|
],
|
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
2020-06-20 10:07:16 +00:00
|
|
|
# This is needed to make libhandy 1.0 work with vala.
|
|
|
|
# Without this, vala will complain:
|
|
|
|
# "X is not available in libhandy-1 0.81.0. Use libhandy-1 >= 1.0"
|
|
|
|
# FIXME Disable --disable-since-check after libhandy 1.0 is released
|
|
|
|
add_project_arguments (
|
|
|
|
'--disable-since-check',
|
|
|
|
language: 'vala'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2018-04-14 12:09:06 +00:00
|
|
|
asresources = gnome.compile_resources(
|
2020-05-29 12:19:35 +00:00
|
|
|
'as-resources', 'data/gresource.xml',
|
2018-04-14 12:09:06 +00:00
|
|
|
source_dir: 'data',
|
|
|
|
c_name: 'as'
|
|
|
|
)
|
|
|
|
|
2020-06-01 12:40:50 +00:00
|
|
|
libhandy_dep = dependency('libhandy-1', version: '>= 0.80.0')
|
|
|
|
if not libhandy_dep.found()
|
|
|
|
libhandy = subproject(
|
|
|
|
'libhandy',
|
|
|
|
install: false,
|
|
|
|
default_options: [
|
|
|
|
'examples=false',
|
|
|
|
'package_subdir=' + meson.project_name(),
|
|
|
|
'tests=false',
|
|
|
|
]
|
|
|
|
)
|
|
|
|
libhandy_dep = libhandy.get_variable('libhandy_dep')
|
|
|
|
endif
|
|
|
|
|
2018-04-14 12:09:06 +00:00
|
|
|
executable(
|
|
|
|
meson.project_name(),
|
|
|
|
asresources,
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Build.vala',
|
2018-04-14 12:09:06 +00:00
|
|
|
'src/Application.vala',
|
2018-05-30 19:49:16 +00:00
|
|
|
'src/Desktop.vala',
|
2019-03-07 16:16:52 +00:00
|
|
|
'src/Drawing.vala',
|
2018-05-30 19:49:16 +00:00
|
|
|
'src/Html.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Request.vala',
|
2018-05-27 16:25:16 +00:00
|
|
|
'src/InstanceAccount.vala',
|
2020-05-29 12:19:35 +00: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 12:09:06 +00:00
|
|
|
'src/API/Account.vala',
|
2018-04-30 17:56:02 +00:00
|
|
|
'src/API/Relationship.vala',
|
2018-04-28 16:27:10 +00:00
|
|
|
'src/API/Mention.vala',
|
|
|
|
'src/API/Tag.vala',
|
2018-04-14 12:09:06 +00:00
|
|
|
'src/API/Status.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/API/Visibility.vala',
|
2018-04-17 12:01:55 +00:00
|
|
|
'src/API/Notification.vala',
|
|
|
|
'src/API/NotificationType.vala',
|
2018-05-04 20:57:31 +00:00
|
|
|
'src/API/Attachment.vala',
|
2020-06-03 15:06:11 +00:00
|
|
|
'src/API/Conversation.vala',
|
2020-06-20 10:04:58 +00:00
|
|
|
'src/API/Entity.vala',
|
2020-06-03 15:06:11 +00:00
|
|
|
'src/Widgets/Widgetizable.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Widgets/Avatar.vala',
|
|
|
|
'src/Widgets/AccountsButton.vala',
|
2018-04-28 16:27:10 +00:00
|
|
|
'src/Widgets/RichLabel.vala',
|
2019-03-11 14:14:37 +00:00
|
|
|
'src/Widgets/Status.vala',
|
|
|
|
'src/Widgets/Notification.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Widgets/VisibilityPopover.vala',
|
|
|
|
'src/Widgets/Attachment/Box.vala',
|
|
|
|
'src/Widgets/Attachment/Item.vala',
|
2019-03-11 14:14:37 +00:00
|
|
|
'src/Dialogs/ISavedWindow.vala',
|
|
|
|
'src/Dialogs/MainWindow.vala',
|
|
|
|
'src/Dialogs/Compose.vala',
|
|
|
|
'src/Dialogs/Preferences.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Views/Base.vala',
|
|
|
|
'src/Views/NewAccount.vala',
|
2019-03-11 14:14:37 +00:00
|
|
|
'src/Views/Timeline.vala',
|
|
|
|
'src/Views/Home.vala',
|
|
|
|
'src/Views/Local.vala',
|
|
|
|
'src/Views/Federated.vala',
|
|
|
|
'src/Views/Notifications.vala',
|
2020-06-03 12:41:21 +00:00
|
|
|
'src/Views/Conversations.vala',
|
2019-03-11 14:14:37 +00:00
|
|
|
'src/Views/ExpandedStatus.vala',
|
|
|
|
'src/Views/Profile.vala',
|
|
|
|
'src/Views/Favorites.vala',
|
|
|
|
'src/Views/Search.vala',
|
|
|
|
'src/Views/Hashtag.vala',
|
2018-04-14 12:09:06 +00:00
|
|
|
dependencies: [
|
2018-10-23 10:05:24 +00:00
|
|
|
dependency('gtk+-3.0', version: '>=3.22.0'),
|
2018-04-14 12:09:06 +00:00
|
|
|
dependency('glib-2.0', version: '>=2.30.0'),
|
2018-10-27 08:29:25 +00:00
|
|
|
dependency('gee-0.8', version: '>=0.8.5'),
|
2019-03-09 11:42:27 +00:00
|
|
|
dependency('granite', version: '>=5.2.0'),
|
2020-05-29 12:19:35 +00:00
|
|
|
dependency('libsoup-2.4'),
|
2020-06-20 10:04:58 +00:00
|
|
|
dependency('json-glib-1.0', version: '>=1.4.4'),
|
2020-06-01 12:40:50 +00:00
|
|
|
libhandy_dep,
|
2018-04-14 12:09:06 +00:00
|
|
|
],
|
2020-05-29 12:19:35 +00:00
|
|
|
install: true,
|
2018-04-14 12:09:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
subdir('data')
|
|
|
|
subdir('po')
|
|
|
|
|
|
|
|
meson.add_install_script('meson/post_install.py')
|