1 # Copyright (c) 2009 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 { 6 'targets': [ 7 { 8 'target_name': 'hello1', 9 'product_name': 'alt1', 10 'type': 'executable', 11 'sources': [ 12 'hello.c', 13 ], 14 }, 15 { 16 'target_name': 'hello2', 17 'product_extension': 'stuff', 18 'type': 'executable', 19 'sources': [ 20 'hello.c', 21 ], 22 }, 23 { 24 'target_name': 'hello3', 25 'product_name': 'alt3', 26 'product_extension': 'stuff', 27 'product_prefix': 'yo', 28 'type': 'executable', 29 'sources': [ 30 'hello.c', 31 ], 32 }, 33 34 { 35 'target_name': 'hello4', 36 'product_name': 'alt4', 37 'type': 'shared_library', 38 'sources': [ 39 'hello.c', 40 ], 41 }, 42 { 43 'target_name': 'hello5', 44 'product_extension': 'stuff', 45 'type': 'shared_library', 46 'sources': [ 47 'hello.c', 48 ], 49 }, 50 { 51 'target_name': 'hello6', 52 'product_name': 'alt6', 53 'product_extension': 'stuff', 54 'product_prefix': 'yo', 55 'type': 'shared_library', 56 'sources': [ 57 'hello.c', 58 ], 59 }, 60 61 { 62 'target_name': 'hello7', 63 'product_name': 'alt7', 64 'type': 'static_library', 65 'sources': [ 66 'hello.c', 67 ], 68 }, 69 { 70 'target_name': 'hello8', 71 'product_extension': 'stuff', 72 'type': 'static_library', 73 'sources': [ 74 'hello.c', 75 ], 76 }, 77 { 78 'target_name': 'hello9', 79 'product_name': 'alt9', 80 'product_extension': 'stuff', 81 'product_prefix': 'yo', 82 'type': 'static_library', 83 'sources': [ 84 'hello.c', 85 ], 86 }, 87 { 88 'target_name': 'hello10', 89 'product_name': 'alt10', 90 'product_extension': 'stuff', 91 'product_prefix': 'yo', 92 'product_dir': '<(PRODUCT_DIR)/bob', 93 'type': 'executable', 94 'sources': [ 95 'hello.c', 96 ], 97 }, 98 { 99 'target_name': 'hello11', 100 'product_name': 'alt11', 101 'product_extension': 'stuff', 102 'product_prefix': 'yo', 103 'product_dir': '<(PRODUCT_DIR)/bob', 104 'type': 'shared_library', 105 'sources': [ 106 'hello.c', 107 ], 108 }, 109 { 110 'target_name': 'hello12', 111 'product_name': 'alt12', 112 'product_extension': 'stuff', 113 'product_prefix': 'yo', 114 'product_dir': '<(PRODUCT_DIR)/bob', 115 'type': 'static_library', 116 'sources': [ 117 'hello.c', 118 ], 119 }, 120 ], 121 'conditions': [ 122 ['OS=="linux"', { 123 'target_defaults': { 124 'cflags': ['-fPIC'], 125 }, 126 }], 127 ], 128 } 129