forked from flutter/engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
100 lines (92 loc) · 2.28 KB
/
BUILD.gn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# 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.
import("//flutter/impeller/tools/impeller.gni")
import("//flutter/testing/testing.gni")
impeller_shaders("shader_fixtures") {
name = "fixtures"
shaders = [
"array.frag",
"array.vert",
"box_fade.frag",
"box_fade.vert",
"colors.vert",
"colors.frag",
"impeller.frag",
"impeller.vert",
"inactive_uniforms.frag",
"inactive_uniforms.vert",
"instanced_draw.frag",
"instanced_draw.vert",
"mipmaps.frag",
"mipmaps.vert",
"sample.comp",
"simple.vert",
"test_texture.frag",
"test_texture.vert",
]
if (impeller_enable_opengles) {
gles_exclusions = [ "sample.comp" ]
}
}
scenec("geometry_fixtures") {
geometry = [ "flutter_logo.glb" ]
type = "gltf"
}
impellerc("runtime_stages") {
shaders = [
"ink_sparkle.frag",
"runtime_stage_example.frag",
]
sl_file_extension = "iplr"
shader_target_flag = "--runtime-stage-metal"
iplr = true
}
test_fixtures("file_fixtures") {
fixtures = [
"//flutter/third_party/txt/third_party/fonts/HomemadeApple.ttf",
"//flutter/third_party/txt/third_party/fonts/NotoColorEmoji.ttf",
"//flutter/third_party/txt/third_party/fonts/Roboto-Regular.ttf",
"airplane.jpg",
"bay_bridge.jpg",
"blue_noise.png",
"boston.jpg",
"embarcadero.jpg",
"flutter_logo.glb",
"kalimba.jpg",
"multiple_stages.hlsl",
"resources_limit.vert",
"sample.comp",
"sample.frag",
"sample.tesc",
"sample.tese",
"sample.vert",
"sample_with_binding.vert",
"simple.vert.hlsl",
"sa%m#ple.vert",
"struct_def_bug.vert",
"table_mountain_nx.png",
"table_mountain_ny.png",
"table_mountain_nz.png",
"table_mountain_px.png",
"table_mountain_py.png",
"table_mountain_pz.png",
"test_texture.frag",
"types.h",
"wtf.otf",
]
if (host_os == "mac") {
fixtures += [ "/System/Library/Fonts/Apple Color Emoji.ttc" ]
}
fixtures +=
filter_include(get_target_outputs(":runtime_stages"), [ "*.iplr" ])
deps = [ ":runtime_stages" ]
}
group("fixtures") {
testonly = true
public_deps = [
":file_fixtures",
":geometry_fixtures",
":shader_fixtures",
]
}