mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
25 lines
852 B
Python
25 lines
852 B
Python
# Copyright Google LLC All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by an MIT-style license that can be
|
|
# found in the LICENSE file at https://angular.dev/license
|
|
|
|
NgPartialCompilationInfo = provider(
|
|
fields = {"enabled": "Whether partial compilation is enabled."},
|
|
)
|
|
|
|
def _ng_partial_compilation_flag_impl(ctx):
|
|
return NgPartialCompilationInfo(enabled = ctx.build_setting_value)
|
|
|
|
ng_partial_compilation_flag = rule(
|
|
implementation = _ng_partial_compilation_flag_impl,
|
|
build_setting = config.bool(flag = True),
|
|
)
|
|
|
|
def _partial_compilation_transition_impl(_settings, _attr):
|
|
return {"//packages/bazel/src:partial_compilation": True}
|
|
|
|
partial_compilation_transition = transition(
|
|
implementation = _partial_compilation_transition_impl,
|
|
inputs = [],
|
|
outputs = ["//packages/bazel/src:partial_compilation"],
|
|
)
|