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

Side by Side Diff: base/base.gyp

Issue 8065017: Upstream: Android's base.gyp and base.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments and refine the TODO. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | base/base.gypi » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 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 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 }, 8 },
9 'includes': [ 9 'includes': [
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
11 'base.gypi', 11 'base.gypi',
12 ], 12 ],
13 'targets': [ 13 'targets': [
14 { 14 {
15 'target_name': 'base_i18n', 15 'target_name': 'base_i18n',
16 'type': '<(component)', 16 'type': '<(component)',
17 'dependencies': [ 17 'dependencies': [
18 'base', 18 'base',
19 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions', 19 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions',
20 '../third_party/icu/icu.gyp:icui18n', 20 '../third_party/icu/icu.gyp:icui18n',
21 '../third_party/icu/icu.gyp:icuuc', 21 '../third_party/icu/icu.gyp:icuuc',
22 ], 22 ],
23 'conditions': [ 23 'conditions': [
24 ['toolkit_uses_gtk==1', { 24 ['toolkit_uses_gtk==1', {
25 'dependencies': [ 25 'dependencies': [
26 # i18n/rtl.cc uses gtk 26 # i18n/rtl.cc uses gtk
27 '../build/linux/system.gyp:gtk', 27 '../build/linux/system.gyp:gtk',
28 ], 28 ],
29 }], 29 }],
30 # TODO(michaelbai): Remove the below condition once the icu supported.
31 ['OS == "android"', {
32 # Removed the dependence on icu.gyp by overriding
33 # 'dependencies', third_party/icu can be compiled on Android now.
brettw 2011/09/28 21:38:49 This sentence doesn't make any sense.
michaelbai 2011/09/28 23:04:34 Done.
34 'dependencies=': [
brettw 2011/09/28 21:38:49 You seem to be writing this assuming that this wil
michaelbai 2011/09/28 21:45:36 Yes, To completely remove the ICU is what I want n
brettw 2011/09/28 21:47:50 As I explained in the comment, what you wrote does
michaelbai 2011/09/28 23:04:34 As we discussed, I changed to use exclude list On
35 'base',
36 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann otations',
37 ],
38 # Removed all sources files because of the missing icu.
39 'sources=': [
40 ],
41 }],
30 ], 42 ],
31 'export_dependent_settings': [ 43 'export_dependent_settings': [
32 'base', 44 'base',
33 ], 45 ],
34 'defines': [ 46 'defines': [
35 'BASE_I18N_IMPLEMENTATION', 47 'BASE_I18N_IMPLEMENTATION',
36 ], 48 ],
37 'sources': [ 49 'sources': [
38 'i18n/base_i18n_export.h', 50 'i18n/base_i18n_export.h',
39 'i18n/bidi_line_iterator.cc', 51 'i18n/bidi_line_iterator.cc',
40 'i18n/bidi_line_iterator.h', 52 'i18n/bidi_line_iterator.h',
41 'i18n/break_iterator.cc', 53 'i18n/break_iterator.cc',
42 'i18n/break_iterator.h', 54 'i18n/break_iterator.h',
43 'i18n/char_iterator.cc', 55 'i18n/char_iterator.cc',
44 'i18n/char_iterator.h', 56 'i18n/char_iterator.h',
45 'i18n/case_conversion.cc', 57 'i18n/case_conversion.cc',
46 'i18n/case_conversion.h', 58 'i18n/case_conversion.h',
47 'i18n/file_util_icu.cc', 59 'i18n/file_util_icu.cc',
48 'i18n/file_util_icu.h', 60 'i18n/file_util_icu.h',
49 'i18n/icu_encoding_detection.cc', 61 'i18n/icu_encoding_detection.cc',
50 'i18n/icu_encoding_detection.h', 62 'i18n/icu_encoding_detection.h',
51 'i18n/icu_string_conversions.cc', 63 'i18n/icu_string_conversions.cc',
52 'i18n/icu_string_conversions.h', 64 'i18n/icu_string_conversions.h',
53 'i18n/icu_util.cc', 65 'i18n/icu_util.cc',
54 'i18n/icu_util.h', 66 'i18n/icu_util.h',
55 'i18n/number_formatting.cc', 67 'i18n/number_formatting.cc',
56 'i18n/number_formatting.h', 68 'i18n/number_formatting.h',
57 'i18n/rtl.cc', 69 'i18n/rtl.cc',
58 'i18n/rtl.h', 70 'i18n/rtl.h',
59 » 'i18n/string_search.cc', 71 'i18n/string_search.cc',
60 » 'i18n/string_search.h', 72 'i18n/string_search.h',
61 'i18n/time_formatting.cc', 73 'i18n/time_formatting.cc',
62 'i18n/time_formatting.h', 74 'i18n/time_formatting.h',
63 ], 75 ],
64 }, 76 },
65 { 77 {
66 # This is the subset of files from base that should not be used with a 78 # This is the subset of files from base that should not be used with a
67 # dynamic library. Note that this library cannot depend on base because 79 # dynamic library. Note that this library cannot depend on base because
68 # base depends on base_static. 80 # base depends on base_static.
69 'target_name': 'base_static', 81 'target_name': 'base_static',
70 'type': 'static_library', 82 'type': 'static_library',
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 '../testing/gtest.gyp:gtest', 262 '../testing/gtest.gyp:gtest',
251 '../third_party/icu/icu.gyp:icui18n', 263 '../third_party/icu/icu.gyp:icui18n',
252 '../third_party/icu/icu.gyp:icuuc', 264 '../third_party/icu/icu.gyp:icuuc',
253 ], 265 ],
254 'includes': ['../build/nocompile.gypi'], 266 'includes': ['../build/nocompile.gypi'],
255 'variables': { 267 'variables': {
256 # TODO(ajwong): Is there a way to autodetect this? 268 # TODO(ajwong): Is there a way to autodetect this?
257 'module_dir': 'base' 269 'module_dir': 'base'
258 }, 270 },
259 'conditions': [ 271 'conditions': [
272 ['OS == "android"', {
273 # TODO(michaelbai): The below removed the dependence on icu.gyp by
274 # overriding 'dependencies' because the third_party/icu can be
275 # compiled on Android now. This should be removed once icu is ready.
276 'dependencies=': [
277 'base',
278 'base_i18n',
279 'base_static',
280 'test_support_base',
281 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_ann otations',
282 '../testing/gmock.gyp:gmock',
283 '../testing/gtest.gyp:gtest',
284 ],
285 'sources!': [
286 # TODO(michaelbai): The belows are excluded because of the missing
287 # icu and should be added back once icu is ready.
288 'i18n/break_iterator_unittest.cc',
289 'i18n/char_iterator_unittest.cc',
290 'i18n/case_conversion_unittest.cc',
291 'i18n/file_util_icu_unittest.cc',
292 'i18n/icu_string_conversions_unittest.cc',
293 'i18n/number_formatting_unittest.cc',
294 'i18n/rtl_unittest.cc',
295 'i18n/string_search_unittest.cc',
296 'i18n/time_formatting_unittest.cc',
297 # TODO(michaelbai): Removed the below once the fix upstreamed.
298 'memory/mru_cache_unittest.cc',
299 'process_util_unittest.cc',
300 'synchronization/cancellation_flag_unittest.cc',
301 # TODO(michaelbai): The below files are excluded because of the
302 # missing JNI and should be added back once JNI is ready.
303 'android/scoped_java_ref_unittest.cc',
304 'debug/stack_trace_unittest.cc',
305 ],
306 }],
260 ['use_glib==1', { 307 ['use_glib==1', {
261 'sources!': [ 308 'sources!': [
262 'file_version_info_unittest.cc', 309 'file_version_info_unittest.cc',
263 ], 310 ],
264 'conditions': [ 311 'conditions': [
265 [ 'linux_use_tcmalloc==1', { 312 [ 'linux_use_tcmalloc==1', {
266 'dependencies': [ 313 'dependencies': [
267 'allocator/allocator.gyp:allocator', 314 'allocator/allocator.gyp:allocator',
268 ], 315 ],
269 }, 316 },
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 'test/scoped_locale.h', 409 'test/scoped_locale.h',
363 'test/test_file_util.h', 410 'test/test_file_util.h',
364 'test/test_file_util_linux.cc', 411 'test/test_file_util_linux.cc',
365 'test/test_file_util_mac.cc', 412 'test/test_file_util_mac.cc',
366 'test/test_file_util_posix.cc', 413 'test/test_file_util_posix.cc',
367 'test/test_file_util_win.cc', 414 'test/test_file_util_win.cc',
368 'test/test_reg_util_win.cc', 415 'test/test_reg_util_win.cc',
369 'test/test_reg_util_win.h', 416 'test/test_reg_util_win.h',
370 'test/test_suite.cc', 417 'test/test_suite.cc',
371 'test/test_suite.h', 418 'test/test_suite.h',
419 'test/test_stub_android.cc',
372 'test/test_switches.cc', 420 'test/test_switches.cc',
373 'test/test_switches.h', 421 'test/test_switches.h',
374 'test/test_timeouts.cc', 422 'test/test_timeouts.cc',
375 'test/test_timeouts.h', 423 'test/test_timeouts.h',
376 'test/thread_test_helper.cc', 424 'test/thread_test_helper.cc',
377 'test/thread_test_helper.h', 425 'test/thread_test_helper.h',
378 ], 426 ],
379 }, 427 },
380 { 428 {
381 'target_name': 'test_support_perf', 429 'target_name': 'test_support_perf',
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 'msvs_settings': { 466 'msvs_settings': {
419 'VCLinkerTool': { 467 'VCLinkerTool': {
420 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS 468 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
421 }, 469 },
422 }, 470 },
423 }, 471 },
424 ], 472 ],
425 }], 473 }],
426 ], 474 ],
427 } 475 }
OLDNEW
« no previous file with comments | « no previous file | base/base.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698