blob: cafe8507e734699f0ce82c9efdcbcf6e443bbe29 [file] [log] [blame]
[email protected]e55a7dd2010-05-28 20:54:531# Copyright (c) 2010 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8
9 # Keep the archive builder happy.
10 'chrome_personalization%': 1,
11 'use_syncapi_stub%': 0,
12
[email protected]8d54bd62010-06-02 15:38:0113 'variables': {
14 'version_py_path': '../tools/build/version.py',
15 'version_path': 'VERSION',
16 },
17 'version_py_path': '<(version_py_path) -f',
18 'version_path': '<(version_path)',
19
[email protected]e55a7dd2010-05-28 20:54:5320 'conditions': [
21 ['OS=="win"', {
22 'python': [
[email protected]c4ecdcf2010-11-23 03:18:1923 '<(DEPTH)\\third_party\\python_26\\setup_env.bat && python'
[email protected]e55a7dd2010-05-28 20:54:5324 ],
25 }, { # OS != win
26 'python': [
27 'python'
28 ],
29 }],
30 ],
31 },
32 'includes': [
33 '../build/common.gypi',
34 ],
35 'target_defaults': {
36 'include_dirs': [
37 # all our own includes are relative to src/
38 '..',
39 ],
[email protected]9ceda772010-08-30 15:34:1140 'configurations': {
41 'Release_Base': {
42 # Set flags to unconditionally optimize chrome_frame_launcher.exe
43 # for release builds.
44 'msvs_settings': {
45 'VCLinkerTool': {
46 'LinkTimeCodeGeneration': '1',
47 },
48 'VCCLCompilerTool': {
49 'Optimization': '3',
50 'InlineFunctionExpansion': '2',
51 'EnableIntrinsicFunctions': 'true',
52 'FavorSizeOrSpeed': '2',
53 'OmitFramePointers': 'true',
54 'EnableFiberSafeOptimizations': 'true',
55 'WholeProgramOptimization': 'true',
56 },
57 'VCLibrarianTool': {
58 'AdditionalOptions': ['/ltcg', '/expectedoutputsize:120000000'],
59 },
60 },
61 },
62 },
[email protected]e55a7dd2010-05-28 20:54:5363 },
64 'targets': [
65 {
66 'target_name': 'chrome_launcher',
67 'type': 'executable',
68 'msvs_guid': 'B7E540C1-49D9-4350-ACBC-FB8306316D16',
69 'dependencies': [
70 '../breakpad/breakpad.gyp:breakpad_handler',
[email protected]8d54bd62010-06-02 15:38:0171 '../chrome/chrome.gyp:chrome_version_header',
[email protected]e4fe427b2010-09-03 19:57:4272 'chrome_frame.gyp:chrome_frame_utils',
[email protected]8d54bd62010-06-02 15:38:0173 ],
74 'resource_include_dirs': [
75 '<(INTERMEDIATE_DIR)',
76 '<(SHARED_INTERMEDIATE_DIR)',
[email protected]e55a7dd2010-05-28 20:54:5377 ],
78 'sources': [
79 'chrome_launcher_main.cc',
[email protected]8d54bd62010-06-02 15:38:0180 'chrome_launcher_version.rc',
[email protected]e55a7dd2010-05-28 20:54:5381 'chrome_launcher.cc',
82 'chrome_launcher.h',
83 ],
84 'msvs_settings': {
85 'VCLinkerTool': {
86 'OutputFile':
87 '$(OutDir)\\servers\\$(ProjectName).exe',
88 # Set /SUBSYSTEM:WINDOWS since this is not a command-line program.
89 'SubSystem': '2',
90 'AdditionalDependencies': [
91 'shlwapi.lib',
92 ],
[email protected]e55a7dd2010-05-28 20:54:5393 },
[email protected]e4fe427b2010-09-03 19:57:4294 },
[email protected]9ceda772010-08-30 15:34:1195 },
96 {
97 'target_name': 'chrome_frame_helper',
98 'type': 'executable',
99 'msvs_guid': 'BF4FFA36-2F66-4B65-9A91-AB7EC08D1042',
100 'dependencies': [
101 '../breakpad/breakpad.gyp:breakpad_handler',
102 '../chrome/chrome.gyp:chrome_version_header',
[email protected]e4fe427b2010-09-03 19:57:42103 'chrome_frame.gyp:chrome_frame_utils',
[email protected]9ceda772010-08-30 15:34:11104 'chrome_frame_helper_dll',
105 ],
106 'resource_include_dirs': [
107 '<(INTERMEDIATE_DIR)',
108 '<(SHARED_INTERMEDIATE_DIR)',
109 ],
110 'include_dirs': [
111 # To allow including "chrome_tab.h"
112 '<(INTERMEDIATE_DIR)',
113 '<(INTERMEDIATE_DIR)/../chrome_frame',
114 ],
115 'sources': [
116 'chrome_frame_helper_main.cc',
117 'chrome_frame_helper_version.rc',
118 ],
119 'msvs_settings': {
120 'VCLinkerTool': {
121 'OutputFile':
[email protected]dca693252010-09-01 20:10:13122 '$(OutDir)\\$(ProjectName).exe',
[email protected]9ceda772010-08-30 15:34:11123 # Set /SUBSYSTEM:WINDOWS since this is not a command-line program.
124 'SubSystem': '2',
125 },
126 },
127 },
128 {
129 'target_name': 'chrome_frame_helper_dll',
130 'type': 'shared_library',
131 'msvs_guid': '5E80032F-7033-4661-9016-D98268244783',
132 'dependencies': [
133 '../chrome/chrome.gyp:chrome_version_header',
134 ],
135 'resource_include_dirs': [
136 '<(INTERMEDIATE_DIR)',
137 '<(SHARED_INTERMEDIATE_DIR)',
138 ],
139 'include_dirs': [
140 # To allow including "chrome_tab.h"
141 '<(INTERMEDIATE_DIR)',
142 '<(INTERMEDIATE_DIR)/../chrome_frame',
143 ],
144 'sources': [
145 'bho_loader.cc',
146 'bho_loader.h',
147 'chrome_frame_helper_dll.cc',
148 'chrome_frame_helper_dll.def',
149 'chrome_frame_helper_util.cc',
150 'chrome_frame_helper_util.h',
151 'chrome_frame_helper_version.rc',
152 'chrome_tab.h',
153 'chrome_tab.idl',
154 'event_hooker.cc',
155 'event_hooker.h',
156 'iids.cc',
157 ],
158 'msvs_settings': {
159 'VCLinkerTool': {
[email protected]872b8312010-09-07 19:38:46160 'OutputFile': '$(OutDir)\\chrome_frame_helper.dll',
161 'ProgramDataBaseFile': '$(OutDir)\\chrome_frame_helper_dll.pdb',
[email protected]9ceda772010-08-30 15:34:11162 # Set /SUBSYSTEM:WINDOWS since this is not a command-line program.
163 'SubSystem': '2',
164 'AdditionalDependencies': [
165 'shlwapi.lib',
166 ],
[email protected]e55a7dd2010-05-28 20:54:53167 },
168 },
169 },
170 ],
171}