OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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 # Define the common dependencies that contain all the actual | 9 # Define the common dependencies that contain all the actual |
10 # Chromium functionality. This list gets pulled in below by | 10 # Chromium functionality. This list gets pulled in below by |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 '../views/view_unittest.cc', | 101 '../views/view_unittest.cc', |
102 '../views/focus/focus_manager_unittest.cc', | 102 '../views/focus/focus_manager_unittest.cc', |
103 '../views/controls/label_unittest.cc', | 103 '../views/controls/label_unittest.cc', |
104 ], | 104 ], |
105 'views_unit_tests_sources_win_specific': [ | 105 'views_unit_tests_sources_win_specific': [ |
106 # TODO(jcampan): make the following tests work on Linux. | 106 # TODO(jcampan): make the following tests work on Linux. |
107 '../views/controls/table/table_view_unittest.cc', | 107 '../views/controls/table/table_view_unittest.cc', |
108 '../views/grid_layout_unittest.cc', | 108 '../views/grid_layout_unittest.cc', |
109 ], | 109 ], |
110 'conditions': [ | 110 'conditions': [ |
| 111 ['OS=="win"', { |
| 112 'nacl_defines': [ |
| 113 'NACL_WINDOWS=1', |
| 114 'NACL_LINUX=0', |
| 115 'NACL_OSX=0', |
| 116 ], |
| 117 },], |
| 118 ['OS=="linux"', { |
| 119 'nacl_defines': [ |
| 120 'NACL_WINDOWS=0', |
| 121 'NACL_LINUX=1', |
| 122 'NACL_OSX=0', |
| 123 ], |
| 124 },], |
111 ['OS=="mac"', { | 125 ['OS=="mac"', { |
| 126 'nacl_defines': [ |
| 127 'NACL_WINDOWS=0', |
| 128 'NACL_LINUX=0', |
| 129 'NACL_OSX=1', |
| 130 ], |
112 'conditions': [ | 131 'conditions': [ |
113 ['branding=="Chrome"', { | 132 ['branding=="Chrome"', { |
114 'mac_bundle_id': 'com.google.Chrome', | 133 'mac_bundle_id': 'com.google.Chrome', |
115 'mac_creator': 'rimZ', | 134 'mac_creator': 'rimZ', |
116 }, { # else: branding!="Chrome" | 135 }, { # else: branding!="Chrome" |
117 'mac_bundle_id': 'org.chromium.Chromium', | 136 'mac_bundle_id': 'org.chromium.Chromium', |
118 'mac_creator': 'Cr24', | 137 'mac_creator': 'Cr24', |
119 }], # branding | 138 }], # branding |
120 ], # conditions | 139 ], # conditions |
121 }], # OS=="mac" | 140 }], # OS=="mac" |
122 ['OS=="win"', { | 141 ['OS=="win"', { |
123 # Whether or not browser sync code is built in. | 142 # Whether or not browser sync code is built in. |
124 'chrome_personalization%': 1, | 143 'chrome_personalization%': 1, |
125 # Used to build a stub (no-op) syncapi engine. | 144 # Used to build a stub (no-op) syncapi engine. |
126 'use_syncapi_stub%': 0, | 145 'use_syncapi_stub%': 0, |
127 }, { | 146 }, { |
128 'chrome_personalization%': 0, | 147 'chrome_personalization%': 0, |
129 'use_syncapi_stub%': 1, | 148 'use_syncapi_stub%': 1, |
130 }], # OS=="win" | 149 }], # OS=="win" |
| 150 ['target_arch=="ia32"', { |
| 151 'nacl_defines': [ |
| 152 # TODO(gregoryd): consider getting this from NaCl's common.gypi |
| 153 'NACL_TARGET_SUBARCH=32', |
| 154 'NACL_BUILD_SUBARCH=32', |
| 155 ], |
| 156 }], |
| 157 ['target_arch=="x64"', { |
| 158 'nacl_defines': [ |
| 159 # TODO(gregoryd): consider getting this from NaCl's common.gypi |
| 160 'NACL_TARGET_SUBARCH=64', |
| 161 'NACL_BUILD_SUBARCH=64', |
| 162 ], |
| 163 }], |
131 ], # conditions | 164 ], # conditions |
132 }, # variables | 165 }, # variables |
133 'target_defaults': { | 166 'target_defaults': { |
134 'sources/': [ | 167 'sources/': [ |
135 ['exclude', '/(cocoa|gtk|win)/'], | 168 ['exclude', '/(cocoa|gtk|win)/'], |
136 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|views|x)(_unittest)?\\.(
cc|mm?)$'], | 169 ['exclude', '_(cocoa|gtk|linux|mac|posix|skia|win|views|x)(_unittest)?\\.(
cc|mm?)$'], |
137 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], | 170 ['exclude', '/(gtk|win|x11)_[^/]*\\.cc$'], |
138 ], | 171 ], |
139 'conditions': [ | 172 'conditions': [ |
140 ['OS=="linux" or OS=="freebsd"', {'sources/': [ | 173 ['OS=="linux" or OS=="freebsd"', {'sources/': [ |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 'common/render_messages.h', | 622 'common/render_messages.h', |
590 'common/render_messages_internal.h', | 623 'common/render_messages_internal.h', |
591 'common/renderer_preferences.h', | 624 'common/renderer_preferences.h', |
592 'common/resource_dispatcher.cc', | 625 'common/resource_dispatcher.cc', |
593 'common/resource_dispatcher.h', | 626 'common/resource_dispatcher.h', |
594 'common/result_codes.h', | 627 'common/result_codes.h', |
595 'common/sandbox_init_wrapper.cc', | 628 'common/sandbox_init_wrapper.cc', |
596 'common/sandbox_init_wrapper.h', | 629 'common/sandbox_init_wrapper.h', |
597 'common/security_filter_peer.cc', | 630 'common/security_filter_peer.cc', |
598 'common/security_filter_peer.h', | 631 'common/security_filter_peer.h', |
| 632 'common/nacl_messages.h', |
| 633 'common/nacl_messages_internal.h', |
599 'common/sqlite_compiled_statement.cc', | 634 'common/sqlite_compiled_statement.cc', |
600 'common/sqlite_compiled_statement.h', | 635 'common/sqlite_compiled_statement.h', |
601 'common/sqlite_utils.cc', | 636 'common/sqlite_utils.cc', |
602 'common/sqlite_utils.h', | 637 'common/sqlite_utils.h', |
603 'common/task_queue.cc', | 638 'common/task_queue.cc', |
604 'common/task_queue.h', | 639 'common/task_queue.h', |
605 'common/temp_scaffolding_stubs.cc', | 640 'common/temp_scaffolding_stubs.cc', |
606 'common/temp_scaffolding_stubs.h', | 641 'common/temp_scaffolding_stubs.h', |
607 'common/thumbnail_score.cc', | 642 'common/thumbnail_score.cc', |
608 'common/thumbnail_score.h', | 643 'common/thumbnail_score.h', |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 '../third_party/libxml/libxml.gyp:libxml', | 738 '../third_party/libxml/libxml.gyp:libxml', |
704 '../third_party/npapi/npapi.gyp:npapi', | 739 '../third_party/npapi/npapi.gyp:npapi', |
705 '../third_party/hunspell/hunspell.gyp:hunspell', | 740 '../third_party/hunspell/hunspell.gyp:hunspell', |
706 '../webkit/webkit.gyp:database', | 741 '../webkit/webkit.gyp:database', |
707 '../webkit/webkit.gyp:glue', | 742 '../webkit/webkit.gyp:glue', |
708 ], | 743 ], |
709 'include_dirs': [ | 744 'include_dirs': [ |
710 '..', | 745 '..', |
711 '<(INTERMEDIATE_DIR)', | 746 '<(INTERMEDIATE_DIR)', |
712 ], | 747 ], |
| 748 'defines': [ |
| 749 '<@(nacl_defines)', |
| 750 ], |
713 'sources': [ | 751 'sources': [ |
714 # All .cc, .h, .m, and .mm files under browser except for tests and | 752 # All .cc, .h, .m, and .mm files under browser except for tests and |
715 # mocks. | 753 # mocks. |
716 'browser/alternate_nav_url_fetcher.cc', | 754 'browser/alternate_nav_url_fetcher.cc', |
717 'browser/alternate_nav_url_fetcher.h', | 755 'browser/alternate_nav_url_fetcher.h', |
718 'browser/app_controller_mac.h', | 756 'browser/app_controller_mac.h', |
719 'browser/app_controller_mac.mm', | 757 'browser/app_controller_mac.mm', |
720 'browser/app_modal_dialog.cc', | 758 'browser/app_modal_dialog.cc', |
721 'browser/app_modal_dialog.h', | 759 'browser/app_modal_dialog.h', |
722 'browser/app_modal_dialog_gtk.cc', | 760 'browser/app_modal_dialog_gtk.cc', |
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1831 'browser/search_engines/template_url_fetcher.cc', | 1869 'browser/search_engines/template_url_fetcher.cc', |
1832 'browser/search_engines/template_url_fetcher.h', | 1870 'browser/search_engines/template_url_fetcher.h', |
1833 'browser/search_engines/template_url_model.cc', | 1871 'browser/search_engines/template_url_model.cc', |
1834 'browser/search_engines/template_url_model.h', | 1872 'browser/search_engines/template_url_model.h', |
1835 'browser/search_engines/template_url_parser.cc', | 1873 'browser/search_engines/template_url_parser.cc', |
1836 'browser/search_engines/template_url_parser.h', | 1874 'browser/search_engines/template_url_parser.h', |
1837 'browser/search_engines/template_url_prepopulate_data.cc', | 1875 'browser/search_engines/template_url_prepopulate_data.cc', |
1838 'browser/search_engines/template_url_prepopulate_data.h', | 1876 'browser/search_engines/template_url_prepopulate_data.h', |
1839 'browser/search_engines/template_url_table_model.cc', | 1877 'browser/search_engines/template_url_table_model.cc', |
1840 'browser/search_engines/template_url_table_model.h', | 1878 'browser/search_engines/template_url_table_model.h', |
| 1879 'browser/nacl_process_host.cc', |
| 1880 'browser/nacl_process_host.h', |
1841 'browser/session_startup_pref.cc', | 1881 'browser/session_startup_pref.cc', |
1842 'browser/session_startup_pref.h', | 1882 'browser/session_startup_pref.h', |
1843 'browser/sessions/base_session_service.cc', | 1883 'browser/sessions/base_session_service.cc', |
1844 'browser/sessions/base_session_service.h', | 1884 'browser/sessions/base_session_service.h', |
1845 'browser/sessions/session_backend.cc', | 1885 'browser/sessions/session_backend.cc', |
1846 'browser/sessions/session_backend.h', | 1886 'browser/sessions/session_backend.h', |
1847 'browser/sessions/session_command.cc', | 1887 'browser/sessions/session_command.cc', |
1848 'browser/sessions/session_command.h', | 1888 'browser/sessions/session_command.h', |
1849 'browser/sessions/session_id.cc', | 1889 'browser/sessions/session_id.cc', |
1850 'browser/sessions/session_id.h', | 1890 'browser/sessions/session_id.h', |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2873 '_CRT_SECURE_NO_DEPRECATE', | 2913 '_CRT_SECURE_NO_DEPRECATE', |
2874 '_SCL_SECURE_NO_DEPRECATE', | 2914 '_SCL_SECURE_NO_DEPRECATE', |
2875 ], | 2915 ], |
2876 'include_dirs': [ | 2916 'include_dirs': [ |
2877 'third_party/wtl/include', | 2917 'third_party/wtl/include', |
2878 ], | 2918 ], |
2879 },], | 2919 },], |
2880 ], | 2920 ], |
2881 }, | 2921 }, |
2882 { | 2922 { |
| 2923 'target_name': 'nacl', |
| 2924 'type': '<(library)', |
| 2925 'msvs_guid': '83E86DAF-5763-4711-AD34-5FDAE395560C', |
| 2926 'dependencies': [ |
| 2927 'common', |
| 2928 'chrome_resources', |
| 2929 'chrome_strings', |
| 2930 '../third_party/npapi/npapi.gyp:npapi', |
| 2931 '../webkit/webkit.gyp:glue', |
| 2932 '../native_client/src/trusted/plugin/plugin_chrome.gyp:npGoogleNaClPlugi
nChrome', |
| 2933 '../native_client/src/trusted/service_runtime/service_runtime.gyp:sel', |
| 2934 '../native_client/src/trusted/validator_x86/validator_x86.gyp:ncvalidate
', |
| 2935 '../native_client/src/trusted/platform_qualify/platform_qualify.gyp:plat
form_qual_lib', |
| 2936 ], |
| 2937 'include_dirs': [ |
| 2938 '<(INTERMEDIATE_DIR)', |
| 2939 ], |
| 2940 'defines': [ |
| 2941 'NACL_BLOCK_SHIFT=5', |
| 2942 'NACL_BLOCK_SIZE=32', |
| 2943 '<@(nacl_defines)', |
| 2944 ], |
| 2945 'sources': [ |
| 2946 # All .cc, .h, .m, and .mm files under nacl except for tests and |
| 2947 # mocks. |
| 2948 'nacl/sel_main.cc', |
| 2949 'nacl/nacl_main.cc', |
| 2950 'nacl/nacl_thread.cc', |
| 2951 'nacl/nacl_thread.h', |
| 2952 ], |
| 2953 # TODO(gregoryd): consider switching NaCl to use Chrome OS defines |
| 2954 'conditions': [ |
| 2955 ['OS=="win"', { |
| 2956 'defines': [ |
| 2957 '__STD_C', |
| 2958 '_CRT_SECURE_NO_DEPRECATE', |
| 2959 '_SCL_SECURE_NO_DEPRECATE', |
| 2960 ], |
| 2961 'include_dirs': [ |
| 2962 'third_party/wtl/include', |
| 2963 ], |
| 2964 },], |
| 2965 ], |
| 2966 }, |
| 2967 { |
2883 'target_name': 'renderer', | 2968 'target_name': 'renderer', |
2884 'type': '<(library)', | 2969 'type': '<(library)', |
2885 'msvs_guid': '9301A569-5D2B-4D11-9332-B1E30AEACB8D', | 2970 'msvs_guid': '9301A569-5D2B-4D11-9332-B1E30AEACB8D', |
2886 'dependencies': [ | 2971 'dependencies': [ |
2887 'common', | 2972 'common', |
| 2973 'nacl', |
2888 'plugin', | 2974 'plugin', |
2889 'chrome_resources', | 2975 'chrome_resources', |
2890 'chrome_strings', | 2976 'chrome_strings', |
2891 '../printing/printing.gyp:printing', | 2977 '../printing/printing.gyp:printing', |
2892 '../skia/skia.gyp:skia', | 2978 '../skia/skia.gyp:skia', |
2893 '../third_party/icu/icu.gyp:icui18n', | 2979 '../third_party/icu/icu.gyp:icui18n', |
2894 '../third_party/icu/icu.gyp:icuuc', | 2980 '../third_party/icu/icu.gyp:icuuc', |
2895 '../third_party/npapi/npapi.gyp:npapi', | 2981 '../third_party/npapi/npapi.gyp:npapi', |
2896 '../webkit/webkit.gyp:glue', | 2982 '../webkit/webkit.gyp:glue', |
2897 '../webkit/webkit.gyp:webkit', | 2983 '../webkit/webkit.gyp:webkit', |
2898 ], | 2984 ], |
2899 'include_dirs': [ | 2985 'include_dirs': [ |
2900 '..', | 2986 '..', |
2901 ], | 2987 ], |
| 2988 'defines': [ |
| 2989 '<@(nacl_defines)', |
| 2990 ], |
2902 'sources': [ | 2991 'sources': [ |
2903 # TODO(jrg): to link ipc_tests, these files need to be in renderer.a. | 2992 # TODO(jrg): to link ipc_tests, these files need to be in renderer.a. |
2904 # But app/ is the wrong directory for them. | 2993 # But app/ is the wrong directory for them. |
2905 # Better is to remove the dep of *_tests on renderer, but in the | 2994 # Better is to remove the dep of *_tests on renderer, but in the |
2906 # short term I'd like the build to work. | 2995 # short term I'd like the build to work. |
2907 'renderer/automation/dom_automation_controller.cc', | 2996 'renderer/automation/dom_automation_controller.cc', |
2908 'renderer/automation/dom_automation_controller.h', | 2997 'renderer/automation/dom_automation_controller.h', |
2909 'renderer/extensions/bindings_utils.cc', | 2998 'renderer/extensions/bindings_utils.cc', |
2910 'renderer/extensions/bindings_utils.h', | 2999 'renderer/extensions/bindings_utils.h', |
2911 'renderer/extensions/event_bindings.cc', | 3000 'renderer/extensions/event_bindings.cc', |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3370 'CHROMIUM_SHORT_NAME': '<(branding)', | 3459 'CHROMIUM_SHORT_NAME': '<(branding)', |
3371 }, | 3460 }, |
3372 'mac_bundle_resources': [ | 3461 'mac_bundle_resources': [ |
3373 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', | 3462 '<(PRODUCT_DIR)/<(mac_product_name) Helper.app', |
3374 ], | 3463 ], |
3375 'dependencies': [ | 3464 'dependencies': [ |
3376 'helper_app', | 3465 'helper_app', |
3377 'infoplist_strings_tool', | 3466 'infoplist_strings_tool', |
3378 # Bring in pdfsqueeze and run it on all pdfs | 3467 # Bring in pdfsqueeze and run it on all pdfs |
3379 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', | 3468 '../build/temp_gyp/pdfsqueeze.gyp:pdfsqueeze', |
| 3469 # This library provides the real implementation for NaClSyscallSeg |
| 3470 '../native_client/src/trusted/service_runtime/arch/x86_32/service_ru
ntime_x86_32.gyp:service_runtime_x86_32_chrome' |
3380 ], | 3471 ], |
3381 'rules': [ | 3472 'rules': [ |
3382 { | 3473 { |
3383 'rule_name': 'pdfsqueeze', | 3474 'rule_name': 'pdfsqueeze', |
3384 'extension': 'pdf', | 3475 'extension': 'pdf', |
3385 'inputs': [ | 3476 'inputs': [ |
3386 '<(PRODUCT_DIR)/pdfsqueeze', | 3477 '<(PRODUCT_DIR)/pdfsqueeze', |
3387 ], | 3478 ], |
3388 'outputs': [ | 3479 'outputs': [ |
3389 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', | 3480 '<(INTERMEDIATE_DIR)/pdfsqueeze/<(RULE_INPUT_ROOT).pdf', |
(...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6685 'defines': [ | 6776 'defines': [ |
6686 'POSIX', | 6777 'POSIX', |
6687 ], | 6778 ], |
6688 }], | 6779 }], |
6689 ], | 6780 ], |
6690 }, | 6781 }, |
6691 ], # targets when chrome_personalization==1 and use_syncapi_stub==0 | 6782 ], # targets when chrome_personalization==1 and use_syncapi_stub==0 |
6692 }], | 6783 }], |
6693 ], # 'conditions' | 6784 ], # 'conditions' |
6694 } | 6785 } |
OLD | NEW |