OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 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. |
| 6 |
| 7 """ |
| 8 Make sure link_settings containing -lblah.lib is remapped to just blah.lib. |
| 9 """ |
| 10 |
| 11 import TestGyp |
| 12 |
| 13 import subprocess |
| 14 import sys |
| 15 |
| 16 if sys.platform == 'win32': |
| 17 test = TestGyp.TestGyp(formats=['ninja']) |
| 18 |
| 19 CHDIR = 'library_adjust' |
| 20 test.run_gyp('library-adjust.gyp', chdir=CHDIR) |
| 21 |
| 22 ninja_file = test.built_file_path('obj/test_adjust.ninja', chdir=CHDIR) |
| 23 test.must_contain(ninja_file, 'winmm.lib') |
| 24 test.must_not_contain(ninja_file, '-lwinmm.lib') |
| 25 test.must_contain(ninja_file, 'ws2_32.lib') |
| 26 test.must_not_contain(ninja_file, '-lws2_32.lib') |
| 27 |
| 28 test.pass_test() |
OLD | NEW |