From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../trunk/tools/gyp/test/mac/sdkroot/file.cc | 5 ++++ .../trunk/tools/gyp/test/mac/sdkroot/test.gyp | 35 ++++++++++++++++++++++ .../tools/gyp/test/mac/sdkroot/test_shorthand.sh | 20 +++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 media/webrtc/trunk/tools/gyp/test/mac/sdkroot/file.cc create mode 100644 media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test.gyp create mode 100755 media/webrtc/trunk/tools/gyp/test/mac/sdkroot/test_shorthand.sh (limited to 'media/webrtc/trunk/tools/gyp/test/mac/sdkroot') 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 +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 -- cgit v1.2.3