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""" 8Verify that link_settings in a shared_library are not propagated to targets 9that depend on the shared_library, but are used in the shared_library itself. 10""" 11 12import TestGyp 13import sys 14 15CHDIR='sharedlib-linksettings' 16 17test = TestGyp.TestGyp() 18test.run_gyp('test.gyp', chdir=CHDIR) 19test.build('test.gyp', test.ALL, chdir=CHDIR) 20test.run_built_executable('program', stdout="1\n2\n", chdir=CHDIR) 21test.pass_test() 22