Skip to content

Commit

Permalink
[Impeller] Copy shaders lib to output directory (flutter#37225)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero authored Nov 2, 2022
1 parent 32faadb commit f9abfc5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
5 changes: 4 additions & 1 deletion impeller/compiler/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,10 @@ impeller_component("impellerc") {

sources = [ "impellerc_main.cc" ]

deps = [ ":compiler_lib" ]
deps = [
":compiler_lib",
"shader_lib",
]

metadata = {
entitlement_file_path = [ "impellerc" ]
Expand Down
10 changes: 10 additions & 0 deletions impeller/compiler/shader_lib/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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",
]
}
8 changes: 8 additions & 0 deletions impeller/compiler/shader_lib/flutter/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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}}" ]
}
17 changes: 17 additions & 0 deletions impeller/compiler/shader_lib/impeller/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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}}" ]
}

0 comments on commit f9abfc5

Please sign in to comment.