Skip to content

Commit 21020cd

Browse files
Vyazovoymatej
authored andcommitted
Added .pch file speed up compilation time.
1 parent 1761e41 commit 21020cd

File tree

2 files changed

+52
-23
lines changed

2 files changed

+52
-23
lines changed

MBProgressHUD-Prefix.pch

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
//
2+
// Prefix header for all source files of the 'MBProgressHUD' target in the 'MBProgressHUD' project
3+
//
4+
5+
#import <Availability.h>
6+
7+
#ifndef __IPHONE_3_0
8+
#warning "This project uses features only available in iOS SDK 3.0 and later."
9+
#endif
10+
11+
#ifdef __OBJC__
12+
#import <UIKit/UIKit.h>
13+
#import <Foundation/Foundation.h>
14+
#import <CoreGraphics/CoreGraphics.h>
15+
#endif

MBProgressHUD.xcodeproj/project.pbxproj

+37-23
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,28 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
1315DD7617804CBC0032507D /* MBProgressHUD.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = D286A7511518C70F00E13FB8 /* MBProgressHUD.h */; };
1011
D286A74D1518C70F00E13FB8 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D286A74C1518C70F00E13FB8 /* Foundation.framework */; };
1112
D286A7531518C70F00E13FB8 /* MBProgressHUD.m in Sources */ = {isa = PBXBuildFile; fileRef = D286A7521518C70F00E13FB8 /* MBProgressHUD.m */; };
1213
D286A75E1518C89600E13FB8 /* UIKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D286A75D1518C89600E13FB8 /* UIKit.framework */; };
1314
D286A76F1518CAAD00E13FB8 /* CoreGraphics.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D286A76E1518CAAD00E13FB8 /* CoreGraphics.framework */; };
14-
D286A7851518CBEE00E13FB8 /* MBProgressHUD.h in Headers */ = {isa = PBXBuildFile; fileRef = D286A7511518C70F00E13FB8 /* MBProgressHUD.h */; settings = {ATTRIBUTES = (Public, ); }; };
1515
/* End PBXBuildFile section */
1616

17+
/* Begin PBXCopyFilesBuildPhase section */
18+
1315DD7517804C970032507D /* CopyFiles */ = {
19+
isa = PBXCopyFilesBuildPhase;
20+
buildActionMask = 2147483647;
21+
dstPath = "include/${PRODUCT_NAME}";
22+
dstSubfolderSpec = 16;
23+
files = (
24+
1315DD7617804CBC0032507D /* MBProgressHUD.h in CopyFiles */,
25+
);
26+
runOnlyForDeploymentPostprocessing = 0;
27+
};
28+
/* End PBXCopyFilesBuildPhase section */
29+
1730
/* Begin PBXFileReference section */
31+
1315DD73178045000032507D /* MBProgressHUD-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "MBProgressHUD-Prefix.pch"; sourceTree = SOURCE_ROOT; };
1832
D286A7491518C70F00E13FB8 /* libMBProgressHUD.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libMBProgressHUD.a; sourceTree = BUILT_PRODUCTS_DIR; };
1933
D286A74C1518C70F00E13FB8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; };
2034
D286A7511518C70F00E13FB8 /* MBProgressHUD.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MBProgressHUD.h; sourceTree = SOURCE_ROOT; };
@@ -28,15 +42,23 @@
2842
isa = PBXFrameworksBuildPhase;
2943
buildActionMask = 2147483647;
3044
files = (
31-
D286A76F1518CAAD00E13FB8 /* CoreGraphics.framework in Frameworks */,
3245
D286A75E1518C89600E13FB8 /* UIKit.framework in Frameworks */,
3346
D286A74D1518C70F00E13FB8 /* Foundation.framework in Frameworks */,
47+
D286A76F1518CAAD00E13FB8 /* CoreGraphics.framework in Frameworks */,
3448
);
3549
runOnlyForDeploymentPostprocessing = 0;
3650
};
3751
/* End PBXFrameworksBuildPhase section */
3852

3953
/* Begin PBXGroup section */
54+
1315DD72178044770032507D /* Supporting Files */ = {
55+
isa = PBXGroup;
56+
children = (
57+
1315DD73178045000032507D /* MBProgressHUD-Prefix.pch */,
58+
);
59+
name = "Supporting Files";
60+
sourceTree = "<group>";
61+
};
4062
D286A73E1518C70E00E13FB8 = {
4163
isa = PBXGroup;
4264
children = (
@@ -57,9 +79,9 @@
5779
D286A74B1518C70F00E13FB8 /* Frameworks */ = {
5880
isa = PBXGroup;
5981
children = (
60-
D286A76E1518CAAD00E13FB8 /* CoreGraphics.framework */,
6182
D286A75D1518C89600E13FB8 /* UIKit.framework */,
6283
D286A74C1518C70F00E13FB8 /* Foundation.framework */,
84+
D286A76E1518CAAD00E13FB8 /* CoreGraphics.framework */,
6385
);
6486
name = Frameworks;
6587
sourceTree = "<group>";
@@ -69,31 +91,21 @@
6991
children = (
7092
D286A7511518C70F00E13FB8 /* MBProgressHUD.h */,
7193
D286A7521518C70F00E13FB8 /* MBProgressHUD.m */,
94+
1315DD72178044770032507D /* Supporting Files */,
7295
);
7396
path = MBProgressHUD;
7497
sourceTree = "<group>";
7598
};
7699
/* End PBXGroup section */
77100

78-
/* Begin PBXHeadersBuildPhase section */
79-
D286A7471518C70F00E13FB8 /* Headers */ = {
80-
isa = PBXHeadersBuildPhase;
81-
buildActionMask = 2147483647;
82-
files = (
83-
D286A7851518CBEE00E13FB8 /* MBProgressHUD.h in Headers */,
84-
);
85-
runOnlyForDeploymentPostprocessing = 0;
86-
};
87-
/* End PBXHeadersBuildPhase section */
88-
89101
/* Begin PBXNativeTarget section */
90102
D286A7481518C70F00E13FB8 /* MBProgressHUD */ = {
91103
isa = PBXNativeTarget;
92104
buildConfigurationList = D286A7561518C70F00E13FB8 /* Build configuration list for PBXNativeTarget "MBProgressHUD" */;
93105
buildPhases = (
94106
D286A7451518C70F00E13FB8 /* Sources */,
95107
D286A7461518C70F00E13FB8 /* Frameworks */,
96-
D286A7471518C70F00E13FB8 /* Headers */,
108+
1315DD7517804C970032507D /* CopyFiles */,
97109
);
98110
buildRules = (
99111
);
@@ -148,7 +160,10 @@
148160
buildSettings = {
149161
ALWAYS_SEARCH_USER_PATHS = NO;
150162
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
163+
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
164+
CLANG_CXX_LIBRARY = "libc++";
151165
CLANG_WARN_CONSTANT_CONVERSION = YES;
166+
CLANG_WARN_EMPTY_BODY = YES;
152167
CLANG_WARN_ENUM_CONVERSION = YES;
153168
CLANG_WARN_INT_CONVERSION = YES;
154169
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -175,7 +190,10 @@
175190
buildSettings = {
176191
ALWAYS_SEARCH_USER_PATHS = NO;
177192
ARCHS = "$(ARCHS_STANDARD_32_BIT)";
193+
CLANG_CXX_LANGUAGE_STANDARD = "c++0x";
194+
CLANG_CXX_LIBRARY = "libc++";
178195
CLANG_WARN_CONSTANT_CONVERSION = YES;
196+
CLANG_WARN_EMPTY_BODY = YES;
179197
CLANG_WARN_ENUM_CONVERSION = YES;
180198
CLANG_WARN_INT_CONVERSION = YES;
181199
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
@@ -195,12 +213,10 @@
195213
isa = XCBuildConfiguration;
196214
buildSettings = {
197215
DSTROOT = /tmp/MBProgressHUD.dst;
198-
GCC_PRECOMPILE_PREFIX_HEADER = NO;
199-
GCC_PREFIX_HEADER = "";
200-
INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)";
216+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
217+
GCC_PREFIX_HEADER = "MBProgressHUD-Prefix.pch";
201218
OTHER_LDFLAGS = "-ObjC";
202219
PRODUCT_NAME = "$(TARGET_NAME)";
203-
PUBLIC_HEADERS_FOLDER_PATH = "include/$(TARGET_NAME)";
204220
SKIP_INSTALL = YES;
205221
};
206222
name = Debug;
@@ -209,12 +225,10 @@
209225
isa = XCBuildConfiguration;
210226
buildSettings = {
211227
DSTROOT = /tmp/MBProgressHUD.dst;
212-
GCC_PRECOMPILE_PREFIX_HEADER = NO;
213-
GCC_PREFIX_HEADER = "";
214-
INSTALL_PATH = "$(BUILT_PRODUCTS_DIR)";
228+
GCC_PRECOMPILE_PREFIX_HEADER = YES;
229+
GCC_PREFIX_HEADER = "MBProgressHUD-Prefix.pch";
215230
OTHER_LDFLAGS = "-ObjC";
216231
PRODUCT_NAME = "$(TARGET_NAME)";
217-
PUBLIC_HEADERS_FOLDER_PATH = "include/$(TARGET_NAME)";
218232
SKIP_INSTALL = YES;
219233
};
220234
name = Release;

0 commit comments

Comments
 (0)