Sha256: 33260f2019e65b44bd742e20286bdc244ff0e648a4fe1428e5f70e99f5c2a44d

Contents?: true

Size: 851 Bytes

Versions: 4

Compression:

Stored size: 851 Bytes

Contents

#!/usr/bin/env python

# Copyright (c) 2014 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.

"""
Verifies that tools are built correctly.
"""

import TestGyp
import TestMac

import sys
import os

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

  oldenv = os.environ.copy()
  try:
    os.environ['GYP_CROSSCOMPILE'] = '1'
    test.run_gyp('test-crosscompile.gyp', chdir='app-bundle')
  finally:
    os.environ.clear()
    os.environ.update(oldenv)

  test.set_configuration('Default')
  test.build('test-crosscompile.gyp', 'TestHost', chdir='app-bundle')
  result_file = test.built_file_path('TestHost', chdir='app-bundle')
  test.must_exist(result_file)
  TestMac.CheckFileType(test, result_file, ['x86_64'])

  test.pass_test()

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mt-libuv-4.1.04 ext/gyp/test/ios/gyptest-crosscompile.py
mt-libuv-4.1.03 ext/gyp/test/ios/gyptest-crosscompile.py
mt-libuv-4.1.02 ext/gyp/test/ios/gyptest-crosscompile.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/ios/gyptest-crosscompile.py