OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 |
| 3 # Copyright (c) 2012 Google Inc. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. |
| 6 |
| 7 """ |
| 8 Test checking that IntermediateDirectory can be defined in terms of |
| 9 OutputDirectory. We previously had emitted the definition of |
| 10 IntermediateDirectory before the definition of OutputDirectory. |
| 11 This is required so that $(IntDir) can be based on $(OutDir). |
| 12 """ |
| 13 |
| 14 import TestGyp |
| 15 import os |
| 16 |
| 17 test = TestGyp.TestGyp(workdir='workarea_shared_output', formats=['msvs']) |
| 18 |
| 19 test.run_gyp('hello.gyp') |
| 20 test.set_configuration('Baz') |
| 21 |
| 22 test.build('there/there.gyp', test.ALL) |
| 23 test.must_exist(os.path.join(test.workdir, 'foo', 'there.exe')) |
| 24 test.must_exist(os.path.join(test.workdir, 'foo', 'bar', 'there.obj')) |
| 25 |
| 26 test.build('hello.gyp', test.ALL) |
| 27 test.must_exist(os.path.join(test.workdir, 'foo', 'hello.exe')) |
| 28 test.must_exist(os.path.join(test.workdir, 'foo', 'bar', 'hello.obj')) |
| 29 |
| 30 test.pass_test() |
OLD | NEW |