Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: test/win/gyptest-link_additional_deps.py

Issue 9443044: Beginnings of some msvs_... emulation (windows ninja) (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: better place for normpath to remove need for $!-no-escape Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 additional library dependencies are handled.
9 """
10
11 import TestGyp
12
13 import subprocess
14 import sys
15
16 if sys.platform == 'win32':
17 test = TestGyp.TestGyp(formats=['ninja', 'msvs'])
18
19 CHDIR = 'linker_flags'
20 test.run_gyp('additional-deps.gyp', chdir=CHDIR)
21 test.build('additional-deps.gyp', test.ALL, chdir=CHDIR)
22
23 if test.format == 'ninja':
24 ninja_file = test.built_file_path('obj/test_deps_none.ninja', chdir=CHDIR)
25 # Just don't error on generation.
26
27 ninja_file = test.built_file_path('obj/test_deps_few.ninja',
28 chdir=CHDIR)
29 test.must_contain(ninja_file, 'ldflags = wininet.lib ws2_32.lib')
30
31 test.pass_test()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698