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

Side by Side Diff: chromecast/base/BUILD.gn

Issue 2373683003: Remove som GYP annotations, remove unused manifest. (Closed)
Patch Set: Fix Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « chromecast/app/BUILD.gn ('k') | chromecast/base/component/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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("//build/util/process_version.gni") 5 import("//build/util/process_version.gni")
6 import("//chromecast/chromecast.gni") 6 import("//chromecast/chromecast.gni")
7 import("//testing/test.gni") 7 import("//testing/test.gni")
8 8
9 if (is_android) { 9 if (is_android) {
10 import("//build/config/android/rules.gni") 10 import("//build/config/android/rules.gni")
11 } 11 }
12 12
13 declare_args() { 13 declare_args() {
14 # Denotes the type of Cast product. This is #defined as CAST_PRODUCT_TYPE in 14 # Denotes the type of Cast product. This is #defined as CAST_PRODUCT_TYPE in
15 # version.h. This is an integer in the range [0-4]. 15 # version.h. This is an integer in the range [0-4].
16 if (is_android) { 16 if (is_android) {
17 cast_product_type = 4 17 cast_product_type = 4
18 } else { 18 } else {
19 cast_product_type = 0 19 cast_product_type = 0
20 } 20 }
21 } 21 }
22 22
23 if (is_android) { 23 if (is_android) {
24 assert(cast_product_type == 4) 24 assert(cast_product_type == 4)
25 } else { 25 } else {
26 assert(cast_product_type >= 0 && cast_product_type <= 3) 26 assert(cast_product_type >= 0 && cast_product_type <= 3)
27 } 27 }
28 28
29 # GYP target: chromecast.gyp:cast_base
30 source_set("base") { 29 source_set("base") {
31 sources = [ 30 sources = [
32 "android/dumpstate_writer.cc", 31 "android/dumpstate_writer.cc",
33 "android/dumpstate_writer.h", 32 "android/dumpstate_writer.h",
34 "android/system_time_change_notifier_android.cc", 33 "android/system_time_change_notifier_android.cc",
35 "android/system_time_change_notifier_android.h", 34 "android/system_time_change_notifier_android.h",
36 "bind_to_task_runner.h", 35 "bind_to_task_runner.h",
37 "cast_constants.cc", 36 "cast_constants.cc",
38 "cast_constants.h", 37 "cast_constants.h",
39 "cast_paths.cc", 38 "cast_paths.cc",
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 sources = [ 100 sources = [
102 "init_command_line_shlib.cc", 101 "init_command_line_shlib.cc",
103 "init_command_line_shlib.h", 102 "init_command_line_shlib.h",
104 ] 103 ]
105 104
106 deps = [ 105 deps = [
107 "//base", 106 "//base",
108 ] 107 ]
109 } 108 }
110 109
111 # GYP target: n/a
112 source_set("test_support") { 110 source_set("test_support") {
113 sources = [ 111 sources = [
114 "scoped_temp_file.cc", 112 "scoped_temp_file.cc",
115 "scoped_temp_file.h", 113 "scoped_temp_file.h",
116 ] 114 ]
117 115
118 public_deps = [ 116 public_deps = [
119 ":base", 117 ":base",
120 "//base", 118 "//base",
121 ] 119 ]
122 } 120 }
123 121
124 # GYP target: chromecast_tests.gypi:cast_base_unittests
125 test("cast_base_unittests") { 122 test("cast_base_unittests") {
126 sources = [ 123 sources = [
127 "bind_to_task_runner_unittest.cc", 124 "bind_to_task_runner_unittest.cc",
128 "device_capabilities_impl_unittest.cc", 125 "device_capabilities_impl_unittest.cc",
129 "error_codes_unittest.cc", 126 "error_codes_unittest.cc",
130 "path_utils_unittest.cc", 127 "path_utils_unittest.cc",
131 "process_utils_unittest.cc", 128 "process_utils_unittest.cc",
132 "serializers_unittest.cc", 129 "serializers_unittest.cc",
133 "system_time_change_notifier_unittest.cc", 130 "system_time_change_notifier_unittest.cc",
134 ] 131 ]
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 ] 218 ]
222 } else { 219 } else {
223 extra_args += [ 220 extra_args += [
224 "-e", 221 "-e",
225 "CAST_IS_DEBUG_BUILD=0", 222 "CAST_IS_DEBUG_BUILD=0",
226 ] 223 ]
227 } 224 }
228 } 225 }
229 226
230 if (is_android) { 227 if (is_android) {
231 # GYP target: chromecast.gyp:jni_headers
232 generate_jni("jni_headers") { 228 generate_jni("jni_headers") {
233 sources = [ 229 sources = [
234 "java/src/org/chromium/chromecast/base/ChromecastConfigAndroid.java", 230 "java/src/org/chromium/chromecast/base/ChromecastConfigAndroid.java",
235 "java/src/org/chromium/chromecast/base/DumpstateWriter.java", 231 "java/src/org/chromium/chromecast/base/DumpstateWriter.java",
236 "java/src/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroid.jav a", 232 "java/src/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroid.jav a",
237 ] 233 ]
238 234
239 jni_package = "chromecast" 235 jni_package = "chromecast"
240 } 236 }
241 237
242 # GYP target: chromecast.gyp:cast_base_java
243 android_library("base_java") { 238 android_library("base_java") {
244 java_src_dir = "//chromecast/base/java/src" 239 java_src_dir = "//chromecast/base/java/src"
245 java_files = [ 240 java_files = [
246 "$java_src_dir/org/chromium/chromecast/base/CastSettingsManager.java", 241 "$java_src_dir/org/chromium/chromecast/base/CastSettingsManager.java",
247 "$java_src_dir/org/chromium/chromecast/base/ChromecastConfigAndroid.java", 242 "$java_src_dir/org/chromium/chromecast/base/ChromecastConfigAndroid.java",
248 "$java_src_dir/org/chromium/chromecast/base/DumpstateWriter.java", 243 "$java_src_dir/org/chromium/chromecast/base/DumpstateWriter.java",
249 "$java_src_dir/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroi d.java", 244 "$java_src_dir/org/chromium/chromecast/base/SystemTimeChangeNotifierAndroi d.java",
250 ] 245 ]
251 246
252 deps = [ 247 deps = [
253 "//base:base_java", 248 "//base:base_java",
254 ] 249 ]
255 } 250 }
256 } 251 }
OLDNEW
« no previous file with comments | « chromecast/app/BUILD.gn ('k') | chromecast/base/component/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698