Sha256: a0a776b241f628249f7205fcdb15c53953d05b2ac87f6575163950d1c9a3e5f1

Contents?: true

Size: 1.2 KB

Versions: 44

Compression:

Stored size: 1.2 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 not exported is not pulled in as a
dependency for a target if the target does not explicitly specify a dependency
and none of its dependencies export the hard_dependency.
"""

import TestGyp

test = TestGyp.TestGyp()

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

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

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

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

# Because 'c' does not export a hard_dependency, only the target 'd' should
# be built. This is because the 'd' target does not need the generated headers
# in order to be compiled.
test.built_file_must_not_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_not_exist('c', type=test.STATIC_LIB, chdir=chdir)
test.built_file_must_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-no-exported-hard-dependency.py
mt-libuv-4.1.04 ext/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
mt-libuv-4.1.03 ext/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
mt-libuv-4.1.02 ext/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
tree-sitter-0.1.0 ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.19 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.18 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
tree-sitter-0.0.1 ext/tree-sitter/tree-sitter/externals/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
arcabouco-0.2.13 vendor/bundle/gems/libv8-3.16.14.17/vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.17 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.16 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.15 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.14 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-tmpfork-3.16.14.13 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.13 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.12 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.11 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.10 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.8 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py
libv8-3.16.14.8.rc1 vendor/gyp/test/hard_dependency/gyptest-no-exported-hard-dependency.py