// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Precompiled header for Chromium project on Windows, not used by // other build configurations. Using precompiled headers speeds the // build up significantly, around 1/4th on VS 2010 on an HP Z600 with 12 // GB of memory. // // Numeric comments beside includes are the number of times they were // included under src/chrome/browser on 2011/8/20, which was used as a // baseline for deciding what to include in the PCH. It may be // possible to tweak the speed of the build by commenting out or // removing some of the less frequently used headers. #if defined(BUILD_PRECOMPILE_H_) #error You shouldn't include the precompiled header file more than once. #endif #define BUILD_PRECOMPILE_H_ // The Windows header needs to come before almost all the other // Windows-specific headers. #include #include #include #include // 4 #include // 2 // TODO(joi): Defines in atlbase.h cause conflicts; need to figure out // if/how this family of headers can be included in the PCH; several // of them are used quite frequently. /* #include #include #include #include // 2 #include // 2 #include // 2 #include // 1 #include // 1 #include // 2 */ // TODO(joi): Objbase.h and other files that rely on it bring in // [ #define interface struct ] which can cause problems in a // multi-platform build like Chrome's. Tried #undef-ing it, but // there are currently 118 targets that break if we do this, so // leaving out of the precompiled header for now. //#include // 2 //#include // 3 //#include // 2 //#include // 2 //#include // 1 //#include // 1 //#include // 2 //#include // 1 //#include // 1 //#include // 2 //#include // 2 //#include // 2 //#include // 1 //#include // 1 //#include // 4 //#include // 2 // TODO(joi): Caused other conflicts in addition to the 'interface' issue // above, see if they can be resolved. //#include #include #include #include // 4 #include #include // 1 #include #include // 1 #include #include #include #include #include // 4 #include #include // 3 #include #include #include // 3 #include // 2 #include #include #include // 3 #include #include // 2 #include // 2 #include #include #include #include #include // 2 #include #include #include #include #include #include #include #include