From f91786b0f7ed84f4d55fef7707b68bea180281f5 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Mon, 21 Aug 2023 11:55:48 -0700 Subject: [PATCH] [Impeller] Add testonly STB config (#754) For https://github.com/flutter/engine/pull/44887. --- build/secondary/third_party/stb/BUILD.gn | 15 +++++++++++++++ .../third_party/stb/stb_truetype_stub.cc | 6 ++++++ 2 files changed, 21 insertions(+) create mode 100644 build/secondary/third_party/stb/BUILD.gn create mode 100644 build/secondary/third_party/stb/stb_truetype_stub.cc diff --git a/build/secondary/third_party/stb/BUILD.gn b/build/secondary/third_party/stb/BUILD.gn new file mode 100644 index 0000000000..a01c16f073 --- /dev/null +++ b/build/secondary/third_party/stb/BUILD.gn @@ -0,0 +1,15 @@ +# 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. + +source_root = "//third_party/stb" + +source_set("stb_truetype") { + testonly = true + + public = [ "$source_root/stb_truetype.h" ] + + include_dirs = [ "$source_root" ] + + sources = [ "//build/secondary/third_party/stb/stb_truetype_stub.cc" ] +} diff --git a/build/secondary/third_party/stb/stb_truetype_stub.cc b/build/secondary/third_party/stb/stb_truetype_stub.cc new file mode 100644 index 0000000000..eaca9020be --- /dev/null +++ b/build/secondary/third_party/stb/stb_truetype_stub.cc @@ -0,0 +1,6 @@ +// 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. + +#define STB_TRUETYPE_IMPLEMENTATION +#include "third_party/stb/stb_truetype.h"