1 # Copyright (c) 2014 Google Inc. All rights reserved. 2 # Use of this source code is governed by a BSD-style licence that can be 3 # found in the LICENSE file. 4 5 { 6 'variables': { 7 'custom_ld_target%': '', 8 'custom_ld_host%': '', 9 }, 10 'conditions': [ 11 ['"<(custom_ld_target)"!=""', { 12 'make_global_settings': [ 13 ['LD', '<(custom_ld_target)'], 14 ], 15 }], 16 ['"<(custom_ld_host)"!=""', { 17 'make_global_settings': [ 18 ['LD.host', '<(custom_ld_host)'], 19 ], 20 }], 21 ], 22 'targets': [ 23 { 24 'target_name': 'make_global_settings_ld_test', 25 'type': 'static_library', 26 'sources': [ 'foo.c' ], 27 }, 28 ], 29 } 30