summaryrefslogtreecommitdiffstats
path: root/media/webrtc/trunk/tools/gyp/test/mac/sdkroot
diff options
context:
space:
mode:
authorMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
committerMatt A. Tobin <mattatobin@localhost.localdomain>2018-02-02 04:16:08 -0500
commit5f8de423f190bbb79a62f804151bc24824fa32d8 (patch)
tree10027f336435511475e392454359edea8e25895d /media/webrtc/trunk/tools/gyp/test/mac/sdkroot
parent49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff)
downloadUXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz
UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip
Add m-esr52 at 52.6.0
Diffstat (limited to 'media/webrtc/trunk/tools/gyp/test/mac/sdkroot')
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/sdkroot/file.cc5
-rw-r--r--media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test.gyp35
-rwxr-xr-xmedia/webrtc/trunk/tools/gyp/test/mac/sdkroot/test_shorthand.sh20
3 files changed, 60 insertions, 0 deletions
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/file.cc b/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/file.cc
new file mode 100644
index 000000000..13ae97104
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/file.cc
@@ -0,0 +1,5 @@
+#include <map>
+using std::map;
+
+int main() {
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test.gyp b/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test.gyp
new file mode 100644
index 000000000..2fc11a028
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test.gyp
@@ -0,0 +1,35 @@
+# 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.
+{
+ 'targets': [
+ {
+ 'target_name': 'mytarget',
+ 'type': 'executable',
+ 'sources': [ 'file.cc', ],
+ 'xcode_settings': {
+ 'SDKROOT': 'macosx%s',
+ },
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'envtest',
+ 'action': [ './test_shorthand.sh', ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'absolute',
+ 'type': 'executable',
+ 'sources': [ 'file.cc', ],
+ 'xcode_settings': {
+ 'SDKROOT': '<(sdk_path)',
+ },
+ 'postbuilds': [
+ {
+ 'postbuild_name': 'envtest',
+ 'action': [ './test_shorthand.sh', ],
+ },
+ ],
+ },
+ ],
+}
diff --git a/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test_shorthand.sh b/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test_shorthand.sh
new file mode 100755
index 000000000..ac4ac229a
--- /dev/null
+++ b/media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test_shorthand.sh
@@ -0,0 +1,20 @@
+#!/bin/bash
+# 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.
+
+set -e
+
+found=false
+for sdk in 10.6 10.7 10.8 10.9 ; do
+ if expected=$(xcodebuild -version -sdk macosx$sdk Path 2>/dev/null) ; then
+ found=true
+ break
+ fi
+done
+if ! $found ; then
+ echo >&2 "cannot find installed SDK"
+ exit 1
+fi
+
+test $SDKROOT = $expected