File tree 3 files changed +17
-4
lines changed
3 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ config("impeller_public_config") {
12
12
if (impeller_supports_platform ) {
13
13
defines += [ " IMPELLER_SUPPORTS_PLATFORM=1" ]
14
14
}
15
+
16
+ if (is_win ) {
17
+ defines += [ " _USE_MATH_DEFINES" ]
18
+ }
15
19
}
16
20
17
21
group (" impeller" ) {
Original file line number Diff line number Diff line change @@ -15,8 +15,14 @@ impeller_component("tessellator") {
15
15
deps = [ " //third_party/libtess2" ]
16
16
}
17
17
18
- shared_library (" tessellator_shared" ) {
19
- output_name = " tessellator"
18
+ impeller_component (" tessellator_shared" ) {
19
+ target_type = " shared_library"
20
+ if (is_win ) {
21
+ output_name = " libtessellator"
22
+ } else {
23
+ output_name = " tessellator"
24
+ }
25
+
20
26
21
27
sources = [
22
28
" c/tessellator.h" ,
Original file line number Diff line number Diff line change @@ -10,7 +10,10 @@ declare_args() {
10
10
impeller_enable_playground = false
11
11
12
12
# Whether Impeller is supported on the platform.
13
- impeller_supports_platform = is_mac || is_ios
13
+ impeller_supports_platform = true
14
+
15
+ # Whether Impeller shaders are supported on the platform.
16
+ impeller_shaders_supports_platform = is_mac || is_ios
14
17
}
15
18
16
19
# ------------------------------------------------------------------------------
@@ -289,7 +292,7 @@ template("impeller_shaders_real") {
289
292
# @see impeller_shaders_real
290
293
#
291
294
template (" impeller_shaders" ) {
292
- if (impeller_supports_platform ) {
295
+ if (impeller_shaders_supports_platform ) {
293
296
impeller_shaders_real (target_name ) {
294
297
forward_variables_from (invoker , " *" )
295
298
}
You can’t perform that action at this time.
0 commit comments