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

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: Added tests 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 * NOTE: At least one GYPTEST_*_VERSION_MIN *MUST* be defined.
16 */
17
18 #if defined(GYPTEST_MAC_VERSION_MIN)
19 # if GYPTEST_MAC_VERSION_MIN != __MAC_OS_X_VERSION_MIN_REQUIRED
20 # error __MAC_OS_X_VERSION_MIN_REQUIRED has wrong value
21 # endif
22 #elif defined(__MAC_OS_X_VERSION_MIN_REQUIRED)
23 # error __MAC_OS_X_VERSION_MIN_REQUIRED should be undefined
24 #endif
25
26 #if defined(GYPTEST_IOS_VERSION_MIN)
27 # if GYPTEST_IOS_VERSION_MIN != __IPHONE_OS_VERSION_MIN_REQUIRED
28 # error __IPHONE_OS_VERSION_MIN_REQUIRED has wrong value
29 # endif
30 #elif defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
31 # error __IPHONE_OS_VERSION_MIN_REQUIRED should be undefined
32 #endif
33
34 int main() { return 0; }
35
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698