[email protected] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 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. |
| 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] | 8d54bd6 | 2010-06-02 15:38:01 | [diff] [blame] | 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)', |
| 19 | |
[email protected] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 20 | 'conditions': [ |
| 21 | ['OS=="win"', { |
| 22 | 'python': [ |
[email protected] | c4ecdcf | 2010-11-23 03:18:19 | [diff] [blame^] | 23 | '<(DEPTH)\\third_party\\python_26\\setup_env.bat && python' |
[email protected] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 24 | ], |
| 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] | 9ceda77 | 2010-08-30 15:34:11 | [diff] [blame] | 40 | '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] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 63 | }, |
| 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] | 8d54bd6 | 2010-06-02 15:38:01 | [diff] [blame] | 71 | '../chrome/chrome.gyp:chrome_version_header', |
[email protected] | e4fe427b | 2010-09-03 19:57:42 | [diff] [blame] | 72 | 'chrome_frame.gyp:chrome_frame_utils', |
[email protected] | 8d54bd6 | 2010-06-02 15:38:01 | [diff] [blame] | 73 | ], |
| 74 | 'resource_include_dirs': [ |
| 75 | '<(INTERMEDIATE_DIR)', |
| 76 | '<(SHARED_INTERMEDIATE_DIR)', |
[email protected] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 77 | ], |
| 78 | 'sources': [ |
| 79 | 'chrome_launcher_main.cc', |
[email protected] | 8d54bd6 | 2010-06-02 15:38:01 | [diff] [blame] | 80 | 'chrome_launcher_version.rc', |
[email protected] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 81 | '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] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 93 | }, |
[email protected] | e4fe427b | 2010-09-03 19:57:42 | [diff] [blame] | 94 | }, |
[email protected] | 9ceda77 | 2010-08-30 15:34:11 | [diff] [blame] | 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', |
[email protected] | e4fe427b | 2010-09-03 19:57:42 | [diff] [blame] | 103 | 'chrome_frame.gyp:chrome_frame_utils', |
[email protected] | 9ceda77 | 2010-08-30 15:34:11 | [diff] [blame] | 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': |
[email protected] | dca69325 | 2010-09-01 20:10:13 | [diff] [blame] | 122 | '$(OutDir)\\$(ProjectName).exe', |
[email protected] | 9ceda77 | 2010-08-30 15:34:11 | [diff] [blame] | 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 | '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] | 872b831 | 2010-09-07 19:38:46 | [diff] [blame] | 160 | 'OutputFile': '$(OutDir)\\chrome_frame_helper.dll', |
| 161 | 'ProgramDataBaseFile': '$(OutDir)\\chrome_frame_helper_dll.pdb', |
[email protected] | 9ceda77 | 2010-08-30 15:34:11 | [diff] [blame] | 162 | # Set /SUBSYSTEM:WINDOWS since this is not a command-line program. |
| 163 | 'SubSystem': '2', |
| 164 | 'AdditionalDependencies': [ |
| 165 | 'shlwapi.lib', |
| 166 | ], |
[email protected] | e55a7dd | 2010-05-28 20:54:53 | [diff] [blame] | 167 | }, |
| 168 | }, |
| 169 | }, |
| 170 | ], |
| 171 | } |