|
|
|
@ -332,13 +332,17 @@ class _BuildTarget(_BaseBuildTarget): |
|
|
|
|
"""Arguments shared by non-JAR functions""" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class _LibraryMixin(TypedDict): |
|
|
|
|
|
|
|
|
|
rust_abi: T.Optional[Literal['c', 'rust']] |
|
|
|
|
|
|
|
|
|
class Executable(_BuildTarget): |
|
|
|
|
|
|
|
|
|
gui_app: T.Optional[bool] |
|
|
|
|
win_subsystem: T.Optional[str] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class StaticLibrary(_BuildTarget): |
|
|
|
|
class StaticLibrary(_BuildTarget, _LibraryMixin): |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -349,15 +353,15 @@ class _SharedLibMixin(TypedDict): |
|
|
|
|
version: T.Optional[str] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SharedLibrary(_BuildTarget, _SharedLibMixin): |
|
|
|
|
class SharedLibrary(_BuildTarget, _SharedLibMixin, _LibraryMixin): |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class SharedModule(_BuildTarget): |
|
|
|
|
class SharedModule(_BuildTarget, _LibraryMixin): |
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Library(_BuildTarget, _SharedLibMixin): |
|
|
|
|
class Library(_BuildTarget, _SharedLibMixin, _LibraryMixin): |
|
|
|
|
|
|
|
|
|
"""For library, both_library, and as a base for build_target""" |
|
|
|
|
|
|
|
|
|