OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 # | 2 # |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 { | 6 { |
7 'targets': [ | 7 'targets': [ |
8 { | 8 { |
9 'target_name': 'browser', | 9 'target_name': 'browser', |
10 'type': 'static_library', | 10 'type': 'static_library', |
11 'variables': { 'enable_wexit_time_destructors': 1, }, | 11 'variables': { 'enable_wexit_time_destructors': 1, }, |
12 'dependencies': [ | 12 'dependencies': [ |
13 'autofill_regexes', | 13 # NOTE: New dependencies should generally be added in the OS!="ios" |
14 'browser/component/components.gyp:navigation_interception', | 14 # dependencies block below, rather than here. |
15 'browser/performance_monitor/performance_monitor.gyp:performance_monitor
', | |
16 'browser_extensions', | |
17 'browser_ui', | 15 'browser_ui', |
18 'cert_logger_proto', | 16 'cert_logger_proto', |
19 'chrome_resources.gyp:chrome_extra_resources', | 17 'chrome_resources.gyp:chrome_extra_resources', |
20 'chrome_resources.gyp:chrome_resources', | 18 'chrome_resources.gyp:chrome_resources', |
21 'chrome_resources.gyp:chrome_strings', | 19 'chrome_resources.gyp:chrome_strings', |
22 'chrome_resources.gyp:platform_locale_settings', | 20 'chrome_resources.gyp:platform_locale_settings', |
23 'chrome_resources.gyp:theme_resources', | 21 'chrome_resources.gyp:theme_resources', |
24 'common', | 22 'common', |
25 'common/extensions/api/api.gyp:api', | |
26 'common_net', | 23 'common_net', |
27 'debugger', | |
28 'feedback_proto', | 24 'feedback_proto', |
29 'in_memory_url_index_cache_proto', | 25 'in_memory_url_index_cache_proto', |
30 'installer_util', | |
31 'safe_browsing_proto', | 26 'safe_browsing_proto', |
32 'safe_browsing_report_proto', | 27 'safe_browsing_report_proto', |
33 'sync_file_system_proto', | |
34 'variations_seed_proto', | 28 'variations_seed_proto', |
35 '../build/temp_gyp/googleurl.gyp:googleurl', | 29 '../build/temp_gyp/googleurl.gyp:googleurl', |
36 '../content/content.gyp:content_browser', | 30 '../content/content.gyp:content_browser', |
37 '../content/content.gyp:content_common', | 31 '../content/content.gyp:content_common', |
38 '../crypto/crypto.gyp:crypto', | 32 '../crypto/crypto.gyp:crypto', |
39 '../google_apis/google_apis.gyp:google_apis', | 33 '../google_apis/google_apis.gyp:google_apis', |
40 '../media/media.gyp:media', | 34 '../media/media.gyp:media', |
41 '../net/net.gyp:net_with_v8', | |
42 '../ppapi/ppapi_internal.gyp:ppapi_ipc', # For PpapiMsg_LoadPlugin | |
43 '../printing/printing.gyp:printing', | |
44 '../skia/skia.gyp:skia', | 35 '../skia/skia.gyp:skia', |
45 '../sync/protocol/sync_proto.gyp:sync_proto', | 36 '../sync/protocol/sync_proto.gyp:sync_proto', |
46 # TODO(akalin): Depend only on syncapi_service from sync. | 37 # TODO(akalin): Depend only on syncapi_service from sync. |
47 '../sync/sync.gyp:syncapi_core', | 38 '../sync/sync.gyp:syncapi_core', |
48 '../sync/sync.gyp:syncapi_service', | 39 '../sync/sync.gyp:syncapi_service', |
49 '../sync/sync.gyp:sync_notifier', | 40 '../sync/sync.gyp:sync_notifier', |
50 '../third_party/adobe/flash/flash_player.gyp:flapper_version_h', | |
51 '../third_party/bzip2/bzip2.gyp:bzip2', | 41 '../third_party/bzip2/bzip2.gyp:bzip2', |
52 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n', | 42 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n', |
53 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n_proto_cpp', | 43 '../third_party/cacheinvalidation/cacheinvalidation.gyp:cacheinvalidatio
n_proto_cpp', |
54 '../third_party/cld/cld.gyp:cld', | |
55 '../third_party/expat/expat.gyp:expat', | |
56 '../third_party/hunspell/hunspell.gyp:hunspell', | |
57 '../third_party/icu/icu.gyp:icui18n', | 44 '../third_party/icu/icu.gyp:icui18n', |
58 '../third_party/icu/icu.gyp:icuuc', | 45 '../third_party/icu/icu.gyp:icuuc', |
59 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', | |
60 '../third_party/libjingle/libjingle.gyp:libjingle', | |
61 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber', | |
62 '../third_party/libusb/libusb.gyp:libusb', | 46 '../third_party/libusb/libusb.gyp:libusb', |
63 '../third_party/libxml/libxml.gyp:libxml', | 47 '../third_party/libxml/libxml.gyp:libxml', |
64 '../third_party/npapi/npapi.gyp:npapi', | |
65 '../third_party/re2/re2.gyp:re2', | |
66 '../third_party/zlib/zlib.gyp:minizip', | 48 '../third_party/zlib/zlib.gyp:minizip', |
67 '../third_party/zlib/zlib.gyp:zlib', | 49 '../third_party/zlib/zlib.gyp:zlib', |
68 '../ui/base/strings/ui_strings.gyp:ui_strings', | 50 '../ui/base/strings/ui_strings.gyp:ui_strings', |
69 '../ui/surface/surface.gyp:surface', | |
70 '../ui/ui.gyp:ui', | 51 '../ui/ui.gyp:ui', |
71 '../ui/ui.gyp:ui_resources', | 52 '../ui/ui.gyp:ui_resources', |
72 '../ui/web_dialogs/web_dialogs.gyp:web_dialogs', | |
73 '../v8/tools/gyp/v8.gyp:v8', | |
74 '../webkit/support/webkit_support.gyp:glue', | |
75 '../webkit/support/webkit_support.gyp:user_agent', | 53 '../webkit/support/webkit_support.gyp:user_agent', |
76 '../webkit/support/webkit_support.gyp:webkit_resources', | |
77 '../webkit/support/webkit_support.gyp:webkit_storage', | |
78 ], | 54 ], |
79 'include_dirs': [ | 55 'include_dirs': [ |
80 '..', | 56 '..', |
81 '<(INTERMEDIATE_DIR)', | 57 '<(INTERMEDIATE_DIR)', |
82 # Needed by pepper_flash_component_installer.cc. | 58 # Needed by pepper_flash_component_installer.cc. |
83 '<(SHARED_INTERMEDIATE_DIR)', | 59 '<(SHARED_INTERMEDIATE_DIR)', |
84 ], | 60 ], |
85 'defines': [ | |
86 '<@(nacl_defines)', | |
87 ], | |
88 'direct_dependent_settings': { | |
89 'defines': [ | |
90 '<@(nacl_defines)', | |
91 ], | |
92 }, | |
93 'export_dependent_settings': [ | 61 'export_dependent_settings': [ |
94 '../sync/sync.gyp:sync_notifier', | 62 '../sync/sync.gyp:sync_notifier', |
95 ], | 63 ], |
96 'sources': [ | 64 'sources': [ |
97 # All .cc, .h, .m, and .mm files under browser except for: | 65 # All .cc, .h, .m, and .mm files under browser except for: |
98 # * tests and mocks. | 66 # * tests and mocks. |
99 # * code below browser/chromeos | 67 # * code below browser/chromeos |
100 # * code below browser/extensions | 68 # * code below browser/extensions |
101 'browser/about_flags.cc', | 69 'browser/about_flags.cc', |
102 'browser/about_flags.h', | 70 'browser/about_flags.h', |
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2172 # These files are generated by GRIT. | 2140 # These files are generated by GRIT. |
2173 '<(grit_out_dir)/grit/component_extension_resources_map.cc', | 2141 '<(grit_out_dir)/grit/component_extension_resources_map.cc', |
2174 '<(grit_out_dir)/grit/devtools_discovery_page_resources_map.cc', | 2142 '<(grit_out_dir)/grit/devtools_discovery_page_resources_map.cc', |
2175 '<(grit_out_dir)/grit/shared_resources_map.cc', | 2143 '<(grit_out_dir)/grit/shared_resources_map.cc', |
2176 '<(grit_out_dir)/grit/theme_resources_map.cc', | 2144 '<(grit_out_dir)/grit/theme_resources_map.cc', |
2177 | 2145 |
2178 # This file is generated by the autofill_regexes action. | 2146 # This file is generated by the autofill_regexes action. |
2179 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc', | 2147 '<(SHARED_INTERMEDIATE_DIR)/autofill_regex_constants.cc', |
2180 ], | 2148 ], |
2181 'conditions': [ | 2149 'conditions': [ |
| 2150 ['OS != "ios"', { |
| 2151 'dependencies': [ |
| 2152 'autofill_regexes', |
| 2153 'browser/component/components.gyp:navigation_interception', |
| 2154 'browser/performance_monitor/performance_monitor.gyp:performance_mon
itor', |
| 2155 'browser_extensions', |
| 2156 'common/extensions/api/api.gyp:api', |
| 2157 'debugger', |
| 2158 'installer_util', |
| 2159 'sync_file_system_proto', |
| 2160 '../net/net.gyp:net_with_v8', |
| 2161 '../ppapi/ppapi_internal.gyp:ppapi_ipc', # For PpapiMsg_LoadPlugin |
| 2162 '../printing/printing.gyp:printing', |
| 2163 '../third_party/adobe/flash/flash_player.gyp:flapper_version_h', |
| 2164 '../third_party/cld/cld.gyp:cld', |
| 2165 '../third_party/expat/expat.gyp:expat', |
| 2166 '../third_party/hunspell/hunspell.gyp:hunspell', |
| 2167 '../third_party/leveldatabase/leveldatabase.gyp:leveldatabase', |
| 2168 '../third_party/libjingle/libjingle.gyp:libjingle', |
| 2169 '../third_party/libphonenumber/libphonenumber.gyp:libphonenumber', |
| 2170 '../third_party/npapi/npapi.gyp:npapi', |
| 2171 '../third_party/re2/re2.gyp:re2', |
| 2172 '../ui/surface/surface.gyp:surface', |
| 2173 '../ui/web_dialogs/web_dialogs.gyp:web_dialogs', |
| 2174 '../v8/tools/gyp/v8.gyp:v8', |
| 2175 '../webkit/support/webkit_support.gyp:glue', |
| 2176 '../webkit/support/webkit_support.gyp:webkit_resources', |
| 2177 '../webkit/support/webkit_support.gyp:webkit_storage', |
| 2178 ], |
| 2179 'defines': [ |
| 2180 '<@(nacl_defines)', |
| 2181 ], |
| 2182 'direct_dependent_settings': { |
| 2183 'defines': [ |
| 2184 '<@(nacl_defines)', |
| 2185 ], |
| 2186 }, |
| 2187 }, { # OS == "ios" |
| 2188 'dependencies': [ |
| 2189 '../net/net.gyp:net', |
| 2190 ], |
| 2191 'sources/': [ |
| 2192 # Exclude everything but iOS-specific files. |
| 2193 ['exclude', '\\.(cc|mm)$'], |
| 2194 ['include', '_ios\\.(cc|mm)$'], |
| 2195 ['include', '(^|/)ios/'], |
| 2196 # TODO(ios): Add files here as they are updated to compile on iOS. |
| 2197 ], |
| 2198 'link_settings': { |
| 2199 'libraries': [ |
| 2200 '$(SDKROOT)/System/Library/Frameworks/CoreTelephony.framework', |
| 2201 '$(SDKROOT)/System/Library/Frameworks/CoreText.framework', |
| 2202 '$(SDKROOT)/System/Library/Frameworks/MobileCoreServices.framework
', |
| 2203 '$(SDKROOT)/System/Library/Frameworks/QuartzCore.framework', |
| 2204 ], |
| 2205 # CoreImage is iOS 5+, but iOS 4.3 is still supported. |
| 2206 'xcode_settings': {'OTHER_LDFLAGS': ['-weak_framework CoreImage']}, |
| 2207 }, |
| 2208 }], |
2182 ['enable_one_click_signin==0', { | 2209 ['enable_one_click_signin==0', { |
2183 'sources!': [ | 2210 'sources!': [ |
2184 'browser/api/infobars/one_click_signin_infobar_delegate.cc', | 2211 'browser/api/infobars/one_click_signin_infobar_delegate.cc', |
2185 'browser/api/infobars/one_click_signin_infobar_delegate.h', | 2212 'browser/api/infobars/one_click_signin_infobar_delegate.h', |
2186 ], | 2213 ], |
2187 }], | 2214 }], |
2188 ['enable_extensions==1', { | 2215 ['enable_extensions==1', { |
2189 'sources': [ | 2216 'sources': [ |
2190 # Only extension API implementations should go here. | 2217 # Only extension API implementations should go here. |
2191 'browser/accessibility/accessibility_extension_api.cc', | 2218 'browser/accessibility/accessibility_extension_api.cc', |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2430 '../ui/metro_viewer/metro_viewer.gyp:metro_viewer', | 2457 '../ui/metro_viewer/metro_viewer.gyp:metro_viewer', |
2431 ], | 2458 ], |
2432 }], | 2459 }], |
2433 ], | 2460 ], |
2434 }], | 2461 }], |
2435 ['ui_compositor_image_transport==1', { | 2462 ['ui_compositor_image_transport==1', { |
2436 'dependencies': [ | 2463 'dependencies': [ |
2437 '../ui/gl/gl.gyp:gl', | 2464 '../ui/gl/gl.gyp:gl', |
2438 ], | 2465 ], |
2439 }], | 2466 }], |
2440 ['os_posix == 1 and OS != "mac" and OS != "android"', { | 2467 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"', { |
2441 'link_settings': { | 2468 'link_settings': { |
2442 'libraries': [ | 2469 'libraries': [ |
2443 '-lXss', | 2470 '-lXss', |
2444 ], | 2471 ], |
2445 }, | 2472 }, |
2446 }], | 2473 }], |
2447 ['os_posix == 1 and OS != "mac"', { | 2474 ['os_posix == 1 and OS != "mac" and OS != "ios"', { |
2448 'sources': [ 'browser/crash_handler_host_linux.h', ], | 2475 'sources': [ 'browser/crash_handler_host_linux.h', ], |
2449 'conditions': [ | 2476 'conditions': [ |
2450 ['linux_breakpad==1', { | 2477 ['linux_breakpad==1', { |
2451 'sources': [ | 2478 'sources': [ |
2452 'app/breakpad_linux.cc', | 2479 'app/breakpad_linux.cc', |
2453 'app/breakpad_linux.h', | 2480 'app/breakpad_linux.h', |
2454 'browser/crash_handler_host_linux.cc', | 2481 'browser/crash_handler_host_linux.cc', |
2455 ], | 2482 ], |
2456 'dependencies': [ | 2483 'dependencies': [ |
2457 '../breakpad/breakpad.gyp:breakpad_client', | 2484 '../breakpad/breakpad.gyp:breakpad_client', |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2750 }], | 2777 }], |
2751 # GTK build only | 2778 # GTK build only |
2752 ['toolkit_uses_gtk==1', { | 2779 ['toolkit_uses_gtk==1', { |
2753 'sources/': [ | 2780 'sources/': [ |
2754 ['exclude', '^browser/bookmarks/bookmark_drop_info.cc'], | 2781 ['exclude', '^browser/bookmarks/bookmark_drop_info.cc'], |
2755 ['exclude', '^browser/lifetime/application_lifetime_stub.cc'], | 2782 ['exclude', '^browser/lifetime/application_lifetime_stub.cc'], |
2756 ['include', '^browser/printing/print_dialog_gtk.cc'], | 2783 ['include', '^browser/printing/print_dialog_gtk.cc'], |
2757 ['include', '^browser/printing/print_dialog_gtk.h'], | 2784 ['include', '^browser/printing/print_dialog_gtk.h'], |
2758 ], | 2785 ], |
2759 }], | 2786 }], |
2760 ['os_posix == 1 and OS != "mac" and OS != "android" and gcc_version
== 45', { | 2787 ['os_posix == 1 and OS != "mac" and OS != "ios" and OS != "android"
and gcc_version == 45', { |
2761 # Avoid gcc 4.5 miscompilation of template_url.cc | 2788 # Avoid gcc 4.5 miscompilation of template_url.cc |
2762 # as per http://crbug.com/41887 | 2789 # as per http://crbug.com/41887 |
2763 'cflags': [ | 2790 'cflags': [ |
2764 '-fno-ipa-cp', | 2791 '-fno-ipa-cp', |
2765 ], | 2792 ], |
2766 }], | 2793 }], |
2767 ], | 2794 ], |
2768 }], | 2795 }], |
2769 ['enable_plugin_installation==0', { | 2796 ['enable_plugin_installation==0', { |
2770 'sources!': [ | 2797 'sources!': [ |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2974 'proto_in_dir': '../third_party/cros_system_api/dbus', | 3001 'proto_in_dir': '../third_party/cros_system_api/dbus', |
2975 'proto_out_dir': 'chrome/browser/media_transfer_protocol', | 3002 'proto_out_dir': 'chrome/browser/media_transfer_protocol', |
2976 }, | 3003 }, |
2977 'includes': ['../build/protoc.gypi'], | 3004 'includes': ['../build/protoc.gypi'], |
2978 }, | 3005 }, |
2979 ], | 3006 ], |
2980 }, | 3007 }, |
2981 ], | 3008 ], |
2982 ], | 3009 ], |
2983 } | 3010 } |
OLD | NEW |