Skip to content

Commit

Permalink
[Impeller] Add testonly STB config (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdero authored Aug 21, 2023
1 parent 483c2b9 commit f91786b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions build/secondary/third_party/stb/BUILD.gn
Original file line number Diff line number Diff line change
@@ -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" ]
}
6 changes: 6 additions & 0 deletions build/secondary/third_party/stb/stb_truetype_stub.cc
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit f91786b

Please sign in to comment.