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. 4 { 5 'variables': { 6 'chromium_code': 1, 7 }, 8 'includes': [ 9 '../../build/win_precompile.gypi', 10 '../../chrome/version.gypi', 11 ], 12 'targets': [ 13 { 14 'target_name': 'delegate_execute_version_resources', 15 'type': 'none', 16 'conditions': [ 17 ['branding == "Chrome"', { 18 'variables': { 19 'branding_path': '../../chrome/app/theme/google_chrome/BRANDING', 20 }, 21 }, { # else branding!="Chrome" 22 'variables': { 23 'branding_path': '../../chrome/app/theme/chromium/BRANDING', 24 }, 25 }], 26 ], 27 'variables': { 28 'output_dir': 'delegate_execute', 29 'template_input_path': '../../chrome/app/chrome_version.rc.version', 30 }, 31 'sources': [ 32 'delegate_execute_exe.ver', 33 ], 34 'includes': [ 35 '../../chrome/version_resource_rules.gypi', 36 ], 37 }, 38 { 39 'target_name': 'delegate_execute', 40 'type': 'executable', 41 'dependencies': [ 42 '../../base/base.gyp:base', 43 '../../breakpad/breakpad.gyp:breakpad_handler', 44 '../../chrome/chrome.gyp:installer_util', 45 '../../google_update/google_update.gyp:google_update', 46 '../../ui/ui.gyp:ui', 47 '../../win8/win8.gyp:check_sdk_patch', 48 'delegate_execute_version_resources', 49 ], 50 'sources': [ 51 'chrome_util.cc', 52 'chrome_util.h', 53 'command_execute_impl.cc', 54 'command_execute_impl.h', 55 'command_execute_impl.rgs', 56 'crash_server_init.cc', 57 'crash_server_init.h', 58 'delegate_execute.cc', 59 'delegate_execute.rc', 60 'delegate_execute_operation.cc', 61 'delegate_execute_operation.h', 62 'delegate_execute_util.cc', 63 'delegate_execute_util.h', 64 'resource.h', 65 '<(SHARED_INTERMEDIATE_DIR)/delegate_execute/delegate_execute_exe_version.rc', 66 ], 67 'msvs_settings': { 68 'VCLinkerTool': { 69 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS 70 }, 71 }, 72 }, 73 { 74 'target_name': 'delegate_execute_unittests', 75 'type': 'executable', 76 'dependencies': [ 77 '../../base/base.gyp:base', 78 '../../base/base.gyp:run_all_unittests', 79 '../../testing/gtest.gyp:gtest', 80 ], 81 'sources': [ 82 'delegate_execute_util.cc', 83 'delegate_execute_util.h', 84 'delegate_execute_util_unittest.cc', 85 ], 86 }, 87 ], 88 } 89