3 # Copyright (c) 2012 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.
8 Make sure libpath is extracted properly.
15 if sys
.platform
== 'win32':
16 test
= TestGyp
.TestGyp(formats
=['msvs', 'ninja'])
18 CHDIR
= 'linker-flags'
20 # Build subdirectory library.
21 test
.run_gyp('subdir/library.gyp', chdir
=CHDIR
)
22 test
.build('subdir/library.gyp', test
.ALL
, chdir
=CHDIR
)
24 # And then try to link the main project against the library using only
26 test
.run_gyp('library-directories.gyp', chdir
=CHDIR
)
28 # Without additional paths specified, should fail.
29 test
.build('library-directories.gyp', 'test_libdirs_none', chdir
=CHDIR
,
32 # With the additional library directory, should pass.
33 test
.build('library-directories.gyp', 'test_libdirs_with', chdir
=CHDIR
)