xref: /aosp_15_r20/external/angle/src/libANGLE/renderer/wgpu/BUILD.gn (revision 8975f5c5ed3d1c378011245431ada316dfb6f244)
1# Copyright 2024 The ANGLE Project Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4#
5# This file houses the build configuration for the ANGLE Wgpu back-end.
6
7import("//third_party/dawn/scripts/dawn_features.gni")
8import("../../../../gni/angle.gni")
9import("wgpu_sources.gni")
10
11assert(angle_enable_wgpu)
12assert(defined(angle_dawn_dir))
13
14config("angle_wgpu_backend_config") {
15  defines = [ "ANGLE_ENABLE_WGPU" ]
16}
17
18angle_source_set("angle_wgpu_backend") {
19  sources = wgpu_backend_sources
20
21  public_deps = [ "$angle_root:libANGLE_headers" ]
22
23  deps = [
24    "$angle_root:angle_image_util",
25    "${angle_dawn_dir}/include/dawn:cpp_headers",
26    "${angle_dawn_dir}/include/dawn:headers",
27    "${angle_dawn_dir}/src/dawn:cpp",
28    "${angle_dawn_dir}/src/dawn:proc",
29    "${angle_dawn_dir}/src/dawn/native",
30    "${angle_root}:translator",
31  ]
32}
33