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

Side by Side Diff: build/precompile.h

Issue 1256223003: Revert "Add precompiled headers to GN build for large targets." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « build/json_schema_api.gni ('k') | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is used as a precompiled header for both C and C++ files. So 5 // Precompiled header for Chromium project on Windows, not used by
6 // any C++ headers must go in the __cplusplus block below. 6 // other build configurations. Using precompiled headers speeds the
7 // build up significantly, around 1/4th on VS 2010 on an HP Z600 with 12
8 // GB of memory.
9 //
10 // Numeric comments beside includes are the number of times they were
11 // included under src/chrome/browser on 2011/8/20, which was used as a
12 // baseline for deciding what to include in the PCH. Includes without
13 // a numeric comment are generally included at least 5 times. It may
14 // be possible to tweak the speed of the build by commenting out or
15 // removing some of the less frequently used headers.
7 16
8 #if defined(BUILD_PRECOMPILE_H_) 17 #if defined(BUILD_PRECOMPILE_H_)
9 #error You shouldn't include the precompiled header file more than once. 18 #error You shouldn't include the precompiled header file more than once.
10 #endif 19 #endif
11 20
12 #define BUILD_PRECOMPILE_H_ 21 #define BUILD_PRECOMPILE_H_
13 22
14 #define _USE_MATH_DEFINES 23 #define _USE_MATH_DEFINES
15 24
25 // The Windows header needs to come before almost all the other
26 // Windows-specific headers.
27 #include <Windows.h>
28 #include <dwmapi.h>
29 #include <shellapi.h>
30 #include <wtypes.h> // 2
31
32 // Defines in atlbase.h cause conflicts; if we could figure out how
33 // this family of headers can be included in the PCH, it might speed
34 // up the build as several of them are used frequently.
35 /*
36 #include <atlbase.h>
37 #include <atlapp.h>
38 #include <atlcom.h>
39 #include <atlcrack.h> // 2
40 #include <atlctrls.h> // 2
41 #include <atlmisc.h> // 2
42 #include <atlsafe.h> // 1
43 #include <atltheme.h> // 1
44 #include <atlwin.h> // 2
45 */
46
47 // Objbase.h and other files that rely on it bring in [ #define
48 // interface struct ] which can cause problems in a multi-platform
49 // build like Chrome's. #undef-ing it does not work as there are
50 // currently 118 targets that break if we do this, so leaving out of
51 // the precompiled header for now.
52 //#include <commctrl.h> // 2
53 //#include <commdlg.h> // 3
54 //#include <cryptuiapi.h> // 2
55 //#include <Objbase.h> // 2
56 //#include <objidl.h> // 1
57 //#include <ole2.h> // 1
58 //#include <oleacc.h> // 2
59 //#include <oleauto.h> // 1
60 //#include <oleidl.h> // 1
61 //#include <propkey.h> // 2
62 //#include <propvarutil.h> // 2
63 //#include <pstore.h> // 2
64 //#include <shlguid.h> // 1
65 //#include <shlwapi.h> // 1
66 //#include <shobjidl.h> // 4
67 //#include <urlhist.h> // 2
68
69 // Caused other conflicts in addition to the 'interface' issue above.
70 // #include <shlobj.h>
71
16 #include <errno.h> 72 #include <errno.h>
17 #include <fcntl.h> 73 #include <fcntl.h>
18 #include <limits.h> 74 #include <limits.h> // 4
19 #include <math.h> 75 #include <math.h>
20 #include <memory.h> 76 #include <memory.h> // 1
21 #include <signal.h> 77 #include <signal.h>
22 #include <stdarg.h> 78 #include <stdarg.h> // 1
23 #include <stddef.h> 79 #include <stddef.h>
24 #include <stdio.h> 80 #include <stdio.h>
25 #include <stdlib.h> 81 #include <stdlib.h>
26 #include <string.h> 82 #include <string.h>
27 #include <time.h> 83 #include <time.h> // 4
28
29 #if defined(__cplusplus)
30 84
31 #include <algorithm> 85 #include <algorithm>
32 #include <bitset> 86 #include <bitset> // 3
33 #include <cmath> 87 #include <cmath>
34 #include <cstddef> 88 #include <cstddef>
35 #include <cstdio> 89 #include <cstdio> // 3
36 #include <cstdlib> 90 #include <cstdlib> // 2
37 #include <cstring> 91 #include <cstring>
38 #include <deque> 92 #include <deque>
39 #include <fstream> 93 #include <fstream> // 3
40 #include <functional> 94 #include <functional>
41 #include <iomanip> 95 #include <iomanip> // 2
42 #include <iosfwd> 96 #include <iosfwd> // 2
43 #include <iterator> 97 #include <iterator>
44 #include <limits> 98 #include <limits>
45 #include <list> 99 #include <list>
46 #include <map> 100 #include <map>
47 #include <numeric> 101 #include <numeric> // 2
48 #include <ostream> 102 #include <ostream>
49 #include <queue> 103 #include <queue>
50 #include <set> 104 #include <set>
51 #include <sstream> 105 #include <sstream>
52 #include <stack> 106 #include <stack>
53 #include <string> 107 #include <string>
54 #include <utility> 108 #include <utility>
55 #include <vector> 109 #include <vector>
56
57 #endif // __cplusplus
OLDNEW
« no previous file with comments | « build/json_schema_api.gni ('k') | build/toolchain/win/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698