blob: 73dc57ff257183ef3d03bcbe2493aac083568bff [file] [log] [blame]
[email protected]99ff9932011-09-07 14:14:541// 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 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. It may be
13// possible to tweak the speed of the build by commenting out or
14// removing some of the less 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#include <Windows.h>
[email protected]1fdb136a2011-09-14 10:55:1825#include <dwmapi.h>
26#include <shellapi.h>
27#include <wincrypt.h> // 4
28#include <wtypes.h> // 2
[email protected]99ff9932011-09-07 14:14:5429
30// TODO(joi): Defines in atlbase.h cause conflicts; need to figure out
31// if/how this family of headers can be included in the PCH; several
32// of them are used quite frequently.
33/*
34#include <atlbase.h>
35#include <atlapp.h>
36#include <atlcom.h>
37#include <atlcrack.h> // 2
38#include <atlctrls.h> // 2
39#include <atlmisc.h> // 2
40#include <atlsafe.h> // 1
41#include <atltheme.h> // 1
42#include <atlwin.h> // 2
43*/
44
[email protected]1fdb136a2011-09-14 10:55:1845// TODO(joi): Objbase.h and other files that rely on it bring in
46// [ #define interface struct ] which can cause problems in a
47// multi-platform build like Chrome's. Tried #undef-ing it, but
48// there are currently 118 targets that break if we do this, so
49// leaving out of the precompiled header for now.
50//#include <commctrl.h> // 2
51//#include <commdlg.h> // 3
52//#include <cryptuiapi.h> // 2
53//#include <Objbase.h> // 2
54//#include <objidl.h> // 1
55//#include <ole2.h> // 1
56//#include <oleacc.h> // 2
57//#include <oleauto.h> // 1
58//#include <oleidl.h> // 1
59//#include <propkey.h> // 2
60//#include <propvarutil.h> // 2
61//#include <pstore.h> // 2
62//#include <shlguid.h> // 1
63//#include <shlwapi.h> // 1
64//#include <shobjidl.h> // 4
65//#include <urlhist.h> // 2
66
67// TODO(joi): Caused other conflicts in addition to the 'interface' issue
68// above, see if they can be resolved.
69//#include <shlobj.h>
[email protected]99ff9932011-09-07 14:14:5470
71#include <errno.h>
72#include <fcntl.h>
73#include <limits.h> // 4
74#include <math.h>
75#include <memory.h> // 1
76#include <signal.h>
77#include <stdarg.h> // 1
78#include <stddef.h>
79#include <stdio.h>
80#include <stdlib.h>
81#include <string.h>
82#include <time.h> // 4
83
84#include <algorithm>
85#include <bitset> // 3
86#include <cmath>
87#include <cstddef>
88#include <cstdio> // 3
89#include <cstdlib> // 2
90#include <cstring>
91#include <deque>
92#include <fstream> // 3
93#include <functional>
94#include <iomanip> // 2
95#include <iosfwd> // 2
96#include <iterator>
97#include <limits>
98#include <list>
99#include <map>
100#include <numeric> // 2
101#include <ostream>
102#include <queue>
103#include <set>
104#include <sstream>
105#include <stack>
106#include <string>
107#include <utility>
108#include <vector>