Home | History | Annotate | Download | only in dependencies
      1 #!/usr/bin/env python
      2 
      3 # Copyright (c) 2013 Google Inc. All rights reserved.
      4 # Use of this source code is governed by a BSD-style license that can be
      5 # found in the LICENSE file.
      6 
      7 """
      8 Verify that link_settings in a shared_library are not propagated to targets
      9 that depend on the shared_library, but are used in the shared_library itself.
     10 """
     11 
     12 import TestGyp
     13 import sys
     14 
     15 CHDIR='sharedlib-linksettings'
     16 
     17 test = TestGyp.TestGyp()
     18 test.run_gyp('test.gyp', chdir=CHDIR)
     19 test.build('test.gyp', test.ALL, chdir=CHDIR)
     20 test.run_built_executable('program', stdout="1\n2\n", chdir=CHDIR)
     21 test.pass_test()
     22