Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: test/ios/deployment-target/check-version-min.c

Issue 12725005: improve xcode_emulation.py (Closed) Base URL: http://gyp.googlecode.com/svn/trunk
Patch Set: test/{xcode => mac}, fixed ios tests with 'xcode' Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 /* Copyright (c) 2013 Google Inc. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. */
4
5 #include <Availability.h>
6
7 /* GYPTEST_MAC_VERSION_MIN: should be set to the corresponding value of
8 * xcode setting 'MACOSX_DEPLOYMENT_TARGET', otherwise both should be
9 * left undefined.
10 *
11 * GYPTEST_IOS_VERSION_MIN: should be set to the corresponding value of
12 * xcode setting 'IPHONEOS_DEPLOYMENT_TARGET', otherwise both should be
13 * left undefined.
14 */
15
16 #if defined(GYPTEST_MAC_VERSION_MIN)
17 # if GYPTEST_MAC_VERSION_MIN != __MAC_OS_X_VERSION_MIN_REQUIRED
18 # error __MAC_OS_X_VERSION_MIN_REQUIRED has wrong value
19 # endif
20 #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
21 # error __MAC_OS_X_VERSION_MIN_REQUIRED should be undefined
22 #endif
23
24 #if defined(GYPTEST_IOS_VERSION_MIN)
25 # if GYPTEST_IOS_VERSION_MIN != __IPHONE_OS_VERSION_MIN_REQUIRED
26 # error __IPHONE_OS_VERSION_MIN_REQUIRED has wrong value
27 # endif
28 #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
29 # error __IPHONE_OS_VERSION_MIN_REQUIRED should be undefined
30 #endif
31
32 int main() { return 0; }
33
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698