Sha256: 88fd24415958cf5c3b1ba758f43d320c622b167537bc1aeca658c4c872dcf845

Contents?: true

Size: 1.3 KB

Versions: 44

Compression:

Stored size: 1.3 KB

Contents

#!/usr/bin/env python

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

"""
Verify that a hard_dependency that is exported is pulled in as a dependency
for a target if the target is a static library and if the generator will
remove dependencies between static libraries.
"""

import TestGyp

test = TestGyp.TestGyp()

if test.format == 'dump_dependency_json':
  test.skip_test('Skipping test; dependency JSON does not adjust ' \
                 'static libraries.\n')

test.run_gyp('hard_dependency.gyp', chdir='src')

chdir = 'relocate/src'
test.relocate('src', chdir)

test.build('hard_dependency.gyp', 'c', chdir=chdir)

# The 'a' static library should be built, as it has actions with side-effects
# that are necessary to compile 'c'. Even though 'c' does not directly depend
# on 'a', because 'a' is a hard_dependency that 'b' exports, 'c' should import
# it as a hard_dependency and ensure it is built before building 'c'.
test.built_file_must_exist('a', type=test.STATIC_LIB, chdir=chdir)
test.built_file_must_not_exist('b', type=test.STATIC_LIB, chdir=chdir)
test.built_file_must_exist('c', type=test.STATIC_LIB, chdir=chdir)
test.built_file_must_not_exist('d', type=test.STATIC_LIB, chdir=chdir)

test.pass_test()

Version data entries

44 entries across 44 versions & 7 rubygems

Version Path
libv8-3.16.14.7 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.6 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.5 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.4 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.3 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.2 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.1 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.0 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.17 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py