1 # Copyright (c) 2011 Google Inc. 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 'targets': [ 6 { 7 'target_name': 'prefix_header_c', 8 'type': 'static_library', 9 'sources': [ 'file.c', ], 10 'xcode_settings': { 11 'GCC_PREFIX_HEADER': 'header.h', 12 }, 13 }, 14 { 15 'target_name': 'precompiled_prefix_header_c', 16 'type': 'shared_library', 17 'mac_bundle': 1, 18 'sources': [ 'file.c', ], 19 'xcode_settings': { 20 'GCC_PREFIX_HEADER': 'header.h', 21 'GCC_PRECOMPILE_PREFIX_HEADER': 'YES', 22 }, 23 }, 24 25 { 26 'target_name': 'prefix_header_cc', 27 'type': 'static_library', 28 'sources': [ 'file.cc', ], 29 'xcode_settings': { 30 'GCC_PREFIX_HEADER': 'header.h', 31 }, 32 }, 33 { 34 'target_name': 'precompiled_prefix_header_cc', 35 'type': 'shared_library', 36 'mac_bundle': 1, 37 'sources': [ 'file.cc', ], 38 'xcode_settings': { 39 'GCC_PREFIX_HEADER': 'header.h', 40 'GCC_PRECOMPILE_PREFIX_HEADER': 'YES', 41 }, 42 }, 43 44 { 45 'target_name': 'prefix_header_m', 46 'type': 'static_library', 47 'sources': [ 'file.m', ], 48 'xcode_settings': { 49 'GCC_PREFIX_HEADER': 'header.h', 50 }, 51 }, 52 { 53 'target_name': 'precompiled_prefix_header_m', 54 'type': 'shared_library', 55 'mac_bundle': 1, 56 'sources': [ 'file.m', ], 57 'xcode_settings': { 58 'GCC_PREFIX_HEADER': 'header.h', 59 'GCC_PRECOMPILE_PREFIX_HEADER': 'YES', 60 }, 61 }, 62 63 { 64 'target_name': 'prefix_header_mm', 65 'type': 'static_library', 66 'sources': [ 'file.mm', ], 67 'xcode_settings': { 68 'GCC_PREFIX_HEADER': 'header.h', 69 }, 70 }, 71 { 72 'target_name': 'precompiled_prefix_header_mm', 73 'type': 'shared_library', 74 'mac_bundle': 1, 75 'sources': [ 'file.mm', ], 76 'xcode_settings': { 77 'GCC_PREFIX_HEADER': 'header.h', 78 'GCC_PRECOMPILE_PREFIX_HEADER': 'YES', 79 }, 80 }, 81 ], 82 } 83