|
|
@ -32,10 +32,14 @@ build_target_functions = ['executable', 'jar', 'library', 'shared_library', 'sha |
|
|
|
class IntrospectionHelper(argparse.Namespace): |
|
|
|
class IntrospectionHelper(argparse.Namespace): |
|
|
|
# mimic an argparse namespace |
|
|
|
# mimic an argparse namespace |
|
|
|
def __init__(self, cross_file: str): |
|
|
|
def __init__(self, cross_file: str): |
|
|
|
|
|
|
|
super().__init__() |
|
|
|
self.cross_file = cross_file # type: str |
|
|
|
self.cross_file = cross_file # type: str |
|
|
|
self.native_file = None # type: str |
|
|
|
self.native_file = None # type: str |
|
|
|
self.cmd_line_options = {} # type: T.Dict[str, str] |
|
|
|
self.cmd_line_options = {} # type: T.Dict[str, str] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __eq__(self, other: object) -> bool: |
|
|
|
|
|
|
|
return NotImplemented |
|
|
|
|
|
|
|
|
|
|
|
class IntrospectionInterpreter(AstInterpreter): |
|
|
|
class IntrospectionInterpreter(AstInterpreter): |
|
|
|
# Interpreter to detect the options without a build directory |
|
|
|
# Interpreter to detect the options without a build directory |
|
|
|
# Most of the code is stolen from interpreter.Interpreter |
|
|
|
# Most of the code is stolen from interpreter.Interpreter |
|
|
|