media/webrtc/trunk/build/precompile.h

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

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

mercurial