Split dawn_(native|wire|platform) to their own BUILD.gn files

This will help external projects that want to use Dawn, like Skia, refer
to GN targets without GN discovering Dawn's main BUILD.gn file that
causes all the tests and third_party dependencies to be discovered.

This CL just splits off chunks of BUILD.gn into separate file, adds
necessary includes and fixes up GN paths. It also introduces temporary
groups for targets that are used in Chromium so that the paths can be
fixed in a 3-way patch.

Bug: chromium:1064305

Change-Id: Ib4b73bd8d3121ef67d4ecee2e54ec158875f2117
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/18861
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
This commit is contained in:
Corentin Wallez
2020-04-07 07:29:45 +00:00
committed by Commit Bot service account
parent c3c6694d8f
commit 5c2d2e7ff8
5 changed files with 769 additions and 729 deletions

View File

@@ -85,11 +85,11 @@ static_library("dawn_wire_server_fuzzer_common") {
"DawnWireServerFuzzer.h",
]
public_deps = [
"${dawn_root}/:libdawn_native_static",
"${dawn_root}/:libdawn_wire_static",
"${dawn_root}/src/common",
"${dawn_root}/src/dawn:dawncpp",
"${dawn_root}/src/dawn:libdawn_proc",
"${dawn_root}/src/dawn_native:libdawn_native_static",
"${dawn_root}/src/dawn_wire:libdawn_wire_static",
]
}