Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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/mojo_application.gni") | 5 import("//mojo/public/mojo_application.gni") |
| 6 | 6 |
| 7 # Target naming conventions: | 7 # Target naming conventions: |
| 8 # - converters: C++/Mojo type converters. | 8 # - converters: C++/Mojo type converters. |
| 9 # - proxy: C++ implementations supported by mojo services. | 9 # - proxy: C++ implementations supported by mojo services. |
| 10 # - service: Mojo interface implementations. | 10 # - service: Mojo interface implementations. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 "mojo_media_application.cc", | 102 "mojo_media_application.cc", |
| 103 ] | 103 ] |
| 104 | 104 |
| 105 deps = [ | 105 deps = [ |
| 106 ":renderer_service", | 106 ":renderer_service", |
| 107 "//mojo/application", | 107 "//mojo/application", |
| 108 "//mojo/public/c/system:for_shared_library", | 108 "//mojo/public/c/system:for_shared_library", |
| 109 ] | 109 ] |
| 110 } | 110 } |
| 111 | 111 |
| 112 # Not a 'test' because this is loaded via mojo_shell as an app. | 112 # Note, this 'test' must be loaded via mojo_shell as an app: |
| 113 # To run the test: | 113 # |
| 114 # out/Debug/mojo_shell mojo:media_test | 114 # out/Debug/mojo_shell mojo://media_test |
|
xhwang
2014/12/17 05:25:03
OOC, is mojo:media_test not working, or is mojo://
DaleCurtis
2014/12/17 21:40:49
It works. I thought a thread encouraged the :// be
xhwang
2014/12/17 21:53:38
jamesr: Do you know what's the recommended style n
| |
| 115 # You can get "mojo_shell" using mojo/public/tools/download_shell_binary.py | 115 # |
| 116 # To get "mojo_shell" you must specify "use_prebuilt_mojo_shell=true" in GN. | |
| 116 mojo_native_application("media_test") { | 117 mojo_native_application("media_test") { |
| 117 testonly = true | 118 testonly = true |
| 118 sources = [ | |
| 119 "media_renderer_apptest.cc", | |
| 120 ] | |
| 121 | 119 |
| 122 deps = [ | 120 deps = [ |
| 123 ":media", | 121 "//media/test:mojo_pipeline_integration_tests", |
| 124 ":renderer_proxy", | |
| 125 "//base", | |
| 126 "//media", | |
| 127 "//media/mojo/interfaces", | |
| 128 "//media:shared_memory_support", | |
| 129 "//mojo/application", | |
| 130 "//mojo/application:test_support", | |
| 131 "//mojo/common", | |
| 132 "//mojo/environment:chromium", | |
| 133 "//mojo/public/c/system:for_shared_library", | |
| 134 ] | 122 ] |
| 135 } | 123 } |
| 136 } | 124 } |
| 137 | 125 |
| 138 group("services") { | 126 group("services") { |
| 139 deps = [ | 127 deps = [ |
| 140 ":renderer_proxy", | 128 ":renderer_proxy", |
| 141 ] | 129 ] |
| 142 | 130 |
| 143 if (!is_component_build) { | 131 if (!is_component_build) { |
| 144 deps += [ ":media" ] | 132 deps += [ ":media" ] |
| 145 } | 133 } |
| 146 } | 134 } |
| 147 | 135 |
| 148 group("tests") { | 136 group("tests") { |
| 149 testonly = true | 137 testonly = true |
| 150 deps = [ | 138 deps = [ |
| 151 ":media_mojo_unittests", | 139 ":media_mojo_unittests", |
| 152 ] | 140 ] |
| 153 | 141 |
| 154 if (!is_component_build) { | 142 if (!is_component_build) { |
| 155 deps += [ ":media_test" ] | 143 deps += [ ":media_test" ] |
| 156 } | 144 } |
| 157 } | 145 } |
| OLD | NEW |