File: meson.build

package info (click to toggle)
numpy 1%3A2.2.4%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 83,420 kB
  • sloc: python: 248,499; asm: 232,365; ansic: 216,874; cpp: 135,657; f90: 1,540; sh: 938; fortran: 558; makefile: 409; sed: 139; xml: 109; java: 92; perl: 79; cs: 54; javascript: 53; objc: 29; lex: 13; yacc: 9
file content (26 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (8)
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
project('gui_app_test', 'c')

#
# test that linking a Windows console applications with the main function in a
# library is correctly instructed which entrypoint function to look for
#

console_lib = static_library('main', 'console_prog.c')
executable('console', 'dummy.c', link_with: console_lib, win_subsystem: 'console')
executable('console2', 'dummy.c', link_with: console_lib, gui_app: false)

#
# also verify that the correct subsystem is set by executable(gui_app:)
#

gui_prog = executable('gui_prog', 'gui_prog.c', win_subsystem: 'windows,6.0')
gui_prog2 = executable('gui_prog2', 'gui_prog.c', gui_app: true)
console_prog = executable('console_prog', 'console_prog.c', win_subsystem: 'console')
console_prog2 = executable('console_prog2', 'console_prog.c', gui_app: false)

tester = find_program('gui_app_tester.py')

test('is_gui', tester, args: [gui_prog, '2'])
test('is_gui2', tester, args: [gui_prog2, '2'])
test('not_gui', tester, args: [console_prog, '3'])
test('not_gui2', tester, args: [console_prog2, '3'])