-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Jan Tojnar <[email protected]> Co-authored-by: Félix Piédallu <[email protected]>
- Loading branch information
1 parent
a442b86
commit bdde78f
Showing
10 changed files
with
795 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env python3 | ||
|
||
""" | ||
The `generate.py` script will pass location info as a translator note. | ||
This script converts it to a proper location comment. | ||
""" | ||
|
||
import re | ||
import sys | ||
|
||
LOCATION_PATTERN = re.compile(r"^#\. (: \.\./brushsettings.json:.*)", re.MULTILINE) | ||
|
||
match sys.argv: | ||
case [_, input_path, output_path]: | ||
pass | ||
case _: | ||
print("usage: fix-po-location.py <input> <output>", file=sys.stderr) | ||
sys.exit(1) | ||
|
||
with open(input_path) as po_in, open(output_path, "w") as po_out: | ||
po_out.write(LOCATION_PATTERN.sub(r"#\1", po_in.read())) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
doc_conf = configuration_data() | ||
doc_conf.merge_from(conf) | ||
|
||
doc_conf.set('DOXYGEN_SOURCE_ROOT', meson.project_source_root()) | ||
doc_conf.set('DOXYXML_BUILD_PATH', meson.current_build_dir()) | ||
doc_conf.set('DOXYGEN_EXCLUDED', '') | ||
|
||
doxyfile = configure_file( | ||
input: 'Doxyfile.in', | ||
output: 'Doxyfile', | ||
configuration: doc_conf, | ||
) | ||
|
||
doxygen_index = custom_target( | ||
'doxygen', | ||
input: doxyfile, | ||
output: 'index.xml', | ||
command: [ | ||
doxygen, | ||
'@INPUT@', | ||
], | ||
) | ||
|
||
subdir('source') | ||
|
||
run_target( | ||
'sphinx', | ||
depends: [ | ||
doxygen_index, | ||
], | ||
command: [ | ||
sphinx_build, | ||
'-c', meson.current_build_dir() / 'source', | ||
meson.current_source_dir() / 'source', | ||
meson.current_build_dir() / 'build', | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sphinx_conf_file = configure_file( | ||
input: 'conf.py.in', | ||
output: 'conf.py', | ||
configuration: doc_conf, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
libmypaint_gegl_inc = include_directories('.') | ||
|
||
libmypaint_gegl_sources = [ | ||
'../glib/mypaint-gegl-glib.c', | ||
'mypaint-gegl-surface.c', | ||
] | ||
|
||
libmypaint_gegl_headers = [ | ||
'../glib/mypaint-gegl-glib.h', | ||
'mypaint-gegl-surface.h', | ||
] | ||
|
||
libmypaint_gegl = library( | ||
f'mypaint-gegl-@api_platform_version@', | ||
libmypaint_gegl_sources, | ||
include_directories: toplevel_inc, | ||
link_with: libmypaint, | ||
dependencies: [ | ||
json, | ||
gobject, | ||
gegl, | ||
], | ||
version: abi_version_info, | ||
install: true, | ||
) | ||
|
||
install_headers( | ||
libmypaint_gegl_headers, | ||
subdir: 'libmypaint-gegl', | ||
) | ||
|
||
|
||
if use_introspection | ||
gnome = import('gnome') | ||
|
||
libmypaint_gegl_gir = gnome.generate_gir( | ||
libmypaint_gegl, | ||
namespace: 'MyPaintGegl', | ||
nsversion: api_platform_version, | ||
|
||
sources: libmypaint_gegl_sources + libmypaint_gegl_headers, | ||
symbol_prefix: 'mypaint_gegl', | ||
identifier_prefix: 'MyPaintGegl', | ||
|
||
includes: [ | ||
'GObject-2.0', | ||
gegl_gir, | ||
libmypaint_gir[0], | ||
], | ||
install: true, | ||
) | ||
endif | ||
|
||
|
||
pkgconfig.generate( | ||
libmypaint_gegl, | ||
name: meson.project_name() + '-gegl-' + api_platform_version, | ||
version: version_full, | ||
description: 'MyPaint brush engine library, with GEGL integration', | ||
requires: [ | ||
libmypaint, | ||
gegl, | ||
], | ||
url: project_url, | ||
subdirs: 'libmypaint-gegl', | ||
) |
Oops, something went wrong.