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.19.1 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
mt-libuv-4.1.04 ext/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
mt-libuv-4.1.03 ext/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
mt-libuv-4.1.02 ext/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.19 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.18 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.17 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.16 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.15 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.14 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.13 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.12 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.11 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.10 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.8 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py
libv8-3.16.14.8.rc1 vendor/gyp/test/hard_dependency/gyptest-exported-hard-dependency.py