From 401ce5f32e43ccf4c54ebb8033420489a6c5dc8e Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Tue, 17 Oct 2023 16:06:26 -0700 Subject: [PATCH] Move imgui from buildroot to flutter third_party (flutter/engine#47031) As part of eliminating the Flutter buildroot (#67373), we are moving all third-party dependencies from //third_party to //flutter/third_party. Once all third-party dependencies have been migrated, tooling and config will be moved and the buildroot will be eliminated altogether. Issue: https://github.com/flutter/flutter/issues/136284 No tests changed because there is no semantic change to this PR. This is simply relocating a dependency. ## Pre-launch Checklist - [X] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [X] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [X] I read and followed the [Flutter Style Guide] and the [C++, Objective-C, Java style guides]. - [X] I listed at least one issue that this PR fixes in the description above. - [ ] I added new tests to check the change I am making or feature I am adding, or the PR is [test-exempt]. See [testing the engine] for instructions on writing and running engine tests. - [X] I updated/added relevant documentation (doc comments with `///`). - [X] I signed the [CLA]. - [X] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style [testing the engine]: https://github.com/flutter/flutter/wiki/Testing-the-engine [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat --- DEPS | 2 +- .../build/secondary/{ => flutter}/third_party/imgui/BUILD.gn | 2 +- engine/src/flutter/ci/licenses_golden/excluded_files | 2 +- engine/src/flutter/ci/licenses_golden/tool_signature | 2 +- engine/src/flutter/impeller/playground/BUILD.gn | 2 +- engine/src/flutter/impeller/playground/imgui/BUILD.gn | 2 +- engine/src/flutter/tools/licenses/lib/paths.dart | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) rename engine/src/flutter/build/secondary/{ => flutter}/third_party/imgui/BUILD.gn (96%) diff --git a/DEPS b/DEPS index eea69c3810..05a4814382 100644 --- a/DEPS +++ b/DEPS @@ -671,7 +671,7 @@ deps = { 'src/third_party/pkg/vector_math': Var('dart_git') + '/external/github.com/google/vector_math.dart.git' + '@' + '0a5fd95449083d404df9768bc1b321b88a7d2eef', # 2.1.0 - 'src/third_party/imgui': + 'src/flutter/third_party/imgui': Var('github_git') + '/ocornut/imgui.git' + '@' + '3ea0fad204e994d669f79ed29dcaf61cd5cb571d', 'src/third_party/tinygltf': diff --git a/engine/src/flutter/build/secondary/third_party/imgui/BUILD.gn b/engine/src/flutter/build/secondary/flutter/third_party/imgui/BUILD.gn similarity index 96% rename from engine/src/flutter/build/secondary/third_party/imgui/BUILD.gn rename to engine/src/flutter/build/secondary/flutter/third_party/imgui/BUILD.gn index dadc4eec3e..9a93a12eaf 100644 --- a/engine/src/flutter/build/secondary/third_party/imgui/BUILD.gn +++ b/engine/src/flutter/build/secondary/flutter/third_party/imgui/BUILD.gn @@ -2,7 +2,7 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -source_root = "//third_party/imgui" +source_root = "//flutter/third_party/imgui" source_set("imgui") { public = [ diff --git a/engine/src/flutter/ci/licenses_golden/excluded_files b/engine/src/flutter/ci/licenses_golden/excluded_files index 3352ad5622..f36174f424 100644 --- a/engine/src/flutter/ci/licenses_golden/excluded_files +++ b/engine/src/flutter/ci/licenses_golden/excluded_files @@ -445,6 +445,7 @@ ../../../flutter/third_party/glfw/src/CMakeLists.txt ../../../flutter/third_party/glfw/tests ../../../flutter/third_party/gn +../../../flutter/third_party/imgui ../../../flutter/third_party/ninja ../../../flutter/third_party/spring_animation/README.md ../../../flutter/third_party/test_shaders @@ -2231,7 +2232,6 @@ ../../../third_party/icu/source/tools/toolutil/sources.txt ../../../third_party/icu/source/tools/tzcode/Makefile.in ../../../third_party/icu/source/tools/tzcode/readme.txt -../../../third_party/imgui ../../../third_party/inja/.clang-format ../../../third_party/inja/.git ../../../third_party/inja/.github diff --git a/engine/src/flutter/ci/licenses_golden/tool_signature b/engine/src/flutter/ci/licenses_golden/tool_signature index 12e514691e..0772863aa6 100644 --- a/engine/src/flutter/ci/licenses_golden/tool_signature +++ b/engine/src/flutter/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: 2da12666eedd83b571506f27f8445d99 +Signature: f161ef7a408768b3ded7494d69263d9b diff --git a/engine/src/flutter/impeller/playground/BUILD.gn b/engine/src/flutter/impeller/playground/BUILD.gn index 25408c569b..f3d7072ce0 100644 --- a/engine/src/flutter/impeller/playground/BUILD.gn +++ b/engine/src/flutter/impeller/playground/BUILD.gn @@ -48,7 +48,7 @@ impeller_component("playground") { "imgui:imgui_impeller_backend", "//flutter/fml", "//flutter/third_party/glfw", - "//third_party/imgui:imgui_glfw", + "//flutter/third_party/imgui:imgui_glfw", ] if (impeller_supports_rendering) { diff --git a/engine/src/flutter/impeller/playground/imgui/BUILD.gn b/engine/src/flutter/impeller/playground/imgui/BUILD.gn index 497bb5c199..19bb195876 100644 --- a/engine/src/flutter/impeller/playground/imgui/BUILD.gn +++ b/engine/src/flutter/impeller/playground/imgui/BUILD.gn @@ -19,7 +19,7 @@ impeller_shaders("imgui_shaders") { impeller_component("imgui_impeller_backend") { public_deps = [ ":imgui_shaders", - "//third_party/imgui", + "//flutter/third_party/imgui", ] deps = [ "//flutter/impeller/renderer" ] diff --git a/engine/src/flutter/tools/licenses/lib/paths.dart b/engine/src/flutter/tools/licenses/lib/paths.dart index 1e79b9e0e5..a35d1a2ac6 100644 --- a/engine/src/flutter/tools/licenses/lib/paths.dart +++ b/engine/src/flutter/tools/licenses/lib/paths.dart @@ -32,6 +32,7 @@ final Set skippedPaths = { r'flutter/third_party/glfw/deps', // Only used by examples and tests; not linked in build. r'flutter/third_party/glfw/docs', r'flutter/third_party/gn', + r'flutter/third_party/imgui', r'flutter/third_party/ninja', // build system r'flutter/third_party/test_shaders', // for tests only r'flutter/third_party/txt/third_party/fonts', @@ -112,7 +113,6 @@ final Set skippedPaths = { r'third_party/icu/source/data/brkitr/dictionaries/cjdict.txt', // explicitly handled by ICU license r'third_party/icu/source/data/brkitr/dictionaries/laodict.txt', // explicitly handled by ICU license r'third_party/icu/source/data/dtd', - r'third_party/imgui', r'third_party/inja/doc', // documentation r'third_party/inja/third_party/amalgamate', // only used at build time r'third_party/inja/third_party/include/doctest', // seems to be a unit test library