summaryrefslogtreecommitdiffstats
path: root/device/usb/BUILD.gn
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 22:17:35 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-07 22:17:35 +0000
commit126d8b5e3a7efa3e2584de4c1bc31c6460233ca6 (patch)
tree91c7311d1161422ffdf91b9ce0a222a345c03ffe /device/usb/BUILD.gn
parent44b4f0e59d30953db7cd89dd95266f0f5973e1da (diff)
downloadchromium_src-126d8b5e3a7efa3e2584de4c1bc31c6460233ca6.zip
chromium_src-126d8b5e3a7efa3e2584de4c1bc31c6460233ca6.tar.gz
chromium_src-126d8b5e3a7efa3e2584de4c1bc31c6460233ca6.tar.bz2
Add optional public header checking to GN build
You can invoke this either using the "--check" argument to the gen command (for use on buildbots) or by running "gn check" (for developer on-demand use). This adds support for "public" headers for a target, and an optional "--check" flag to the gen command that implements checkdeps-like include checking. Basically if you include a file that's declared in the build, it has to be in the public section of one of your dependents (or that dependent doesn't have a public section, which implies everything is public). This roughly maps to Blaze's behavior around the public headers. Moves modp_b64 build file to main tree. Remove modp_b64 hack for older versions of VC missing stdint (this included basictypes which caused a header check failure). I also added some base dependencies and some other minor build changes to solve some other issues identified by the check. The remaining one is that a file in base/metrics depends on ipc (!) BUG= R=scottmg@chromium.org Review URL: https://codereview.chromium.org/216903004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262216 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'device/usb/BUILD.gn')
-rw-r--r--device/usb/BUILD.gn5
1 files changed, 4 insertions, 1 deletions
diff --git a/device/usb/BUILD.gn b/device/usb/BUILD.gn
index d7fa6d0..428a717 100644
--- a/device/usb/BUILD.gn
+++ b/device/usb/BUILD.gn
@@ -12,7 +12,10 @@ static_library("usb") {
"usb_ids.h",
generated_ids,
]
- deps = [ ":usb_device_ids" ]
+ deps = [
+ ":usb_device_ids",
+ "//base",
+ ]
}
action("usb_device_ids") {