Sha256: 8de184115577d7a84b93b83120b30ad669a04f883643b0a8c42211f511458b20

Contents?: true

Size: 948 Bytes

Versions: 1

Compression:

Stored size: 948 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 it's possible to build host targets correctly in a multilib
configuration, explicitly forcing either 32 or 64 bit.
"""

import TestGyp

test = TestGyp.TestGyp(formats=['android'])

test.run_gyp('host_32or64.gyp')

# Force building as 32-bit
test.build('host_32or64.gyp', 'generate_output',
           arguments=['GYP_HOST_VAR_PREFIX=$(HOST_2ND_ARCH_VAR_PREFIX)',
                      'GYP_HOST_MULTILIB=32'])

test.built_file_must_match('host_32or64.output', 'Hello, 32-bit world!\n')

# Force building as 64-bit
test.build('host_32or64.gyp', 'generate_output',
           arguments=['GYP_HOST_VAR_PREFIX=',
                      'GYP_HOST_MULTILIB=64'])

test.built_file_must_match('host_32or64.output', 'Hello, 64-bit world!\n')

test.pass_test()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/android/gyptest-host-multilib.py