Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 | 6 |
| 7 if (is_android) { | 7 if (is_android) { |
| 8 import("//build/config/android/rules.gni") | 8 import("//build/config/android/rules.gni") |
| 9 | 9 |
| 10 android_library("authentication") { | 10 android_library("authentication") { |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 31 mojom("interfaces") { | 31 mojom("interfaces") { |
| 32 sources = [ | 32 sources = [ |
| 33 "authentication_impl_db.mojom", | 33 "authentication_impl_db.mojom", |
| 34 ] | 34 ] |
| 35 } | 35 } |
| 36 } else { | 36 } else { |
| 37 import("//mojo/public/mojo_application.gni") | 37 import("//mojo/public/mojo_application.gni") |
| 38 | 38 |
| 39 mojo_native_application("authentication") { | 39 mojo_native_application("authentication") { |
| 40 sources = [ | 40 sources = [ |
| 41 "dummy_authentication_app.cc", | 41 "accounts_db_manager.cc", |
| 42 "accounts_db_manager.h", | |
| 43 "auth_data.cc", | |
| 44 "auth_data.h", | |
| 45 "google_authentication_impl.cc", | |
| 46 "google_authentication_impl.h", | |
| 47 "main.cc", | |
| 42 ] | 48 ] |
| 43 | 49 |
| 44 deps = [ | 50 deps = [ |
| 51 ":interfaces", | |
| 52 "//base", | |
| 53 "//mojo/application", | |
| 45 "//mojo/common", | 54 "//mojo/common", |
| 46 "//mojo/public/cpp/application", | 55 "//mojo/data_pipe_utils", |
| 47 "//mojo/public/cpp/application:standalone", | |
| 48 "//mojo/public/cpp/bindings", | 56 "//mojo/public/cpp/bindings", |
| 57 "//mojo/public/cpp/bindings:callback", | |
| 49 "//mojo/public/cpp/system", | 58 "//mojo/public/cpp/system", |
| 50 "//mojo/services/authentication/interfaces", | 59 "//mojo/services/authentication/interfaces", |
| 60 "//mojo/services/network/interfaces", | |
| 61 "//mojo/services/files/interfaces", | |
| 62 ] | |
| 63 } | |
| 64 | |
| 65 mojo_native_application("apptests") { | |
| 66 output_name = "authentication_apptests" | |
| 67 testonly = true | |
| 68 | |
| 69 sources = [ | |
| 70 "accounts_db_manager.cc", | |
| 71 "accounts_db_manager.h", | |
| 72 "accounts_db_manager_unittest.cc", | |
| 73 "auth_data.cc", | |
| 74 "auth_data.h", | |
| 75 "auth_data_unittest.cc", | |
| 76 ] | |
| 77 | |
| 78 deps = [ | |
| 79 ":interfaces", | |
| 80 "//base", | |
| 81 "//mojo/application", | |
| 82 "//mojo/application:test_support", | |
| 83 "//mojo/public/cpp/bindings", | |
| 84 "//mojo/services/files/interfaces", | |
| 85 "//testing/gtest:gtest", | |
| 86 ] | |
| 87 | |
| 88 data_deps = [ | |
| 89 ":authentication($default_toolchain)", | |
|
qsr
2016/02/16 14:17:06
Any reason you need to specify the toolchain here?
ukode
2016/02/26 21:35:49
Its implemented this way for all services, dont kn
| |
| 90 ] | |
| 91 } | |
| 92 | |
| 93 mojom("interfaces") { | |
| 94 sources = [ | |
| 95 "authentication_impl_db.mojom", | |
| 51 ] | 96 ] |
| 52 } | 97 } |
| 53 } | 98 } |
| OLD | NEW |