Sha256: 6ee583cc80b2aa86de0456005225b221da471424cbed66f609f46b5c0dbe5936

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 KB

Contents

#!/usr/bin/env python

# Copyright (c) 2010 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')

with open('relocate/src/Makefile') 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('relocate/src/Makefile', 'w') as makefile:
  makefile.write(make_contents)

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

test.pass_test()

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
libv8-3.11.8.17 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/library/gyptest-shared-obj-install-path.py