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

Unified Diff: mojo/services/files/public/cpp/BUILD.gn

Issue 1363183004: Files services library: Add an "output stream" file impl helper class. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: files_impl Created 5 years, 3 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/BUILD.gn ('k') | mojo/services/files/public/cpp/lib/output_stream_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/files/public/cpp/BUILD.gn
diff --git a/mojo/services/files/public/cpp/BUILD.gn b/mojo/services/files/public/cpp/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..685d5831b0fb8ad76af2bb6025bb9a003bcb8361
--- /dev/null
+++ b/mojo/services/files/public/cpp/BUILD.gn
@@ -0,0 +1,55 @@
+# Copyright 2015 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("//build/module_args/mojo.gni")
+import("$mojo_sdk_root/mojo/public/mojo_application.gni")
+import("$mojo_sdk_root/mojo/public/mojo_sdk.gni")
+
+# files_impl is a helper library for *implementing* various interfaces in
+# |mojo.files|.
+mojo_sdk_source_set("files_impl") {
+ # TODO(vtl): This is needed because mojo_sdk.gni doesn't understand relative
+ # dependencies (so without this we can't depend on our interfaces!). Should
+ # this target even be a mojo_sdk_source_set?
+ restrict_external_deps = false
+
+ public_configs = [ "../../../public/build/config:mojo_services" ]
+
+ sources = [
+ "lib/output_stream_file.cc",
+ "output_stream_file.h",
+ ]
+
+ deps = [
+ "../interfaces",
+ ]
+
+ mojo_sdk_deps = [
+ "mojo/public/cpp/bindings",
+ "mojo/public/cpp/environment",
+ "mojo/public/cpp/system",
+ ]
+}
+
+mojo_native_application("files_impl_apptests") {
+ output_name = "files_impl_apptests"
+
+ testonly = true
+
+ sources = [
+ "tests/output_stream_file_unittest.cc",
+ ]
+
+ deps = [
+ ":files_impl",
+ "../interfaces",
+ "$mojo_sdk_root/mojo/public/cpp/application:standalone",
+ "$mojo_sdk_root/mojo/public/cpp/application:test_support_standalone",
+ "$mojo_sdk_root/mojo/public/cpp/bindings",
+ "$mojo_sdk_root/mojo/public/cpp/environment",
+ "$mojo_sdk_root/mojo/public/cpp/system",
+ "$mojo_sdk_root/mojo/public/cpp/utility",
+ "//testing/gtest",
+ ]
+}
« no previous file with comments | « mojo/BUILD.gn ('k') | mojo/services/files/public/cpp/lib/output_stream_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698