Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. 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 // Precompiled header for Chromium project on Windows, not used by | |
| 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 are | |
| 11 // included under src/chrome/browser, which was used as a baseline for | |
|
jeanluc1
2011/08/23 14:47:27
I would specify either a time or a version number,
Jói
2011/08/24 13:56:33
Done.
| |
| 12 // deciding what to include in the PCH. It may be possible to tweak the | |
| 13 // speed of the build by commenting out or removing some of the less | |
| 14 // frequently used headers. | |
| 15 | |
| 16 #if defined(BUILD_PRECOMPILE_H_) | |
| 17 #error You shouldn't include the precompiled header file more than once. | |
| 18 #endif | |
| 19 | |
| 20 #define BUILD_PRECOMPILE_H_ | |
| 21 | |
| 22 // The Windows header needs to come before almost all the other | |
| 23 // Windows-specific headers. | |
| 24 #define STRICT | |
| 25 #include <Windows.h> | |
| 26 | |
| 27 // TODO(joi): Defines in atlbase.h cause conflicts; need to figure out | |
| 28 // if/how this family of headers can be included in the PCH; several | |
| 29 // of them are used quite frequently. | |
| 30 /* | |
| 31 #include <atlbase.h> | |
| 32 #include <atlapp.h> | |
| 33 #include <atlcom.h> | |
| 34 #include <atlcrack.h> // 2 | |
| 35 #include <atlctrls.h> // 2 | |
| 36 #include <atlmisc.h> // 2 | |
| 37 #include <atlsafe.h> // 1 | |
| 38 #include <atltheme.h> // 1 | |
| 39 #include <atlwin.h> // 2 | |
| 40 */ | |
| 41 | |
| 42 #include <commctrl.h> // 2 | |
| 43 #include <commdlg.h> // 3 | |
| 44 #include <cryptuiapi.h> // 2 | |
| 45 #include <dwmapi.h> | |
| 46 #include <Objbase.h> // 2 | |
| 47 #include <objidl.h> // 1 | |
| 48 #include <ole2.h> // 1 | |
| 49 #include <oleacc.h> // 2 | |
| 50 #include <oleauto.h> // 1 | |
| 51 #include <oleidl.h> // 1 | |
| 52 #include <propkey.h> // 2 | |
| 53 #include <propvarutil.h> // 2 | |
| 54 #include <pstore.h> // 2 | |
| 55 #include <shellapi.h> | |
| 56 #include <shlguid.h> // 1 | |
| 57 //#include <shlobj.h> TODO(joi): Caused conflicts, see if they can be resolved. | |
| 58 #include <shlwapi.h> // 1 | |
| 59 #include <shobjidl.h> // 4 | |
| 60 #include <urlhist.h> // 2 | |
| 61 #include <wincrypt.h> // 4 | |
| 62 #include <wtypes.h> // 2 | |
| 63 | |
| 64 #include <errno.h> | |
| 65 #include <fcntl.h> | |
| 66 #include <limits.h> // 4 | |
| 67 #include <math.h> | |
| 68 #include <memory.h> // 1 | |
| 69 #include <signal.h> | |
| 70 #include <stdarg.h> // 1 | |
| 71 #include <stddef.h> | |
| 72 #include <stdio.h> | |
| 73 #include <stdlib.h> | |
| 74 #include <string.h> | |
| 75 #include <time.h> // 4 | |
| 76 | |
| 77 #include <algorithm> | |
| 78 #include <bitset> // 3 | |
| 79 #include <cmath> | |
| 80 #include <cstddef> | |
| 81 #include <cstdio> // 3 | |
| 82 #include <cstdlib> // 2 | |
| 83 #include <cstring> | |
| 84 #include <deque> | |
| 85 #include <fstream> // 3 | |
| 86 #include <functional> | |
| 87 #include <iomanip> // 2 | |
| 88 #include <iosfwd> // 2 | |
| 89 #include <iostream> // 1 | |
| 90 #include <iterator> | |
| 91 #include <limits> | |
| 92 #include <list> | |
| 93 #include <map> | |
| 94 #include <numeric> // 2 | |
| 95 #include <ostream> | |
| 96 #include <queue> | |
| 97 #include <set> | |
| 98 #include <sstream> | |
| 99 #include <stack> | |
| 100 #include <string> | |
| 101 #include <utility> | |
| 102 #include <vector> | |
| OLD | NEW |