Home | History | Annotate | Download | only in sharedlib-linksettings
      1 # Copyright (c) 2013 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     'allow_sharedlib_linksettings_propagation': 0,
      8   },
      9   'targets': [
     10     {
     11       'target_name': 'sharedlib',
     12       'type': 'shared_library',
     13       'sources': [ 'sharedlib.c' ],
     14       'link_settings': {
     15         'defines': [ 'TEST_DEFINE=1' ],
     16       },
     17       'conditions': [
     18         ['OS=="linux"', {
     19           # Support 64-bit shared libs (also works fine for 32-bit).
     20           'cflags': ['-fPIC'],
     21         }],
     22       ],
     23     },
     24     {
     25       'target_name': 'staticlib',
     26       'type': 'static_library',
     27       'sources': [ 'staticlib.c' ],
     28       'dependencies': [ 'sharedlib' ],
     29     },
     30     {
     31       'target_name': 'program',
     32       'type': 'executable',
     33       'sources': [ 'program.c' ],
     34       'dependencies': [ 'staticlib' ],
     35     },
     36   ],
     37 }
     38