| Index: recovery/repair_exe/custom_action/build.scons
|
| diff --git a/recovery/repair_exe/custom_action/build.scons b/recovery/repair_exe/custom_action/build.scons
|
| deleted file mode 100644
|
| index 81942edbdc880812c77b40c58c5cc16556f094d8..0000000000000000000000000000000000000000
|
| --- a/recovery/repair_exe/custom_action/build.scons
|
| +++ /dev/null
|
| @@ -1,137 +0,0 @@
|
| -#!/usr/bin/python2.4
|
| -#
|
| -# Copyright 2009-2010 Google Inc.
|
| -#
|
| -# Licensed under the Apache License, Version 2.0 (the "License");
|
| -# you may not use this file except in compliance with the License.
|
| -# You may obtain a copy of the License at
|
| -#
|
| -# http://www.apache.org/licenses/LICENSE-2.0
|
| -#
|
| -# Unless required by applicable law or agreed to in writing, software
|
| -# distributed under the License is distributed on an "AS IS" BASIS,
|
| -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| -# See the License for the specific language governing permissions and
|
| -# limitations under the License.
|
| -# ========================================================================
|
| -
|
| -
|
| -Import('env')
|
| -
|
| -
|
| -#
|
| -# Build executecustomaction.dll
|
| -#
|
| -
|
| -lib_target_name = 'executecustomaction_lib'
|
| -
|
| -lib_env = env.Clone()
|
| -
|
| -lib_inputs = [
|
| - 'execute_repair_file.cc',
|
| - ]
|
| -if env.Bit('use_precompiled_headers'):
|
| - lib_inputs += lib_env.EnablePrecompile(lib_target_name)
|
| -
|
| -lib_output = lib_env.ComponentLibrary(
|
| - lib_name=lib_target_name,
|
| - source=lib_inputs,
|
| -)
|
| -
|
| -lib_env.OmahaUnittest(
|
| - name='repair_exe_custom_action_unittest',
|
| - source='execute_repair_file_unittest.cc',
|
| - LIBS=lib_target_name + '.lib',
|
| -)
|
| -
|
| -
|
| -dll_target_name = 'executecustomaction'
|
| -
|
| -dll_env = env.Clone(
|
| - # Build a dll, not a lib.
|
| - COMPONENT_STATIC = False,
|
| -)
|
| -
|
| -dll_env.Append(
|
| - LIBS = [
|
| - ('atls.lib', 'atlsd.lib')[dll_env.Bit('debug')],
|
| - ('libcmt.lib', 'libcmtd.lib')[dll_env.Bit('debug')],
|
| - ('libcpmt.lib', 'libcpmtd.lib')[dll_env.Bit('debug')],
|
| - '$LIB_DIR/base.lib',
|
| - '$LIB_DIR/google_update_recovery.lib',
|
| - '$LIB_DIR/repair_goopdate.lib',
|
| - 'crypt32.lib',
|
| - 'msi.lib',
|
| - 'wintrust.lib',
|
| -
|
| - # These are required by base.lib
|
| - 'netapi32.lib',
|
| - 'psapi.lib',
|
| - 'rasapi32.lib',
|
| - 'shlwapi.lib',
|
| - 'userenv.lib',
|
| - 'version.lib',
|
| - 'wtsapi32.lib',
|
| - lib_target_name + '.lib',
|
| - ],
|
| -
|
| - CPPDEFINES = [
|
| - '_USRDLL',
|
| - ],
|
| -)
|
| -
|
| -dll_inputs = [
|
| - 'executecustomaction.cc',
|
| - 'executecustomaction.def',
|
| - ]
|
| -if env.Bit('use_precompiled_headers'):
|
| - dll_inputs += dll_env.EnablePrecompile(dll_target_name)
|
| -
|
| -dll_env.ComponentLibrary(
|
| - lib_name=dll_target_name,
|
| - source=dll_inputs,
|
| -)
|
| -
|
| -
|
| -#
|
| -# Build testelevateusingmsp.exe
|
| -#
|
| -test_env = env.Clone()
|
| -
|
| -test_env['LIBS'] += [
|
| - ('atls.lib', 'atlsd.lib')[test_env.Bit('debug')],
|
| - ('libcmt.lib', 'libcmtd.lib')[test_env.Bit('debug')],
|
| - ('libcpmt.lib', 'libcpmtd.lib')[test_env.Bit('debug')],
|
| - '$LIB_DIR/base.lib',
|
| - '$LIB_DIR/repair_goopdate.lib',
|
| - 'crypt32.lib',
|
| - 'msi.lib',
|
| - 'wintrust.lib',
|
| - # These are required by base.lib
|
| - 'netapi32.lib',
|
| - 'psapi.lib',
|
| - 'rasapi32.lib',
|
| - 'shlwapi.lib',
|
| - 'userenv.lib',
|
| - 'version.lib',
|
| - 'wtsapi32.lib',
|
| - ]
|
| -
|
| -# This is a console application.
|
| -test_env.FilterOut(LINKFLAGS = ['/SUBSYSTEM:WINDOWS'])
|
| -test_env['LINKFLAGS'] += ['/SUBSYSTEM:CONSOLE']
|
| -
|
| -target_name = 'testelevateusingmsp'
|
| -
|
| -test_inputs = [
|
| - 'testelevateusingmsp.cc',
|
| - ]
|
| -if env.Bit('use_precompiled_headers'):
|
| - test_inputs += test_env.EnablePrecompile(target_name)
|
| -
|
| -# This test requires arguments, so do not create a run alias.
|
| -test_env.ComponentTestProgram(
|
| - prog_name=target_name,
|
| - source=test_inputs,
|
| - COMPONENT_TEST_RUNNABLE=False
|
| -)
|
|
|