Debian Codegraph @

test cases/common/95 manygen/subdir/manygen.py

raw symbols SCIP
1 #!/usr/bin/env python3
2
3
4 # Generates a static library, object file, source
5 # file and a header file.
6
7 import sysscip-python python python-stdlib 3.11 sys/__init__:, osscip-python python python-stdlib 3.11 os/__init__:
8 import subprocessscip-python python python-stdlib 3.11 subprocess/__init__:
9
10 with openscip-python python python-stdlib 3.11 builtins/open().(sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[1]) as fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f.:
11 funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname. = fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f..readlinescip-python python python-stdlib 3.11 io/TextIOWrapper#readline().().stripscip-python python python-stdlib 3.11 builtins/str#strip().()
12 outdirscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outdir. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[2]
13 buildtype_argsscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/buildtype_args. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[3]
14 compiler_typescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler_type. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[4]
15 compilerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler. = sysscip-python python python-stdlib 3.11 sys/__init__:.argvscip-python python python-stdlib 3.11 sys/argv.argv.[5:]
16
17 if not osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..isdirscip-python python python-stdlib 3.11 posixpath/split().(outdirscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outdir.):
18 printscip-python python python-stdlib 3.11 builtins/print().('Outdir does not exist.')
19 sysscip-python python python-stdlib 3.11 sys/__init__:.exit(1)
20
21 if compiler_typescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler_type. == 'msvc':
22 libsuffixscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/libsuffix. = '.lib'
23 is_vsscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/is_vs. = True
24 if any(['clang-cl' in c for c in compilerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler.]):
25 linkerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/linker. = 'llvm-lib'
26 else:
27 linkerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/linker. = 'lib'
28 else:
29 libsuffixscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/libsuffix. = '.a'
30 is_vsscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/is_vs. = False
31 linkerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/linker. = 'ar'
32
33 objsuffixscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/objsuffix. = '.o'
34
35 outoscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outo. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 posixpath/split().(outdirscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outdir., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname. + objsuffixscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/objsuffix.)
36 outascip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outa. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 posixpath/split().(outdirscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outdir., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname. + libsuffixscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/libsuffix.)
37 outhscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outh. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 posixpath/split().(outdirscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outdir., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname. + '.h')
38 outcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outc. = osscip-python python python-stdlib 3.11 os/__init__:.pathscip-python python python-stdlib 3.11 os/path..joinscip-python python python-stdlib 3.11 posixpath/split().(outdirscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outdir., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname. + '.c')
39
40 tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc. = 'diibadaaba.c'
41 tmposcip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpo. = 'diibadaaba' + objsuffixscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/objsuffix.
42
43 with openscip-python python python-stdlib 3.11 builtins/open().(outcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outc., 'w') as fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f.:
44 fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f..writescip-python python python-stdlib 3.11 io/TextIOBase#write().('''#include"{}.h"
45 int {}_in_src(void) {{
46 return 0;
47 }}
48 '''.format(funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname.))
49
50 with openscip-python python python-stdlib 3.11 builtins/open().(outhscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outh., 'w') as fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f.:
51 fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f..writescip-python python python-stdlib 3.11 io/TextIOBase#write().('''#pragma once
52 int {}_in_lib(void);
53 int {}_in_obj(void);
54 int {}_in_src(void);
55 '''.format(funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname., funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname.))
56
57 with openscip-python python python-stdlib 3.11 builtins/open().(tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc., 'w') as fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f.:
58 fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f..writescip-python python python-stdlib 3.11 io/TextIOBase#write().('''int %s_in_obj(void) {
59 return 0;
60 }
61 ''' % funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname.)
62
63 if is_vsscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/is_vs.:
64 subprocessscip-python python python-stdlib 3.11 subprocess/__init__:.check_callscip-python python python-stdlib 3.11 subprocess/check_call().(compilerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler. + ['/nologo', '/c', buildtype_argsscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/buildtype_args., '/Fo' + outoscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outo., tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc.])
65 else:
66 subprocessscip-python python python-stdlib 3.11 subprocess/__init__:.check_callscip-python python python-stdlib 3.11 subprocess/check_call().(compilerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler. + ['-c', '-o', outoscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outo., tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc.])
67
68 with openscip-python python python-stdlib 3.11 builtins/open().(tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc., 'w') as fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f.:
69 fscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/f..writescip-python python python-stdlib 3.11 io/TextIOBase#write().('''int %s_in_lib() {
70 return 0;
71 }
72 ''' % funcnamescip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/funcname.)
73
74 if is_vsscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/is_vs.:
75 subprocessscip-python python python-stdlib 3.11 subprocess/__init__:.check_callscip-python python python-stdlib 3.11 subprocess/check_call().(compilerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler. + ['/nologo', '/c', '/Fo' + tmposcip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpo., tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc.])
76 subprocessscip-python python python-stdlib 3.11 subprocess/__init__:.check_callscip-python python python-stdlib 3.11 subprocess/check_call().([linkerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/linker., '/NOLOGO', '/OUT:' + outascip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outa., tmposcip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpo.])
77 else:
78 subprocessscip-python python python-stdlib 3.11 subprocess/__init__:.check_callscip-python python python-stdlib 3.11 subprocess/check_call().(compilerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/compiler. + ['-c', '-o', tmposcip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpo., tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc.])
79 subprocessscip-python python python-stdlib 3.11 subprocess/__init__:.check_callscip-python python python-stdlib 3.11 subprocess/check_call().([linkerscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/linker., 'csr', outascip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/outa., tmposcip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpo.])
80
81 osscip-python python python-stdlib 3.11 os/__init__:.unlinkscip-python python python-stdlib 3.11 os/unlink().(tmposcip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpo.)
82 osscip-python python python-stdlib 3.11 os/__init__:.unlinkscip-python python python-stdlib 3.11 os/unlink().(tmpcscip-python python meson 1.11.1 `test cases.common.95 manygen.subdir.manygen`/tmpc.)