File: meson.build

package info (click to toggle)
dia 0.98%2Bgit20250126-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 52,072 kB
  • sloc: ansic: 155,381; xml: 14,056; python: 6,250; cpp: 3,598; sh: 439; perl: 137; makefile: 25
file content (65 lines) | stat: -rw-r--r-- 1,554 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
py3_dep = dependency('python3-embed', version: '>= 3.8')

sources = files(
    'pydia-color.c',
    'pydia-cpoint.c',
    'pydia-diagram.c',
    'pydia-diagramdata.c',
    'pydia-display.c',
    'pydia-error.c',
    'pydia-export.c',
    'pydia-font.c',
    'pydia-geometry.c',
    'pydia-handle.c',
    'pydia-image.c',
    'pydia-layer.c',
    'pydia-menuitem.c',
    'pydia-object.c',
    'pydia-paperinfo.c',
    'pydia-properties.c',
    'pydia-property.c',
    'pydia-render.c',
    'pydia-sheet.c',
    'pydia-text.c',
    'diamodule.c',
    'python.c',
)

python_scripts = [
    'aobjects.py',
    'allprops.py',
    'codegen.py',
    'diasvg.py',
    'diasvg_import.py',
    'dot.py',
    'doxrev.py',
    'gtkcons.py',
    'imgmap.py',
    'otypes.py',
    'pydiadoc.py',
    'scascale.py',
    'select_by.py',
    'select_empty.py',
]

if py3_dep.found()
    # Same as layout plugin.
    shared_module(
        'python_plugin',
        sources,
        dependencies: [libc_dep, libxml_dep, libgtk_dep, py3_dep, libdia_dep] + [config_dep],
        link_with: [diaapp], # Naughty
        install: true,
        install_dir: dialibdir,
        include_directories: diaapp_inc,
        name_suffix: g_module_suffix,
        # Python headers trigger this warning. Let's not obscure the others.
        c_args: [
          '-Wno-declaration-after-statement',
        ],
        install_rpath: dialibdir,
    )

    install_data(python_scripts, install_dir: pkgdatadir / 'python')
    install_data('python-startup.py', install_dir: pkgdatadir)
endif