File: meson.build

package info (click to toggle)
pycairo 1.27.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,984 kB
  • sloc: ansic: 8,873; python: 3,688; makefile: 32; sh: 4
file content (46 lines) | stat: -rw-r--r-- 979 bytes parent folder | download
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
test_sources = [
  'hypothesis_fspaths.py',
  '__init__.py',
  'test_api.py',
  'test_cmod.py',
  'test_context.py',
  'test_device.py',
  'test_enums.py',
  'test_error.py',
  'test_font.py',
  'test_glyph.py',
  'test_hypothesis.py',
  'test_matrix.py',
  'test_path.py',
  'test_pattern.py',
  'test_rectangle.py',
  'test_region.py',
  'test_surface_numpy.py',
  'test_surface.py',
  'test_surface_pygame.py',
  'test_textcluster.py',
  'test_textextents.py',
  'test_typing.py',
]

mod_sources = [
  join_paths('cmodule', 'cmodule.c'),
  join_paths('cmodule', 'cmodulelib.c'),
]

python.extension_module('cmod', mod_sources,
  dependencies : [cairo_dep],
  install: false,
  include_directories: include_directories('../cairo'),
  c_args: pyext_c_args + main_c_args + ['-DPY_SSIZE_T_CLEAN'],
)

foreach python_file : test_sources
  fs.copyfile(python_file, python_file)
endforeach

test(
  'tests', python,
  workdir: meson.project_build_root(),
  args: ['-m', 'pytest'],
)