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
3 # found in the LICENSE file.
6 ['OS=="mac" or OS=="win"', {
9 'target_name': 'chrome_dll',
15 ['OS=="mac" and component=="shared_library"', {
16 'type': 'shared_library',
17 'includes': [ 'chrome_dll_bundle.gypi' ],
20 '-Wl,-reexport_library,<(PRODUCT_DIR)/libchrome_main_dll.dylib',
24 ['incremental_chrome_dll==1', {
25 # Linking to a different directory and then hardlinking back
26 # to OutDir is a workaround to avoid having the .ilk for
27 # chrome.exe and chrome.dll conflicting. See crbug.com/92528
28 # for more information. Done on the dll instead of the exe so
29 # that people launching from VS don't need to modify
30 # $(TargetPath) for the exe.
33 'action_name': 'hardlink_to_output',
35 '$(OutDir)\\initial\\chrome.dll',
38 '$(OutDir)\\chrome.dll',
40 'action': ['tools\\build\\win\\hardlink_failsafe.bat',
41 '$(OutDir)\\initial\\chrome.dll',
42 '$(OutDir)\\chrome.dll'],
43 'msvs_cygwin_shell': 0,
47 # Only hardlink pdb if we're generating debug info.
48 ['fastbuild==0 or win_z7!=0', {
51 'action_name': 'hardlink_pdb_to_output',
53 # Not the pdb, since gyp doesn't know about it
54 '$(OutDir)\\initial\\chrome.dll',
57 '$(OutDir)\\chrome.dll.pdb',
59 'action': ['tools\\build\\win\\hardlink_failsafe.bat',
60 '$(OutDir)\\initial\\chrome.dll.pdb',
61 '$(OutDir)\\chrome.dll.pdb'],
62 'msvs_cygwin_shell': 0,
71 'target_name': 'chrome_main_dll',
72 'type': 'shared_library',
74 'enable_wexit_time_destructors': 1,
77 '<@(chromium_dependencies)',
78 'app/policy/cloud_policy_codegen.gyp:policy',
83 '../ui/compositor/compositor.gyp:compositor',
88 '<(SHARED_INTERMEDIATE_DIR)/ash/ash_resources/ash_wallpaper_resources.rc',
92 'product_name': 'chrome',
94 # On Windows, link the dependencies (libraries) that make
95 # up actual Chromium functionality into this .dll.
96 'chrome_resources.gyp:chrome_resources',
97 'chrome_version_resources',
98 '../chrome/chrome_resources.gyp:chrome_unscaled_resources',
99 '../content/content.gyp:content_worker',
100 '../crypto/crypto.gyp:crypto',
101 '../printing/printing.gyp:printing',
102 '../net/net.gyp:net_resources',
103 '../third_party/cld/cld.gyp:cld',
104 '../ui/views/views.gyp:views',
105 '../webkit/support/webkit_support.gyp:webkit_resources',
108 'app/chrome_command_ids.h',
110 'app/chrome_dll_resource.h',
111 'app/chrome_main.cc',
112 'app/chrome_main_delegate.cc',
113 'app/chrome_main_delegate.h',
115 '<(SHARED_INTERMEDIATE_DIR)/chrome_version/chrome_dll_version.rc',
116 '../base/win/dllmain.cc',
118 '../webkit/glue/resources/aliasb.cur',
119 '../webkit/glue/resources/cell.cur',
120 '../webkit/glue/resources/col_resize.cur',
121 '../webkit/glue/resources/copy.cur',
122 '../webkit/glue/resources/none.cur',
123 '../webkit/glue/resources/row_resize.cur',
124 '../webkit/glue/resources/vertical_text.cur',
125 '../webkit/glue/resources/zoom_in.cur',
126 '../webkit/glue/resources/zoom_out.cur',
128 # TODO: It would be nice to have these pulled in
129 # automatically from direct_dependent_settings in
130 # their various targets (net.gyp:net_resources, etc.),
131 # but that causes errors in other targets when
132 # resulting .res files get referenced multiple times.
133 '<(SHARED_INTERMEDIATE_DIR)/chrome/browser_resources.rc',
134 '<(SHARED_INTERMEDIATE_DIR)/chrome/chrome_unscaled_resources.rc',
135 '<(SHARED_INTERMEDIATE_DIR)/chrome/common_resources.rc',
136 '<(SHARED_INTERMEDIATE_DIR)/chrome/extensions_api_resources.rc',
137 '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.rc',
138 '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.rc',
139 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_chromium_resources.rc',
140 '<(SHARED_INTERMEDIATE_DIR)/webkit/webkit_unscaled_resources.rc',
142 # TODO(sgk): left-over from pre-gyp build, figure out
143 # if we still need them and/or how to update to gyp.
144 #'app/check_dependents.bat',
145 #'app/chrome.dll.deps',
148 '<(DEPTH)/third_party/wtl/include',
160 'LinkIncremental': '<(msvs_large_module_debug_link_mode)',
167 'AdditionalLibraryDirectories': ['$(DXSDK_DIR)/lib/x86'],
168 'BaseAddress': '0x01c30000',
169 'ImportLibrary': '$(OutDir)\\lib\\chrome_dll.lib',
170 # Set /SUBSYSTEM:WINDOWS for chrome.dll (for consistency).
173 ['incremental_chrome_dll==1', {
174 'OutputFile': '$(OutDir)\\initial\\chrome.dll',
175 'UseLibraryDependencyInputs': "true",
196 'AdditionalManifestFiles': '$(ProjectDir)\\app\\chrome.dll.manifest',
200 ['OS=="mac" and component!="shared_library"', {
201 'includes': [ 'chrome_dll_bundle.gypi' ],
203 ['OS=="mac" and component=="shared_library"', {
204 'xcode_settings': { 'OTHER_LDFLAGS': [ '-Wl,-ObjC' ], },
208 # Define the order of symbols within the framework. This
210 'ORDER_FILE': 'app/framework.order',
213 'app/chrome_command_ids.h',
214 'app/chrome_dll_resource.h',
215 'app/chrome_main.cc',
216 'app/chrome_main_delegate.cc',
217 'app/chrome_main_delegate.h',
218 'app/chrome_main_app_mode_mac.mm',
219 'app/chrome_main_mac.mm',
220 'app/chrome_main_mac.h',
227 # This step causes an error to be raised if the .order file
228 # does not account for all global text symbols. It
229 # validates the completeness of the .order file.
230 'postbuild_name': 'Verify global text symbol order',
232 'verify_order_path': 'tools/build/mac/verify_order',
235 '<(verify_order_path)',
237 '${BUILT_PRODUCTS_DIR}/${EXECUTABLE_PATH}',
242 ['mac_breakpad_compiled_in==1', {
244 '../breakpad/breakpad.gyp:breakpad',
245 'app/policy/cloud_policy_codegen.gyp:policy',
248 'app/breakpad_mac.mm',
249 'app/breakpad_mac.h',
251 }, { # else: mac_breakpad_compiled_in!=1
252 # No Breakpad, put in the stubs.
254 'app/breakpad_mac_stubs.mm',
255 'app/breakpad_mac.h',
257 }], # mac_breakpad_compiled_in
260 '../pdf/pdf.gyp:pdf',
266 }, # target chrome_dll
268 }], # OS=="mac" or OS=="win"