Exemplo n.º 1
0
 def __raw_c_headers_fpaths(self):
     for headers in [
             self.__config.c_headers_to_extract_macro_consts_from,
     ]:
         for header in headers:
             if path.isabs(header):
                 yield full_path(header)
             else:
                 for include_dir in self.__settings.include_dirs:
                     full_header_fpath = full_path(
                         path.join(include_dir, header))
                     if path.exists(full_header_fpath):
                         yield full_header_fpath
                         break
                 else:
                     raise BinderError(f'Cannot find header {header} in '
                                       f'any of the include directories.')
Exemplo n.º 2
0
 def c_header_from(self):
     return full_path(self.__args.c_header_from)
Exemplo n.º 3
0
 def module_h(self):
     return full_path(self.__args.module_h)
Exemplo n.º 4
0
 def module_h_inc_to(self):
     return full_path(self.__args.module_h_inc_to)
Exemplo n.º 5
0
 def module_cpp_prefix(self):
     return full_path(self.__args.module_cpp_prefix)
Exemplo n.º 6
0
 def config_fpath(self):
     return full_path(self.__args.config)
Exemplo n.º 7
0
 def write_to(self):
     return full_path(self.__args.write_to)