Skip to content
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.

Commit

Permalink
Remove Fuchsia's dependency on the path to the engine tree's .git dir…
Browse files Browse the repository at this point in the history
…ectory (#57)

* Remove Fuchsia's dependency on the path to the engine tree's .git directory

* formatting

* enable master

* empty commit

* empty commit 2

* licenses
  • Loading branch information
jason-simmons authored Dec 6, 2024
1 parent d6db461 commit fbebc26
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion engine/src/flutter/.ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# More information at:
# * https://github.com/flutter/cocoon/blob/main/CI_YAML.md
enabled_branches:
- main
- master
- flutter-\d+\.\d+-candidate\.\d+
- fuchsia_r\d+[a-z]*

Expand Down
4 changes: 0 additions & 4 deletions engine/src/flutter/ci/licenses_golden/excluded_files
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
../../../.clang-format
../../../.git
../../../.gitattributes
../../../.github
../../../.gitignore
../../../.gn
../../../AUTHORS
Expand All @@ -13,15 +11,13 @@
../../../flutter/.clang-format
../../../flutter/.clang-tidy
../../../flutter/.dart_tool
../../../flutter/.git
../../../flutter/.gitattributes
../../../flutter/.github
../../../flutter/.gitignore
../../../flutter/.style.yapf
../../../flutter/AUTHORS
../../../flutter/CODEOWNERS
../../../flutter/CONTRIBUTING.md
../../../flutter/DEPS
../../../flutter/Doxyfile
../../../flutter/README.md
../../../flutter/analysis_options.yaml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
assert(is_fuchsia)

import("//flutter/common/config.gni")
import("//flutter/shell/version/version.gni")
import("//flutter/testing/testing.gni")
import("//flutter/tools/fuchsia/gn-sdk/src/gn_configs.gni")

Expand Down Expand Up @@ -59,7 +60,6 @@ template("make_utils") {
action("generate_build_info_cc_file") {
inputs = [
"build_info_in.cc",
"//flutter/.git/logs/HEAD",
"//fuchsia/sdk/$host_os/meta/manifest.json",
"$dart_src/.git/logs/HEAD",
]
Expand All @@ -73,6 +73,8 @@ action("generate_build_info_cc_file") {
rebase_path(outputs[0], root_build_dir),
"--buildroot",
rebase_path("//", root_build_dir),
"--engine-version",
engine_version,
]
}

Expand Down
6 changes: 5 additions & 1 deletion engine/src/flutter/tools/fuchsia/make_build_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ def main():
parser.add_argument(
'--buildroot', action='store', help='path to the flutter engine buildroot', required=True
)
parser.add_argument(
'--engine-version', action='store', help='Flutter engine commit hash', required=True
)
args = parser.parse_args()

# Read, interpolate, write.
with open(args.input, 'r') as i, open(args.output, 'w') as o:
# yapf: disable
o.write(
i.read().replace(
'{{DART_SDK_GIT_REVISION}}',
Expand All @@ -65,7 +69,7 @@ def main():
GetDartSdkSemanticVersion(args.buildroot).decode('utf-8')
).replace(
'{{FLUTTER_ENGINE_GIT_REVISION}}',
GetFlutterEngineGitRevision(args.buildroot).decode('utf-8')
args.engine_version
).replace('{{FUCHSIA_SDK_VERSION}}', GetFuchsiaSdkVersion(args.buildroot))
)

Expand Down

0 comments on commit fbebc26

Please sign in to comment.