OLD | NEW |
---|---|
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 // Precompiled header for Chromium project on Windows, not used by | 5 // Precompiled header for Chromium project on Windows, not used by |
6 // other build configurations. Using precompiled headers speeds the | 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 | 7 // build up significantly, around 1/4th on VS 2010 on an HP Z600 with 12 |
8 // GB of memory. | 8 // GB of memory. |
9 // | 9 // |
10 // Numeric comments beside includes are the number of times they were | 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 | 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 | 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 | 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 | 14 // be possible to tweak the speed of the build by commenting out or |
15 // removing some of the less frequently used headers. | 15 // removing some of the less frequently used headers. |
16 | 16 |
17 #if defined(BUILD_PRECOMPILE_H_) | 17 #if defined(BUILD_PRECOMPILE_H_) |
18 #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. |
19 #endif | 19 #endif |
20 | 20 |
21 #define BUILD_PRECOMPILE_H_ | 21 #define BUILD_PRECOMPILE_H_ |
22 | 22 |
23 #define _USE_MATH_DEFINES | 23 #define _USE_MATH_DEFINES |
24 | 24 |
25 // The Windows header needs to come before almost all the other | 25 // The Windows header needs to come before almost all the other |
26 // Windows-specific headers. | 26 // Windows-specific headers. |
27 #include <Windows.h> | 27 #include <Windows.h> |
28 #include <dwmapi.h> | 28 #include <dwmapi.h> |
29 #include <shellapi.h> | 29 #include <shellapi.h> |
30 #include <wincrypt.h> // 4 | |
scottmg
2014/11/19 19:42:42
should it be replaced by crypto/wincrypt_shim.h in
| |
31 #include <wtypes.h> // 2 | 30 #include <wtypes.h> // 2 |
32 | 31 |
33 // Defines in atlbase.h cause conflicts; if we could figure out how | 32 // Defines in atlbase.h cause conflicts; if we could figure out how |
34 // this family of headers can be included in the PCH, it might speed | 33 // this family of headers can be included in the PCH, it might speed |
35 // up the build as several of them are used frequently. | 34 // up the build as several of them are used frequently. |
36 /* | 35 /* |
37 #include <atlbase.h> | 36 #include <atlbase.h> |
38 #include <atlapp.h> | 37 #include <atlapp.h> |
39 #include <atlcom.h> | 38 #include <atlcom.h> |
40 #include <atlcrack.h> // 2 | 39 #include <atlcrack.h> // 2 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
101 #include <map> | 100 #include <map> |
102 #include <numeric> // 2 | 101 #include <numeric> // 2 |
103 #include <ostream> | 102 #include <ostream> |
104 #include <queue> | 103 #include <queue> |
105 #include <set> | 104 #include <set> |
106 #include <sstream> | 105 #include <sstream> |
107 #include <stack> | 106 #include <stack> |
108 #include <string> | 107 #include <string> |
109 #include <utility> | 108 #include <utility> |
110 #include <vector> | 109 #include <vector> |
OLD | NEW |