Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1129)

Unified Diff: mojo/public/c/BUILD.gn

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/util/string_printf.h ('k') | mojo/public/c/include/mojo/macros.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/c/BUILD.gn
diff --git a/mojo/public/c/BUILD.gn b/mojo/public/c/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..36935b85eefe34fec5a097bf143e070892705b11
--- /dev/null
+++ b/mojo/public/c/BUILD.gn
@@ -0,0 +1,41 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("../mojo_sdk.gni")
+
+config("c_config") {
+ include_dirs = [ "include" ]
+}
+
+# Catch-all for all public C headers/libraries, except for the implementation
+# libraries that are meant to be replaceable ("pluggable"), like ...
+# (TODO(vtl)).
+group("c") {
+ public_deps = [
+ ":common",
+ ":system",
+ ]
+}
+
+# Headers in include/mojo (to be include as <mojo/HEADER.h>).
+mojo_sdk_source_set("common") {
+ public_configs = [ ":c_config" ]
+
+ sources = [
+ "include/mojo/macros.h",
+ ]
+}
+
+# Headers in include/mojo/system (to be include as <mojo/system/HEADER.h>).
+mojo_sdk_source_set("system") {
+ public_configs = [ ":c_config" ]
+
+ sources = [
+ # Nothing here yet.
+ ]
+
+ public_deps = [
+ ":common",
+ ]
+}
« no previous file with comments | « mojo/edk/util/string_printf.h ('k') | mojo/public/c/include/mojo/macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698