Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Unified Diff: goopdate/resources/build.scons

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « goopdate/resource_manager_unittest.cc ('k') | goopdate/resources/goopdate_dll/generated_resources_am.rc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: goopdate/resources/build.scons
diff --git a/goopdate/resources/build.scons b/goopdate/resources/build.scons
deleted file mode 100644
index 378de18a04c7b15aceae96572c201852c2d36f40..0000000000000000000000000000000000000000
--- a/goopdate/resources/build.scons
+++ /dev/null
@@ -1,93 +0,0 @@
-#!/usr/bin/python2.4
-# Copyright 2009 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')
-
-
-local_env = env.Clone(
- PRECOMPILE_STOPFILE = '',
- PRECOMPILE_BUILDER = '',
- COMPONENT_STATIC = False,
-)
-
-# We disable runtime stack check to avoid increasing the code size.
-# There is a compiler pragma to programmatically disable the stack checks
-# but for some reason it did not work.
-local_env.FilterOut(CPPFLAGS = ['/GS'])
-
-# Disable stack checks for VC80. Stack checks are on by default.
-if local_env['msc_ver'] >= 1400:
- local_env['CCFLAGS'] += ['/GS-']
-
-
-for omaha_version_info in local_env['omaha_versions_info']:
- prefix = omaha_version_info.filename_prefix
-
- for lang in omaha_version_info.GetSupportedLanguages():
- lang_env = local_env.Clone()
- lang_env.Append(
- RCFLAGS = [
- '/DVERSION_MAJOR=%d' % omaha_version_info.version_major,
- '/DVERSION_MINOR=%d' % omaha_version_info.version_minor,
- '/DVERSION_BUILD=%d' % omaha_version_info.version_build,
- '/DVERSION_PATCH=%d' % omaha_version_info.version_patch,
- '/DVERSION_NUMBER_STRING=\\"%s\\"' % (
- omaha_version_info.GetVersionString()),
- '/DLANGUAGE_STRING=\\"%s\\"' % lang
- ],
- CPPPATH = [
- '$OBJ_ROOT/goopdate', # Needed for the tlb
- ],
- LINKFLAGS = [
- '/NODEFAULTLIB',
- '/ENTRY:DllEntry',
- '/MERGE:.rdata=.text',
- '/BASE:0x19000000',
- ],
- )
-
- # Avoid conflicts in obj targets
- lang_env['OBJSUFFIX'] = '_' + lang + lang_env['OBJSUFFIX']
- lang_env['OBJPREFIX'] = '%s/%s' % (lang, prefix) + lang_env['OBJPREFIX']
-
- lang_base_name = 'generated_resources_' + lang
- lang_res = lang_env.RES(
- target='%s%s.res' % (prefix, lang_base_name),
- source='goopdateres/%s.rc' % (lang_base_name),
- )
-
- # Force a rebuild when the version changes.
- lang_env.Depends(lang_res, '$MAIN_DIR/VERSION')
-
- lang_inputs = [
- 'resdll_main.cc',
- lang_res,
- # Needed to prevent rebuilding of the lib.
- 'resource_only_dll.def'
- ]
-
- # Build the (unsigned) DLL
- unsigned_dll = lang_env.ComponentLibrary(
- lib_name='%s/%sgoopdateres_unsigned_%s' % (lang, prefix, lang),
- source=lang_inputs
- )
-
- signed_dll = lang_env.SignedBinary(
- target='%s/%sgoopdateres_%s.dll' % (lang, prefix, lang),
- source=unsigned_dll,
- )
-
- env.Replicate('$STAGING_DIR', signed_dll)
« no previous file with comments | « goopdate/resource_manager_unittest.cc ('k') | goopdate/resources/goopdate_dll/generated_resources_am.rc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698