1 # Copyright (c) 2011 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 'target_defaults': { 7 'include_dirs': [ 8 '../../../../..', 9 ], 10 'link_settings': { 11 'libraries': [ 12 '$(SDKROOT)/usr/lib/libbz2.dylib', 13 '$(SDKROOT)/usr/lib/libz.dylib', 14 ], 15 }, 16 'configurations': { 17 'Release': { 18 'xcode_settings': { 19 # Use -Os to minimize the size of the installer tools. 20 'GCC_OPTIMIZATION_LEVEL': 's', 21 }, 22 }, 23 }, 24 }, 25 'targets': [ 26 { 27 # Because size is a concern, don't link against all of base. Instead, 28 # just bring in a copy of the one component that's needed, along with 29 # the adapter that allows it to be called from C (not C++) code. 30 'target_name': 'goobsdiff_sha1_adapter', 31 'type': 'static_library', 32 'sources': [ 33 '../../../../../base/sha1_portable.cc', 34 'sha1_adapter.cc', 35 'sha1_adapter.h', 36 ], 37 }, 38 { 39 'target_name': 'goobsdiff', 40 'type': 'executable', 41 'dependencies': [ 42 'goobsdiff_sha1_adapter', 43 '../xz/xz.gyp:lzma', 44 ], 45 'sources': [ 46 'empty.cc', 47 'goobsdiff.c', 48 ], 49 }, 50 { 51 'target_name': 'goobspatch', 52 'type': 'executable', 53 'dependencies': [ 54 'goobsdiff_sha1_adapter', 55 '../xz/xz.gyp:lzma_decompress', 56 ], 57 'sources': [ 58 'empty.cc', 59 'goobspatch.c', 60 ], 61 }, 62 ], 63 } 64