DescriptionRemove dependency from ui/base to cc on non-Android platforms
This is needed to resolve a dependency cycle when use_ozone=1:
gn gen out_gn_ozone --args='os="chromeos" use_ozone=true'
ERROR Dependency cycle:
//ui/base:base ->
//cc:cc ->
//gpu:gpu ->
//gpu/command_buffer/service:service ->
//ui/gl:gl ->
//ui/ozone:ozone ->
//ui/ozone/platform/test:test ->
//ui/base:base
The ui/base -> cc dependency is very small (2 files) and only used for
Android builds. We can fix the issue by restricting this dependency to
ui/base/android. Two functions in common code needed moving to drop the
dependency from non-Android builds.
Also add the cc dependency to the gyp build as it's missing there.
BUG=445627
TEST=built android chrome_shell_apk (both gyp & gn)
gn gen out_gn_ozone --args='os="chromeos" use_ozone=true is_component_build=true' &&
ninja -C out_gn_ozone chrome ozone_unittests (last one!)
Committed: https://crrev.com/ce336f674e224d9cbde5a5acc97f104fc888ae30
Cr-Commit-Position: refs/heads/master@{#316687}
Patch Set 1 #
Total comments: 1
Messages
Total messages: 24 (7 generated)
|