Esempio n. 1
0
 def subsystem_dependencies(cls):
   return super(NativeTask, cls).subsystem_dependencies() + (
     # We use a globally-scoped dependency on NativeBuildSettings because the toolchain and
     # dependency calculation need to be the same for both compile and link tasks (and subscoping
     # would break that).
     NativeBuildSettings,
     NativeToolchain.scoped(cls),
   )
Esempio n. 2
0
 def subsystem_dependencies(cls):
     return super().subsystem_dependencies() + (
         # We use a globally-scoped dependency on NativeBuildSettings because the toolchain and
         # dependency calculation need to be the same for both compile and link tasks (and subscoping
         # would break that).
         NativeBuildSettings,
         NativeToolchain.scoped(cls),
     )
Esempio n. 3
0
 def subsystem_dependencies(cls):
     return super(PythonNativeCode, cls).subsystem_dependencies() + (
         NativeToolchain.scoped(cls),
         # We generally have to use PythonSetup's global instance, as methods such as
         # `dump_requirements` will use it directly.
         # TODO: when subsystems are more easily requestable from the v2 engine, this restriction could
         # be removed!
         PythonSetup,
     )
Esempio n. 4
0
 def _toolchain(self):
     return NativeToolchain.scoped_instance(self)
Esempio n. 5
0
 def subsystem_dependencies(cls):
     return super(CCompile, cls).subsystem_dependencies() + (
         CCompileSettings.scoped(cls),
         NativeToolchain.scoped(cls),
     )
Esempio n. 6
0
 def subsystem_dependencies(cls):
     return super(NativeTask, cls).subsystem_dependencies() + (
         NativeBuildSettings.scoped(cls),
         NativeToolchain.scoped(cls),
     )
Esempio n. 7
0
 def subsystem_dependencies(cls):
     return super(PythonNativeCode, cls).subsystem_dependencies() + (
         NativeToolchain.scoped(cls),
         PythonSetup,
     )
Esempio n. 8
0
 def _native_toolchain(self):
   return NativeToolchain.scoped_instance(self)
Esempio n. 9
0
 def subsystem_dependencies(cls):
   return super(CppCompile, cls).subsystem_dependencies() + (
     CppCompileSettings.scoped(cls),
     NativeToolchain.scoped(cls),
   )
Esempio n. 10
0
 def subsystem_dependencies(cls):
     return super(LinkSharedLibraries, cls).subsystem_dependencies() + (
         NativeToolchain.scoped(cls), )
 def subsystem_dependencies(cls):
     return super(
         BuildLocalPythonDistributions,
         cls).subsystem_dependencies() + (NativeToolchain.scoped(cls), )
 def subsystem_dependencies(cls):
   return super(BuildLocalPythonDistributions, cls).subsystem_dependencies() + (NativeToolchain.scoped(cls),)
Esempio n. 13
0
 def subsystem_dependencies(cls):
   return super(PythonNativeCode, cls).subsystem_dependencies() + (
     NativeToolchain.scoped(cls),
     PythonSetup,
   )