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 'target_defaults': { 7 'target_conditions': [ 8 ['has_lame==1', { 9 'sources/': [ 10 ['exclude', 'lame'], 11 ], 12 }], 13 ], 14 }, 15 'targets': [ 16 { 17 'target_name': 'program', 18 'type': 'executable', 19 'variables': { 20 'has_lame': 1, 21 }, 22 'include_dirs': [ 23 '<(SHARED_INTERMEDIATE_DIR)', 24 ], 25 'defines': [ 26 'FOO="^(_sources)"', 27 ], 28 'sources': [ 29 'program.cc', 30 'this_is_lame.cc', 31 ], 32 }, 33 ], 34 } 35