Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
Also add dependencies requirements (fixes #1089 (comment))
  • Loading branch information
johnfactotum committed Oct 9, 2023
1 parent af28c01 commit 6148752
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ GSETTINGS_SCHEMA_DIR=data gjs -m src/main.js
The following dependencies are required for building:

- `meson` (>= 0.59)
- `pkg-config`
- `gettext`

To install, run the following commands:
Expand Down
5 changes: 5 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ project('com.github.johnfactotum.Foliate',
gnome = import('gnome')
i18n = import('i18n')

gjs = dependency('gjs-1.0', version: '>= 1.76')
dependency('gtk4', version: '>= 4.12')
dependency('libadwaita-1', version: '>= 1.4')
dependency('webkitgtk-6.0', version: '>= 2.40.1')

subdir('data')
subdir('src')
subdir('po')
Expand Down
1 change: 1 addition & 0 deletions po/POTFILES
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ src/library.js
src/main.js
src/navbar.js
src/selection-tools.js
src/themes.js
src/utils.js
src/ui/annotation-popover.ui
src/ui/annotation-row.ui
Expand Down
1 change: 1 addition & 0 deletions src/gresource.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<file>selection-tools.js</file>
<file>speech.js</file>
<file>toc.js</file>
<file>themes.js</file>
<file>tts.js</file>
<file>utils.js</file>
<file>webview.js</file>
Expand Down
2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
bin_conf = configuration_data()
bin_conf.set('GJS', find_program('gjs').full_path())
bin_conf.set('GJS', gjs.get_variable(pkgconfig: 'gjs_console'))
bin_conf.set('datadir', join_paths(get_option('prefix'), get_option('datadir')))

configure_file(
Expand Down

0 comments on commit 6148752

Please sign in to comment.