diff options
Diffstat (limited to 'chrome/installer/mac/third_party/bsdiff/goobsdiff.gyp')
-rw-r--r-- | chrome/installer/mac/third_party/bsdiff/goobsdiff.gyp | 41 |
1 files changed, 30 insertions, 11 deletions
diff --git a/chrome/installer/mac/third_party/bsdiff/goobsdiff.gyp b/chrome/installer/mac/third_party/bsdiff/goobsdiff.gyp index 68ffd58..68e4668 100644 --- a/chrome/installer/mac/third_party/bsdiff/goobsdiff.gyp +++ b/chrome/installer/mac/third_party/bsdiff/goobsdiff.gyp @@ -1,44 +1,63 @@ -# Copyright (c) 2010 The Chromium Authors. All rights reserved. +# Copyright (c) 2011 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. { 'target_defaults': { - 'type': 'executable', + 'include_dirs': [ + '../../../../..', + ], 'link_settings': { 'libraries': [ '$(SDKROOT)/usr/lib/libbz2.dylib', '$(SDKROOT)/usr/lib/libz.dylib', - '$(SDKROOT)/usr/lib/libcrypto.dylib', ], }, + 'configurations': { + 'Release': { + 'xcode_settings': { + # Use -Os to minimize the size of the installer tools. + 'GCC_OPTIMIZATION_LEVEL': 's', + }, + }, + }, }, 'targets': [ { + # Because size is a concern, don't link against all of base. Instead, + # just bring in a copy of the one component that's needed, along with + # the adapter that allows it to be called from C (not C++) code. + 'target_name': 'goobsdiff_sha1_adapter', + 'type': 'static_library', + 'sources': [ + '../../../../../base/sha1_portable.cc', + 'sha1_adapter.cc', + 'sha1_adapter.h', + ], + }, + { 'target_name': 'goobsdiff', + 'type': 'executable', 'dependencies': [ + 'goobsdiff_sha1_adapter', '../xz/xz.gyp:lzma', ], 'sources': [ + 'empty.cc', 'goobsdiff.c', ], }, { 'target_name': 'goobspatch', + 'type': 'executable', 'dependencies': [ + 'goobsdiff_sha1_adapter', '../xz/xz.gyp:lzma_decompress', ], 'sources': [ + 'empty.cc', 'goobspatch.c', ], - 'configurations': { - 'Release': { - 'xcode_settings': { - # Use -Os to minimize the size of the installer tools. - 'GCC_OPTIMIZATION_LEVEL': 's', - }, - }, - }, }, ], } |