[Impeller] Copy shaders lib to output directory (flutter/engine#37225)

This commit is contained in:
Brandon DeRosier 2022-11-01 21:01:06 -07:00 committed by GitHub
parent bf1ab2f268
commit eb408f324d
4 changed files with 39 additions and 1 deletions

View File

@ -94,7 +94,10 @@ impeller_component("impellerc") {
sources = [ "impellerc_main.cc" ]
deps = [ ":compiler_lib" ]
deps = [
":compiler_lib",
"shader_lib",
]
metadata = {
entitlement_file_path = [ "impellerc" ]

View File

@ -0,0 +1,10 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
group("shader_lib") {
deps = [
"./flutter",
"./impeller",
]
}

View File

@ -0,0 +1,8 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
copy("flutter") {
sources = [ "runtime_effect.glsl" ]
outputs = [ "$root_out_dir/shader_lib/flutter/{{source_file_part}}" ]
}

View File

@ -0,0 +1,17 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
copy("impeller") {
sources = [
"blending.glsl",
"branching.glsl",
"color.glsl",
"constants.glsl",
"gaussian.glsl",
"texture.glsl",
"transform.glsl",
"types.glsl",
]
outputs = [ "$root_out_dir/shader_lib/impeller/{{source_file_part}}" ]
}