| 1 |
hidden_scribe_sources = [ |
| 2 |
'main.vala', |
| 3 |
'application.vala', |
| 4 |
'window.vala', |
| 5 |
'Document.vala', |
| 6 |
'DocumentView.vala', |
| 7 |
'DateRow.vala', |
| 8 |
'DropOverlay.vala', |
| 9 |
'KeywordRow.vala', |
| 10 |
'DetailsList.vala', |
| 11 |
'SaveChangesDialog.vala', |
| 12 |
'StringArrayRow.vala', |
| 13 |
'DocumentThumbnail.vala', |
| 14 |
'KeywordList.vala', |
| 15 |
'PasswordDialog.vala', |
| 16 |
|
| 17 |
'ThreadManager.vala', |
| 18 |
|
| 19 |
# Models |
| 20 |
'Models/AsyncTask.vala', |
| 21 |
|
| 22 |
# Services |
| 23 |
'Services/DocumentManager.vala', |
| 24 |
'Services/Thumbnailer.vala', |
| 25 |
] |
| 26 |
|
| 27 |
exempi_dep = dependency('exempi-2.0') |
| 28 |
|
| 29 |
cc = meson.get_compiler('c') |
| 30 |
m_dep = cc.find_library('m', required : false) |
| 31 |
|
| 32 |
hidden_scribe_deps = [ |
| 33 |
dependency('gtk4', version:'>=4.10'), |
| 34 |
dependency('libadwaita-1'), |
| 35 |
dependency('poppler-glib'), |
| 36 |
exempi_dep, |
| 37 |
m_dep, |
| 38 |
] |
| 39 |
|
| 40 |
conf = configuration_data() |
| 41 |
conf.set_quoted('APP_ID', app_id) |
| 42 |
conf.set_quoted('APP_NAME', 'Paper Clip') |
| 43 |
conf.set_quoted('G_LOG_DOMAIN', 'Paper Clip') |
| 44 |
conf.set_quoted('VERSION', meson.project_version()) |
| 45 |
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name()) |
| 46 |
conf.set_quoted('DATADIR', join_paths(get_option('prefix'), get_option('datadir'))) |
| 47 |
conf.set_quoted('GNOMELOCALEDIR', join_paths(get_option('prefix'), get_option('localedir'))) |
| 48 |
conf.set_quoted('EXEMPI_VERSION', exempi_dep.version () + ' (Compile Time)') |
| 49 |
configure_file(output: 'config.h', configuration: conf) |
| 50 |
|
| 51 |
add_project_arguments( |
| 52 |
'-include', 'config.h', |
| 53 |
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()), |
| 54 |
language: 'c' |
| 55 |
) |
| 56 |
|
| 57 |
hidden_scribe_sources += gnome.compile_resources('pdf_metadata_editor-resources', |
| 58 |
'pdf-metadata-editor.gresource.xml', |
| 59 |
c_name: 'hidden_scribe' |
| 60 |
) |
| 61 |
|
| 62 |
executable('pdf-metadata-editor', hidden_scribe_sources, |
| 63 |
vala_args: [ |
| 64 |
meson.project_source_root() + '/vapi/Config.vapi', |
| 65 |
'--vapidir', meson.project_source_root() / 'vapi', |
| 66 |
], |
| 67 |
dependencies: hidden_scribe_deps, |
| 68 |
install: true, |
| 69 |
) |