[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 1 | # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | { |
| 6 | 'targets': [ |
| 7 | { |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 8 | 'target_name': 'content_shell_lib', |
| 9 | 'type': 'static_library', |
[email protected] | 03ff5e5 | 2011-09-30 00:28:14 | [diff] [blame] | 10 | 'defines!': ['CONTENT_IMPLEMENTATION'], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 11 | 'variables': { |
| 12 | 'chromium_code': 1, |
| 13 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 14 | 'dependencies': [ |
| 15 | 'content_app', |
| 16 | 'content_browser', |
| 17 | 'content_common', |
| 18 | 'content_gpu', |
| 19 | 'content_plugin', |
| 20 | 'content_ppapi_plugin', |
| 21 | 'content_renderer', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame^] | 22 | 'content_shell_resources', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 23 | 'content_utility', |
| 24 | 'content_worker', |
[email protected] | 0faa0a2b | 2011-11-15 18:03:14 | [diff] [blame] | 25 | 'content_resources.gyp:content_resources', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 26 | '../base/base.gyp:base', |
| 27 | '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations', |
| 28 | '../build/temp_gyp/googleurl.gyp:googleurl', |
| 29 | '../ipc/ipc.gyp:ipc', |
| 30 | '../net/net.gyp:net', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 31 | '../skia/skia.gyp:skia', |
[email protected] | 97efb8e | 2011-10-04 17:16:16 | [diff] [blame] | 32 | '../third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:webkit', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 33 | '../ui/ui.gyp:ui', |
[email protected] | 12bc28fcb | 2011-09-21 15:53:50 | [diff] [blame] | 34 | '../v8/tools/gyp/v8.gyp:v8', |
[email protected] | aa6e7976 | 2011-09-29 20:53:52 | [diff] [blame] | 35 | '../webkit/support/webkit_support.gyp:appcache', |
| 36 | '../webkit/support/webkit_support.gyp:database', |
| 37 | '../webkit/support/webkit_support.gyp:fileapi', |
| 38 | '../webkit/support/webkit_support.gyp:glue', |
| 39 | '../webkit/support/webkit_support.gyp:quota', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 40 | ], |
| 41 | 'include_dirs': [ |
| 42 | '..', |
| 43 | ], |
| 44 | 'sources': [ |
[email protected] | b0f146f | 2011-09-15 22:14:25 | [diff] [blame] | 45 | 'browser/tab_contents/tab_contents_view_win.cc', |
| 46 | 'browser/tab_contents/tab_contents_view_win.h', |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 47 | 'shell/shell.cc', |
| 48 | 'shell/shell.h', |
| 49 | 'shell/shell_gtk.cc', |
| 50 | 'shell/shell_mac.mm', |
| 51 | 'shell/shell_win.cc', |
[email protected] | b0f146f | 2011-09-15 22:14:25 | [diff] [blame] | 52 | 'shell/shell_browser_context.cc', |
| 53 | 'shell/shell_browser_context.h', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 54 | 'shell/shell_browser_main.cc', |
| 55 | 'shell/shell_browser_main.h', |
| 56 | 'shell/shell_content_browser_client.cc', |
| 57 | 'shell/shell_content_browser_client.h', |
| 58 | 'shell/shell_content_client.cc', |
| 59 | 'shell/shell_content_client.h', |
| 60 | 'shell/shell_content_plugin_client.cc', |
| 61 | 'shell/shell_content_plugin_client.h', |
| 62 | 'shell/shell_content_renderer_client.cc', |
| 63 | 'shell/shell_content_renderer_client.h', |
| 64 | 'shell/shell_content_utility_client.cc', |
| 65 | 'shell/shell_content_utility_client.h', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame^] | 66 | 'shell/shell_devtools_delegate.cc', |
| 67 | 'shell/shell_devtools_delegate.h', |
[email protected] | 98d6f15 | 2011-09-29 19:35:51 | [diff] [blame] | 68 | 'shell/shell_download_manager_delegate.cc', |
| 69 | 'shell/shell_download_manager_delegate.h', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 70 | 'shell/shell_main_delegate.cc', |
| 71 | 'shell/shell_main_delegate.h', |
[email protected] | 31d71b0 | 2012-01-26 03:42:31 | [diff] [blame] | 72 | 'shell/shell_render_view_observer.cc', |
| 73 | 'shell/shell_render_view_observer.h', |
[email protected] | c5f1e33 | 2011-09-27 01:08:03 | [diff] [blame] | 74 | 'shell/shell_resource_context.cc', |
| 75 | 'shell/shell_resource_context.h', |
| 76 | 'shell/shell_url_request_context_getter.cc', |
| 77 | 'shell/shell_url_request_context_getter.h', |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 78 | ], |
| 79 | 'msvs_settings': { |
| 80 | 'VCLinkerTool': { |
| 81 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 82 | }, |
| 83 | }, |
| 84 | 'conditions': [ |
| 85 | ['OS=="win" and win_use_allocator_shim==1', { |
| 86 | 'dependencies': [ |
| 87 | '../base/allocator/allocator.gyp:allocator', |
| 88 | ], |
| 89 | }], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 90 | ['OS=="win"', { |
| 91 | 'resource_include_dirs': [ |
| 92 | '<(SHARED_INTERMEDIATE_DIR)/webkit', |
| 93 | ], |
[email protected] | 9fbd3f86 | 2011-09-20 23:31:34 | [diff] [blame] | 94 | 'dependencies': [ |
| 95 | '<(DEPTH)/net/net.gyp:net_resources', |
| 96 | '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources', |
| 97 | '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_strings', |
| 98 | ], |
| 99 | 'configurations': { |
| 100 | 'Debug_Base': { |
| 101 | 'msvs_settings': { |
| 102 | 'VCLinkerTool': { |
| 103 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 104 | }, |
| 105 | }, |
| 106 | }, |
| 107 | }, |
| 108 | }], |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 109 | ], |
| 110 | }, |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 111 | { |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame^] | 112 | 'target_name': 'content_shell_resources', |
| 113 | 'type': 'none', |
| 114 | 'variables': { |
| 115 | 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/content', |
| 116 | }, |
| 117 | 'actions': [ |
| 118 | { |
| 119 | 'action_name': 'content_shell_resources', |
| 120 | 'variables': { |
| 121 | 'grit_grd_file': 'shell/shell_resources.grd', |
| 122 | }, |
| 123 | 'includes': [ '../build/grit_action.gypi' ], |
| 124 | }, |
| 125 | ], |
| 126 | 'includes': [ '../build/grit_target.gypi' ], |
| 127 | 'copies': [ |
| 128 | { |
| 129 | 'destination': '<(PRODUCT_DIR)', |
| 130 | 'files': [ |
| 131 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak' |
| 132 | ], |
| 133 | }, |
| 134 | ], |
| 135 | }, |
| 136 | { |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 137 | # We build a minimal set of resources so WebKit in content_shell has |
| 138 | # access to necessary resources. |
| 139 | 'target_name': 'content_shell_pak', |
| 140 | 'type': 'none', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame^] | 141 | 'dependencies': [ |
| 142 | 'browser/debugger/devtools_resources.gyp:devtools_resources', |
| 143 | 'content_shell_resources', |
| 144 | ], |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 145 | 'variables': { |
| 146 | 'repack_path': '<(DEPTH)/tools/grit/grit/format/repack.py', |
| 147 | }, |
| 148 | 'actions': [ |
| 149 | { |
| 150 | 'action_name': 'repack_content_shell_pack', |
| 151 | 'variables': { |
| 152 | 'pak_inputs': [ |
| 153 | '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame^] | 154 | '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 155 | '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak', |
| 156 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.pak', |
| 157 | '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources_standard/ui_resources_standard.pak', |
[email protected] | ee75b899 | 2012-01-27 07:53:57 | [diff] [blame^] | 158 | '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 159 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.pak', |
| 160 | '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_resources.pak', |
| 161 | ], |
| 162 | 'conditions': [ |
| 163 | ['OS != "mac"', { |
| 164 | 'pak_inputs': [ |
| 165 | '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.pak', |
| 166 | ] |
| 167 | }], |
| 168 | ], |
| 169 | }, |
| 170 | 'inputs': [ |
| 171 | '<(repack_path)', |
| 172 | '<@(pak_inputs)', |
| 173 | ], |
| 174 | 'outputs': [ |
| 175 | '<(PRODUCT_DIR)/content_shell.pak', |
| 176 | ], |
| 177 | 'action': ['python', '<(repack_path)', '<@(_outputs)', |
| 178 | '<@(pak_inputs)'], |
| 179 | }, |
| 180 | ], |
| 181 | }, |
| 182 | { |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 183 | 'target_name': 'content_shell', |
| 184 | 'type': 'executable', |
| 185 | 'defines!': ['CONTENT_IMPLEMENTATION'], |
| 186 | 'variables': { |
| 187 | 'chromium_code': 1, |
| 188 | }, |
| 189 | 'dependencies': [ |
| 190 | 'content_shell_lib', |
[email protected] | 81f30ce | 2012-01-18 22:10:33 | [diff] [blame] | 191 | 'content_shell_pak', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 192 | ], |
| 193 | 'include_dirs': [ |
| 194 | '..', |
| 195 | ], |
| 196 | 'sources': [ |
[email protected] | 27315ce4 | 2011-10-14 01:25:12 | [diff] [blame] | 197 | 'app/startup_helper_win.cc', |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 198 | 'shell/shell_main.cc', |
| 199 | ], |
| 200 | 'msvs_settings': { |
| 201 | 'VCLinkerTool': { |
| 202 | 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
| 203 | }, |
| 204 | }, |
| 205 | 'conditions': [ |
| 206 | ['OS=="win" and win_use_allocator_shim==1', { |
| 207 | 'dependencies': [ |
| 208 | '../base/allocator/allocator.gyp:allocator', |
| 209 | ], |
| 210 | }], |
| 211 | ['OS=="win"', { |
| 212 | 'configurations': { |
| 213 | 'Debug_Base': { |
| 214 | 'msvs_settings': { |
| 215 | 'VCLinkerTool': { |
| 216 | 'LinkIncremental': '<(msvs_large_module_debug_link_mode)', |
| 217 | }, |
| 218 | }, |
| 219 | }, |
| 220 | }, |
| 221 | }], |
[email protected] | 27315ce4 | 2011-10-14 01:25:12 | [diff] [blame] | 222 | ['OS == "win" or (toolkit_uses_gtk == 1 and selinux == 0)', { |
| 223 | 'dependencies': [ |
| 224 | '../sandbox/sandbox.gyp:sandbox', |
| 225 | ], |
| 226 | }], |
[email protected] | 39899089 | 2012-01-20 03:25:58 | [diff] [blame] | 227 | ['toolkit_uses_gtk == 1', { |
| 228 | 'dependencies': [ |
| 229 | '<(DEPTH)/build/linux/system.gyp:gtk', |
| 230 | ], |
| 231 | }], |
[email protected] | c1f87b2 | 2011-10-05 21:59:33 | [diff] [blame] | 232 | ], |
| 233 | }, |
[email protected] | 5629e0c | 2011-09-12 22:07:36 | [diff] [blame] | 234 | ], |
| 235 | } |