Sha256: af3c4228980a58e3b50309ede9a13362c86472c5a525f00044e1b6dca95935ab

Contents?: true

Size: 986 Bytes

Versions: 16

Compression:

Stored size: 986 Bytes

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.

"""
Verifies building a target from a .gyp file a few subdirectories
deep when the --generator-output= option is used to put the build
configuration files in a separate directory tree.
"""

import TestGyp

test = TestGyp.TestGyp(formats=['!ninja'])

test.writable(test.workpath('src'), False)

test.writable(test.workpath('src/subdir2/deeper/build'), True)

test.run_gyp('deeper.gyp',
             '-Dset_symroot=1',
             '--generator-output=' + test.workpath('gypfiles'),
             chdir='src/subdir2/deeper')

test.build('deeper.gyp', test.ALL, chdir='gypfiles')

chdir = 'gypfiles'

if test.format == 'xcode':
  chdir = 'src/subdir2/deeper'
test.run_built_executable('deeper',
                          chdir=chdir,
                          stdout="Hello from deeper.c\n")

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/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.16 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.13 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.12 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/libv8-3.11.8.4/vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.11 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.10 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.9 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.8 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.7 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.4 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-freebsd-3.11.8.3 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.3 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.1 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.11.8.0 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py
libv8-3.10.8.0 vendor/v8/build/gyp/test/generator-output/gyptest-subdir2-deep.py