summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/mac/gyptest-framework-dirs.py
blob: a1ae54c57fbeb02c7e701625b334740b3e23dd49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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.

"""
Verify that it is possible to build an object that depends on a
PrivateFramework.
"""

import os
import sys
import TestGyp

if sys.platform == 'darwin':
  test = TestGyp.TestGyp(formats=['ninja', 'make', 'xcode'])

  CHDIR = 'framework-dirs'
  test.run_gyp('framework-dirs.gyp', chdir=CHDIR)
  test.build('framework-dirs.gyp', 'calculate', chdir=CHDIR)

  test.pass_test()