File: meson.build

package info (click to toggle)
gsequencer 7.7.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 71,040 kB
  • sloc: ansic: 1,145,949; xml: 31,016; cpp: 9,487; sh: 5,798; makefile: 3,845; perl: 155; sed: 16; python: 11
file content (53 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download | duplicates (2)
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
# Copyright (C) 2020 Daniel Maksymow
# 
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.

static_tests = [
  'ags_buffer_util_test',
  'ags_complex_test',
  'ags_conversion_test',
  'ags_endian_test',
  'ags_function_test',
  'ags_log_test',
  'ags_math_util_test',
  'ags_regex_util_test',
  'ags_string_util_test',
  'ags_solver_matrix_test',
  'ags_solver_polynomial_test',
  'ags_solver_vector_test',
  'ags_time_test',
  'ags_turtle_manager_test',
  'ags_turtle_test',
]

static_test_dependencies = [
  common_test_dependencies,
  xml2_dependency,
  soup_dependency,
  m_dependency,
]

foreach static_test : static_tests
  source = ['@0@.c'.format(static_test)]
  if static_test.contains('/')
    tmp = static_test.split('/')
    static_test = '_'.join(tmp)
  endif

  static_test_bin = executable(
    static_test,
    source,
    c_args: [compiler_test_flags],
    include_directories: [includes],
    dependencies: [static_test_dependencies],
    link_with: [
      libags,
    ]
  )

  test(static_test, static_test_bin)
endforeach