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': 'lib1', 9 'type': 'shared_library', 10 'sources': [ 11 'lib1.c', 12 ], 13 }, 14 { 15 'target_name': 'lib2', 16 'type': 'shared_library', 17 'sources': [ 18 'lib2.c', 19 ], 20 'dependencies': [ 21 'lib1', 22 ], 23 }, 24 ], 25 'conditions': [ 26 ['OS=="linux"', { 27 'target_defaults': { 28 # Support 64-bit shared libs (also works fine for 32-bit). 29 'cflags': ['-fPIC'], 30 }, 31 }], 32 ], 33} 34