Build: Add precompiled headers for `bf_compositor`
With this change, compilation saw a 2.4x improvement. This can be combined with unity build to give an overall 4x improvement Depends on D13797 Reviewed By: LazyDodo Differential Revision: https://developer.blender.org/D13798
This commit is contained in:
parent
bdf99a5119
commit
48ff9b57f8
|
@ -645,6 +645,10 @@ endif()
|
|||
|
||||
blender_add_lib(bf_compositor "${SRC}" "${INC}" "${INC_SYS}" "${LIB}")
|
||||
|
||||
if(COMMAND target_precompile_headers)
|
||||
target_precompile_headers(bf_compositor PRIVATE COM_precomp.h)
|
||||
endif()
|
||||
|
||||
if(CXX_WARN_NO_SUGGEST_OVERRIDE)
|
||||
target_compile_options(bf_compositor PRIVATE "-Wsuggest-override")
|
||||
endif()
|
||||
|
|
|
@ -0,0 +1,33 @@
|
|||
/* Pre-compiled headers, see: D13797. */
|
||||
|
||||
#include <cfloat>
|
||||
#include <climits>
|
||||
#include <cmath>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
#include <functional>
|
||||
#include <iostream>
|
||||
#include <iterator>
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <ostream>
|
||||
#include <set>
|
||||
#include <string>
|
||||
|
||||
#include "COM_ConstantOperation.h"
|
||||
#include "COM_ConvertOperation.h"
|
||||
#include "COM_Debug.h"
|
||||
#include "COM_Enums.h"
|
||||
#include "COM_ExecutionGroup.h"
|
||||
#include "COM_ExecutionSystem.h"
|
||||
#include "COM_MultiThreadedOperation.h"
|
||||
#include "COM_Node.h"
|
||||
#include "COM_NodeOperation.h"
|
||||
#include "COM_OpenCLDevice.h"
|
||||
#include "COM_SetAlphaMultiplyOperation.h"
|
||||
#include "COM_SetColorOperation.h"
|
||||
#include "COM_SetSamplerOperation.h"
|
||||
#include "COM_SetValueOperation.h"
|
||||
#include "COM_SetVectorOperation.h"
|
||||
#include "COM_defines.h"
|
Loading…
Reference in New Issue