OLD | NEW |
---|---|
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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', |
(...skipping 17 matching lines...) Expand all Loading... | |
28 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions', | 28 'third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotat ions', |
29 ], | 29 ], |
30 # TODO(gregoryd): direct_dependent_settings should be shared with the | 30 # TODO(gregoryd): direct_dependent_settings should be shared with the |
31 # 64-bit target, but it doesn't work due to a bug in gyp | 31 # 64-bit target, but it doesn't work due to a bug in gyp |
32 'direct_dependent_settings': { | 32 'direct_dependent_settings': { |
33 'include_dirs': [ | 33 'include_dirs': [ |
34 '..', | 34 '..', |
35 ], | 35 ], |
36 }, | 36 }, |
37 'conditions': [ | 37 'conditions': [ |
38 ['use_glib==1', { | 38 ['desktop_linux == 1 or chromeos == 1', { |
Ben Goodger (Google)
2013/11/07 18:48:25
this is way better.
| |
39 'conditions': [ | 39 'conditions': [ |
40 ['chromeos==1', { | 40 ['chromeos==1', { |
41 'sources/': [ ['include', '_chromeos\\.cc$'] ] | 41 'sources/': [ ['include', '_chromeos\\.cc$'] ] |
42 }], | 42 }], |
43 ['toolkit_uses_gtk==1', { | 43 ['toolkit_uses_gtk==1', { |
44 'dependencies': [ | 44 'dependencies': [ |
45 '../build/linux/system.gyp:gtk', | 45 '../build/linux/system.gyp:gtk', |
46 ], | 46 ], |
47 'export_dependent_settings': [ | 47 'export_dependent_settings': [ |
48 '../build/linux/system.gyp:gtk', | 48 '../build/linux/system.gyp:gtk', |
49 ], | 49 ], |
50 }], | 50 }], |
51 ], | 51 ], |
52 'dependencies': [ | 52 'dependencies': [ |
53 'symbolize', | 53 'symbolize', |
54 '../build/linux/system.gyp:glib', | |
55 'xdg_mime', | 54 'xdg_mime', |
56 ], | 55 ], |
57 'defines': [ | 56 'defines': [ |
58 'USE_SYMBOLIZE', | 57 'USE_SYMBOLIZE', |
59 ], | 58 ], |
60 'cflags': [ | 59 'cflags': [ |
61 '-Wno-write-strings', | 60 '-Wno-write-strings', |
62 ], | 61 ], |
63 'export_dependent_settings': [ | 62 }, { # desktop_linux == 0 and chromeos == 0 |
64 '../build/linux/system.gyp:glib', | |
65 ], | |
66 }, { # use_glib!=1 | |
67 'sources/': [ | 63 'sources/': [ |
68 ['exclude', '/xdg_user_dirs/'], | 64 ['exclude', '/xdg_user_dirs/'], |
69 ['exclude', '_nss\\.cc$'], | 65 ['exclude', '_nss\\.cc$'], |
70 ], | 66 ], |
71 }], | 67 }], |
68 ['use_glib==1', { | |
69 'dependencies': [ | |
70 '../build/linux/system.gyp:glib', | |
71 ], | |
72 'export_dependent_settings': [ | |
73 '../build/linux/system.gyp:glib', | |
74 ], | |
75 }], | |
72 ['use_x11==1', { | 76 ['use_x11==1', { |
73 'dependencies': [ | 77 'dependencies': [ |
74 '../build/linux/system.gyp:x11', | 78 '../build/linux/system.gyp:x11', |
75 ], | 79 ], |
76 'export_dependent_settings': [ | 80 'export_dependent_settings': [ |
77 '../build/linux/system.gyp:x11', | 81 '../build/linux/system.gyp:x11', |
78 ], | 82 ], |
79 }], | 83 }], |
80 ['use_aura==1 and use_x11==1', { | 84 ['use_aura==1 and use_x11==1', { |
81 'dependencies': [ | 85 'dependencies': [ |
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
680 '../testing/gtest.gyp:gtest', | 684 '../testing/gtest.gyp:gtest', |
681 '../third_party/icu/icu.gyp:icui18n', | 685 '../third_party/icu/icu.gyp:icui18n', |
682 '../third_party/icu/icu.gyp:icuuc', | 686 '../third_party/icu/icu.gyp:icuuc', |
683 ], | 687 ], |
684 'includes': ['../build/nocompile.gypi'], | 688 'includes': ['../build/nocompile.gypi'], |
685 'variables': { | 689 'variables': { |
686 # TODO(ajwong): Is there a way to autodetect this? | 690 # TODO(ajwong): Is there a way to autodetect this? |
687 'module_dir': 'base' | 691 'module_dir': 'base' |
688 }, | 692 }, |
689 'conditions': [ | 693 'conditions': [ |
690 ['use_glib==1', { | 694 ['desktop_linux == 1 or chromeos == 1', { |
691 'defines': [ | 695 'defines': [ |
692 'USE_SYMBOLIZE', | 696 'USE_SYMBOLIZE', |
693 ], | 697 ], |
694 }], | 698 }], |
695 ['OS == "android"', { | 699 ['OS == "android"', { |
696 'dependencies': [ | 700 'dependencies': [ |
697 'android/jni_generator/jni_generator.gyp:jni_generator_tests', | 701 'android/jni_generator/jni_generator.gyp:jni_generator_tests', |
698 ], | 702 ], |
699 'conditions': [ | 703 'conditions': [ |
700 ['gtest_target_type == "shared_library"', { | 704 ['gtest_target_type == "shared_library"', { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
741 'variables': { | 745 'variables': { |
742 'test_data_files': [ | 746 'test_data_files': [ |
743 'test/data', | 747 'test/data', |
744 ], | 748 ], |
745 'test_data_prefix': 'base', | 749 'test_data_prefix': 'base', |
746 }, | 750 }, |
747 'includes': [ '../build/copy_test_data_ios.gypi' ], | 751 'includes': [ '../build/copy_test_data_ios.gypi' ], |
748 }, | 752 }, |
749 ], | 753 ], |
750 }], | 754 }], |
751 ['use_glib==1', { | 755 ['desktop_linux == 1 or chromeos == 1', { |
M-A Ruel
2014/01/26 20:39:55
It's duplicate, please merge lines 694-698 into he
| |
752 'sources!': [ | 756 'sources!': [ |
753 'file_version_info_unittest.cc', | 757 'file_version_info_unittest.cc', |
754 ], | 758 ], |
755 'conditions': [ | 759 'conditions': [ |
756 [ 'toolkit_uses_gtk==1', { | 760 [ 'toolkit_uses_gtk==1', { |
757 'sources': [ | 761 'sources': [ |
758 'nix/xdg_util_unittest.cc', | 762 'nix/xdg_util_unittest.cc', |
759 ], | 763 ], |
760 'dependencies': [ | 764 'dependencies': [ |
761 '../build/linux/system.gyp:gtk', | 765 '../build/linux/system.gyp:gtk', |
762 ] | 766 ] |
763 }], | 767 }], |
764 ], | 768 ], |
765 'dependencies': [ | 769 'dependencies': [ |
766 '../build/linux/system.gyp:glib', | |
767 '../build/linux/system.gyp:ssl', | 770 '../build/linux/system.gyp:ssl', |
771 ], | |
772 }], | |
773 ['use_x11 == 1', { | |
774 'dependencies': [ | |
768 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | 775 '../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', |
769 ], | 776 ], |
770 }, { # use_glib!=1 | 777 }], |
778 ['use_glib == 1', { | |
779 'dependencies': [ | |
780 '../build/linux/system.gyp:glib', | |
781 ], | |
782 }, { # use_glib == 0 | |
771 'sources!': [ | 783 'sources!': [ |
772 'message_loop/message_pump_glib_unittest.cc', | 784 'message_loop/message_pump_glib_unittest.cc', |
773 ] | 785 ] |
774 }], | 786 }], |
775 ['use_ozone == 1', { | 787 ['use_ozone == 1', { |
776 'sources!': [ | 788 'sources!': [ |
777 'message_loop/message_pump_glib_unittest.cc', | 789 'message_loop/message_pump_glib_unittest.cc', |
778 ] | 790 ] |
779 }], | 791 }], |
780 ['OS == "linux" and linux_use_tcmalloc==1', { | 792 ['OS == "linux" and linux_use_tcmalloc==1', { |
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1356 'base_unittests.isolate', | 1368 'base_unittests.isolate', |
1357 ], | 1369 ], |
1358 'sources': [ | 1370 'sources': [ |
1359 'base_unittests.isolate', | 1371 'base_unittests.isolate', |
1360 ], | 1372 ], |
1361 }, | 1373 }, |
1362 ], | 1374 ], |
1363 }], | 1375 }], |
1364 ], | 1376 ], |
1365 } | 1377 } |
OLD | NEW |