summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/win/gyptest-asm-files.py
blob: 007b52eb267688b6827356620a8f2a885bf29e20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python

# Copyright (c) 2012 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

"""
Make sure .s files aren't passed to cl.
"""

import TestGyp

import sys

if sys.platform == 'win32':
  test = TestGyp.TestGyp(formats=['msvs', 'ninja'])

  CHDIR = 'asm-files'
  test.run_gyp('asm-files.gyp', chdir=CHDIR)
  # The compiler will error out if it's passed the .s files, so just make sure
  # the build succeeds. The compiler doesn't directly support building
  # assembler files on Windows, they have to be built explicitly with a
  # third-party tool.
  test.build('asm-files.gyp', test.ALL, chdir=CHDIR)

  test.pass_test()