summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/test/thread/meson.build
blob: a884eec1501cc2df0fcee81054c88284d0dbfe95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright (c) 2022, PostgreSQL Global Development Group

pgc_files = [
  'thread_implicit',
  'thread',
  'prep',
  'descriptor',
  'alloc',
]

foreach pgc_file : pgc_files
  exe_input = custom_target('@0@.c'.format(pgc_file),
    input: '@0@.pgc'.format(pgc_file),
    command: ecpg_preproc_test_command_start +
      ecpg_preproc_test_command_end,
    kwargs: ecpg_preproc_kw,
  )

  ecpg_test_dependencies += executable(pgc_file,
    exe_input,
    kwargs: ecpg_test_exec_kw + {'dependencies': [frontend_code, libpq, thread_dep,]},
  )
endforeach