Roll skia to r1241.
[chromium-blink-merge.git] / chrome_frame / chrome_frame_launcher.gyp
blob01c9f2e2a3a9abec4d384c1881d78bb103a1ef7c
1 # 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.
6   'variables': {
7     'chromium_code': 1,
9     # Keep the archive builder happy.
10     'chrome_personalization%': 1,
11     'use_syncapi_stub%': 0,
13     '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)',
20     'conditions': [
21       ['OS=="win"', {
22         'python': [
23           '<(DEPTH)\\third_party\\python_26\\setup_env.bat && python'
24         ],
25       }, { # OS != win
26         'python': [
27           'python'
28         ],
29       }],
30     ],
31   },
32   'target_defaults': {
33     'include_dirs': [
34       # all our own includes are relative to src/
35       '..',
36     ],
37     'configurations': {
38       'Release_Base': {
39         # Set flags to unconditionally optimize chrome_frame_launcher.exe
40         # for release builds.
41         'msvs_settings': {
42           'VCLinkerTool': {
43             'LinkTimeCodeGeneration': '1',
44           },
45           'VCCLCompilerTool': {
46             'Optimization': '3',
47             'InlineFunctionExpansion': '2',
48             'EnableIntrinsicFunctions': 'true',
49             'FavorSizeOrSpeed': '2',
50             'OmitFramePointers': 'true',
51             'EnableFiberSafeOptimizations': 'true',
52             'WholeProgramOptimization': 'true',
53           },
54           'VCLibrarianTool': {
55             'AdditionalOptions': ['/ltcg', '/expectedoutputsize:120000000'],
56           },
57         },
58       },
59     },
60   },
61   'targets': [
62     {
63       'target_name': 'chrome_launcher',
64       'type': 'executable',
65       'msvs_guid': 'B7E540C1-49D9-4350-ACBC-FB8306316D16',
66       'dependencies': [
67         '../breakpad/breakpad.gyp:breakpad_handler',
68         '../chrome/chrome.gyp:chrome_version_header',
69         '../google_update/google_update.gyp:google_update',
70         'chrome_frame.gyp:chrome_frame_utils',
71       ],
72       'resource_include_dirs': [
73         '<(INTERMEDIATE_DIR)',
74         '<(SHARED_INTERMEDIATE_DIR)',
75       ],
76       'sources': [
77         'chrome_launcher_main.cc',
78         'chrome_launcher_version.rc',
79         'chrome_launcher.cc',
80         'chrome_launcher.h',
81         'update_launcher.cc',
82         'update_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           ],
93         },
94       },
95     },
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',
103         'chrome_frame.gyp:chrome_frame_utils',
104         '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':
122               '$(OutDir)\\$(ProjectName).exe',
123           # 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         '<(SHARED_INTERMEDIATE_DIR)/chrome_tab.h',
153         'chrome_tab.idl',
154         'event_hooker.cc',
155         'event_hooker.h',
156         'iids.cc',
157       ],
158       'msvs_settings': {
159         'VCLinkerTool': {
160           'OutputFile': '$(OutDir)\\chrome_frame_helper.dll',
161           'ProgramDatabaseFile': '$(OutDir)\\chrome_frame_helper_dll.pdb',
162           # Set /SUBSYSTEM:WINDOWS since this is not a command-line program.
163           'SubSystem': '2',
164           'AdditionalDependencies': [
165             'shlwapi.lib',
166           ],
167         },
168       },
169     },
170   ],