blob: af335365f98e0097f42908f8234c620ab8ec16e4 [file] [log] [blame]
#!/usr/bin/env python
# Copyright (c) 2012 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 that .so files that are order only dependencies are specified by
their install location rather than by their alias.
# Python 2.5 needs this for the with statement.
from __future__ import with_statement
import os
import TestGyp
test = TestGyp.TestGyp(formats=['make'])
test.relocate('src', 'relocate/src')'shared_dependency.gyp', test.ALL, chdir='relocate/src')
makefile_path = 'relocate/src/Makefile'
with open(makefile_path) as makefile:
make_contents =
# If we remove the code to generate lib1, Make should still be able
# to build lib2 since already exists.
make_contents = make_contents.replace('include', '')
with open(makefile_path, 'w') as makefile:
makefile.write(make_contents)'shared_dependency.gyp', test.ALL, chdir='relocate/src')