2022-11-13 21:03:12 +00:00
|
|
|
project('dev.geopjr.tooth', 'vala', 'c', version: '2.1.0')
|
2020-09-05 08:02:42 +00:00
|
|
|
|
2018-04-14 12:09:06 +00:00
|
|
|
add_global_arguments([
|
2020-05-30 11:39:41 +00:00
|
|
|
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
2018-04-14 12:09:06 +00:00
|
|
|
],
|
|
|
|
language: 'c',
|
|
|
|
)
|
|
|
|
|
2021-02-12 15:26:37 +00:00
|
|
|
config = configuration_data()
|
|
|
|
config.set('EXEC_NAME', meson.project_name())
|
|
|
|
config.set('GETTEXT_PACKAGE', meson.project_name())
|
|
|
|
config.set('RESOURCES', '/' + '/'.join(meson.project_name().split('.')) + '/' )
|
|
|
|
config.set('VERSION', meson.project_version())
|
|
|
|
config.set('PREFIX', get_option('prefix'))
|
2022-11-13 20:57:43 +00:00
|
|
|
config.set('NAME', 'Tooth')
|
|
|
|
config.set('WEBSITE', 'https://github.com/GeopJr/tooth')
|
|
|
|
config.set('SUPPORT_WEBSITE', 'https://github.com/GeopJr/tooth/issues')
|
2022-11-13 21:03:12 +00:00
|
|
|
config.set('COPYRIGHT', '© 2018-2021 bleak_grey\n© 2022 Evangelos \"GeopJr\" Paterakis')
|
2021-02-12 15:26:37 +00:00
|
|
|
|
|
|
|
gnome = import('gnome')
|
|
|
|
i18n = import('i18n')
|
|
|
|
|
|
|
|
asresources = gnome.compile_resources(
|
|
|
|
'as-resources', 'data/gresource.xml',
|
|
|
|
source_dir: 'data',
|
|
|
|
c_name: 'as'
|
|
|
|
)
|
|
|
|
|
2021-08-20 10:36:03 +00:00
|
|
|
libgtk_dep = dependency('gtk4', version: '>=4.0.0', required: true)
|
2021-07-23 11:41:03 +00:00
|
|
|
libadwaita_dep = dependency('libadwaita-1', version: '>=1.0.0', required: true)
|
|
|
|
|
2021-02-12 15:26:37 +00:00
|
|
|
sources = files(
|
2018-04-14 12:09:06 +00:00
|
|
|
'src/Application.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Utils/Host.vala',
|
|
|
|
'src/Utils/Html.vala',
|
|
|
|
'src/Utils/DateTime.vala',
|
2021-02-12 15:26:37 +00:00
|
|
|
'src/Services/Accounts/InstanceAccount.vala',
|
|
|
|
'src/Services/Accounts/AccountStore.vala',
|
2021-09-09 11:47:11 +00:00
|
|
|
'src/Services/Accounts/Places.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Services/Accounts/SecretAccountStore.vala',
|
|
|
|
'src/Services/Accounts/AccountHolder.vala',
|
|
|
|
'src/Services/Accounts/Mastodon/Account.vala',
|
|
|
|
'src/Services/Cache/AbstractCache.vala',
|
|
|
|
'src/Services/Cache/EntityCache.vala',
|
|
|
|
'src/Services/Cache/ImageCache.vala',
|
|
|
|
'src/Services/Network/Network.vala',
|
|
|
|
'src/Services/Network/Request.vala',
|
|
|
|
'src/Services/Network/Streams.vala',
|
|
|
|
'src/Services/Network/Streamable.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Services/Settings.vala',
|
2018-04-14 12:09:06 +00:00
|
|
|
'src/API/Account.vala',
|
2020-06-29 21:43:45 +00:00
|
|
|
'src/API/AccountField.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',
|
2018-04-17 12:01:55 +00:00
|
|
|
'src/API/Notification.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-07-28 18:30:45 +00:00
|
|
|
'src/API/List.vala',
|
2020-08-01 15:40:56 +00:00
|
|
|
'src/API/SearchResults.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',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Widgets/Background.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Widgets/Avatar.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-08-01 21:47:22 +00:00
|
|
|
'src/Widgets/Conversation.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Widgets/Attachment/Box.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Widgets/Attachment/Item.vala',
|
|
|
|
'src/Widgets/Attachment/Image.vala',
|
|
|
|
'src/Widgets/LockableToggleButton.vala',
|
|
|
|
'src/Widgets/StatusActionButton.vala',
|
2021-07-25 15:35:51 +00:00
|
|
|
'src/Widgets/RelationshipButton.vala',
|
2021-02-02 09:16:59 +00:00
|
|
|
'src/Widgets/MarkupView.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Dialogs/Saveable.vala',
|
2020-09-10 17:10:24 +00:00
|
|
|
'src/Dialogs/NewAccount.vala',
|
2019-03-11 14:14:37 +00:00
|
|
|
'src/Dialogs/MainWindow.vala',
|
|
|
|
'src/Dialogs/Preferences.vala',
|
2020-07-28 18:30:45 +00:00
|
|
|
'src/Dialogs/ListEditor.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Dialogs/Composer/Dialog.vala',
|
|
|
|
'src/Dialogs/Composer/Page.vala',
|
|
|
|
'src/Dialogs/Composer/EditorPage.vala',
|
|
|
|
'src/Dialogs/Composer/AttachmentsPage.vala',
|
|
|
|
'src/Dialogs/Composer/PollPage.vala',
|
2020-05-29 12:19:35 +00:00
|
|
|
'src/Views/Base.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Views/ContentBase.vala',
|
2020-10-15 15:55:13 +00:00
|
|
|
'src/Views/TabbedBase.vala',
|
2021-07-23 11:41:03 +00:00
|
|
|
'src/Views/Sidebar.vala',
|
2020-10-15 15:55:13 +00:00
|
|
|
'src/Views/Main.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',
|
2020-07-06 16:40:17 +00:00
|
|
|
'src/Views/Bookmarks.vala',
|
2020-10-15 15:55:13 +00:00
|
|
|
'src/Views/Thread.vala',
|
2019-03-11 14:14:37 +00:00
|
|
|
'src/Views/Profile.vala',
|
|
|
|
'src/Views/Favorites.vala',
|
|
|
|
'src/Views/Search.vala',
|
|
|
|
'src/Views/Hashtag.vala',
|
2020-07-28 18:30:45 +00:00
|
|
|
'src/Views/Lists.vala',
|
|
|
|
'src/Views/List.vala',
|
2021-02-12 15:26:37 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
build_file = configure_file(
|
|
|
|
input: 'src/Build.vala.in',
|
|
|
|
output: 'Build.vala',
|
|
|
|
configuration: config
|
|
|
|
)
|
|
|
|
|
|
|
|
executable(
|
|
|
|
meson.project_name(),
|
|
|
|
asresources,
|
|
|
|
build_file,
|
|
|
|
sources,
|
2018-04-14 12:09:06 +00:00
|
|
|
dependencies: [
|
|
|
|
dependency('glib-2.0', version: '>=2.30.0'),
|
2018-10-27 08:29:25 +00:00
|
|
|
dependency('gee-0.8', version: '>=0.8.5'),
|
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'),
|
2021-02-02 09:16:59 +00:00
|
|
|
dependency('libxml-2.0'),
|
2021-07-23 11:41:03 +00:00
|
|
|
dependency('libsecret-1', required: true),
|
|
|
|
libgtk_dep,
|
|
|
|
libadwaita_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')
|