Sha256: da45fc63c9437fda6133042be7e025cbb05d0c749ec6c03e5ced5f69112cb6aa

Contents?: true

Size: 1.15 KB

Versions: 25

Compression:

Stored size: 1.15 KB

Contents

#!/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.

"""
Verifies that .so files that are order only dependencies are specified by
their install location rather than by their alias.
"""

# Python 2.5 needs this for the with statement.
from __future__ import with_statement

import os
import TestGyp

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

test.run_gyp('shared_dependency.gyp',
             chdir='src')
test.relocate('src', 'relocate/src')

test.build('shared_dependency.gyp', test.ALL, chdir='relocate/src')

if test.format=='android':
  makefile_path = 'relocate/src/GypAndroid.mk'
else:
  makefile_path = 'relocate/src/Makefile'

with open(makefile_path) as makefile:
  make_contents = makefile.read()

# If we remove the code to generate lib1, Make should still be able
# to build lib2 since lib1.so already exists.
make_contents = make_contents.replace('include lib1.target.mk', '')
with open(makefile_path, 'w') as makefile:
  makefile.write(make_contents)

test.build('shared_dependency.gyp', test.ALL, chdir='relocate/src')

test.pass_test()

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
libv8-3.16.14.19.1 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.19 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.18 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/library/gyptest-shared-obj-install-path.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.17 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.16 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.15 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.14 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.13 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.12 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.11 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.10 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.8 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.8.rc1 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.7 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.6 vendor/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.16.14.5 vendor/gyp/test/library/gyptest-shared-obj-install-path.py