Fix up build/test issues when building on or off of mac (flutter/engine#148)

This commit is contained in:
Dan Field
2022-04-20 16:58:55 -07:00
committed by Dan Field
parent 49069bef87
commit 04bbef5e1b
4 changed files with 9 additions and 5 deletions

View File

@@ -18,7 +18,11 @@ config("impeller_public_config") {
}
if (is_win) {
defines += [ "_USE_MATH_DEFINES" ]
defines += [
"_USE_MATH_DEFINES",
# TODO(dnfield): https://github.com/flutter/flutter/issues/50053
"_SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING",
]
}
}
@@ -50,7 +54,6 @@ executable("impeller_unittests") {
"base:base_unittests",
"blobcat:blobcat_unittests",
"compiler:compiler_unittests",
"fixtures",
"geometry:geometry_unittests",
# FML depends on the Dart VM for tracing and getting the current
@@ -63,6 +66,7 @@ executable("impeller_unittests") {
"aiks:aiks_unittests",
"display_list:display_list_unittests",
"entity:entity_unittests",
"fixtures",
"image:image_unittests",
"playground",
"renderer:renderer_unittests",

View File

@@ -4,9 +4,9 @@
#include "impeller/compiler/utilities.h"
#include <cctype>
#include <filesystem>
#include <sstream>
#include <string>
namespace impeller {
namespace compiler {

View File

@@ -176,7 +176,7 @@ TEST_P(DisplayListTest, StrokedPathsDrawCorrectly) {
ASSERT_TRUE(OpenPlaygroundHere(builder.Build()));
}
TEST_F(DisplayListTest, CanDrawWithMaskBlur) {
TEST_P(DisplayListTest, CanDrawWithMaskBlur) {
auto texture = CreateTextureForFixture("embarcadero.jpg");
flutter::DisplayListBuilder builder;

View File

@@ -37,7 +37,7 @@ std::string PlaygroundBackendToString(PlaygroundBackend backend) {
Playground::Playground()
: impl_(PlaygroundImpl::Create(GetParam())),
renderer_(impl_->CreateContext()),
is_valid_(Playground::is_enabled() && renderer_.IsValid()) {}
is_valid_(renderer_.IsValid()) {}
Playground::~Playground() = default;