diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 18:16:43 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-09 18:16:43 +0000 |
commit | 5d2af2fa09b62f7d54f53dcebcc6b1e74c73a6ed (patch) | |
tree | 0f5af5de00037949a33447187dd9ac62683a1787 /third_party | |
parent | 78e8c8f5b354775ded89ee472a1f372e0dbbd523 (diff) | |
download | chromium_src-5d2af2fa09b62f7d54f53dcebcc6b1e74c73a6ed.zip chromium_src-5d2af2fa09b62f7d54f53dcebcc6b1e74c73a6ed.tar.gz chromium_src-5d2af2fa09b62f7d54f53dcebcc6b1e74c73a6ed.tar.bz2 |
Improve GN public header file checking
This makes the header checker and include iterator work from InputFiles (which basically just hold the file buffer) rather than just raw strings. This allows us to reference these files from Err.
Some extra line/char tracking is now in the include iterator so we can actually quote from and annotate the place in the source file where the bad include is, which looks much nicer than "the file blah included blah". It also makes it possible to write much shorter error messages that still make sense.
This adds visibility checking as previously documented in the help for "public" and a unit test for that.
This updates the documentation for "public" which was wrong (it referred to patterns which was not used).
R=scottmg@chromium.org
Review URL: https://codereview.chromium.org/229423002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262747 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/freetype2/BUILD.gn | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/freetype2/BUILD.gn b/third_party/freetype2/BUILD.gn index 1f43030..636772c 100644 --- a/third_party/freetype2/BUILD.gn +++ b/third_party/freetype2/BUILD.gn @@ -2,6 +2,8 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. +assert(is_linux, "This file should only be depended on from Linux.") + config("freetype2_config") { include_dirs = [ "include", "src/include" ] } |