File: SConstruct.callable_exception

package info (click to toggle)
scons 4.0.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 43,888 kB
  • sloc: xml: 196,470; python: 125,048; javascript: 4,671; sh: 1,007; perl: 493; ruby: 229; java: 139; makefile: 127; ansic: 119; f90: 108; yacc: 34; cpp: 30; lex: 10
file content (11 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
class TestCallable(object):
    def __init__(self, thing, makePathsRelative = True, debug = False):
        pass
    def __call__(self, target, source, env, for_signature):
       raise TypeError("User callable exception")

env = Environment()
env["TESTCLASS"] = TestCallable
env["CCCOM"] = "$CC $_CCCOMCOM $CCFLAGS -o ${TESTCLASS('$TARGET')} -c ${TESTCLASS('$SOURCES')}"

env.Program(target='test_main', source='test_main.c')