Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could find a place for this to live in flutter/engine instead of in buildroot?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could put a tertiary build dir tree that in the engine itself.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would be great. I added an issue about it here: flutter/flutter#132981.

If we move this build config into the engine tree, we should also move the other testonly deps I've added in the past like imgui and tinygltf, as they're in more or less the same situation.

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"