Changeset 3250 for trunk/kBuild/units
- Timestamp:
- Dec 28, 2018, 11:43:52 PM (7 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/units/gccprecomp.kmk
r3247 r3250 1 1 # $Id$ 2 2 ## @file 3 # kBuild Unit - Target Level Precompiled Headers for Visual C++.3 # kBuild Unit - Target Level Precompiled Headers for GNU GCC. 4 4 # 5 5 … … 33 33 34 34 35 UNIT_ vccprecomp = Target level precompiled Headers for Visual C++35 UNIT_gccprecomp = Target level precompiled Headers for Visual C++ 36 36 37 37 # 38 38 # Early target processing pass #1. 39 39 # 40 # This set the internal _VCC_PCH_FILE and VCC_COMMON_OBJ_PDB properties, 41 # which will be picked up by the VCCxxx tool. 40 # This sets $(target)_1_GCC_PCH_DIR as the include directory for the precompiled 41 # header, adding it to BLDDIRS to get a mkdir rule for it, and then calculates the 42 # .gch name and stores that in $(target)_1_GCC_PCH_FILE for compile rule dependencies. 42 43 # 43 define def_unit_vccprecomp_target_pre 44 $(target)_1_VCC_PCH_FILE := $(outbase)-pch.pch 45 $(target)_1_VCC_COMMON_OBJ_PDB := $(outbase)-common-obj.pdb 44 define def_unit_gccprecomp_target_pre 45 $(target)_BLDDIRS += $($(target)_0_OUTDIR)/pch/ 46 $(target)_1_GCC_PCH_DIR := $($(target)_0_OUTDIR)/pch/ 47 $(target)_1_GCC_PCH_FILE := $($(target)_0_OUTDIR)/pch/$(notdir $($(target)_PCH_HDR)).gch 46 48 endef 47 49 … … 49 51 # Early target processing pass #2. 50 52 # 51 # This sets up a rule for creating the . pch file after qt5 and similar units53 # This sets up a rule for creating the .gch file after qt5 and similar units 52 54 # are done modifying INCS, DEFS and company. The 'tool' variable is defined by 53 55 # footer-pass2-compiling-targets.kmk and is really the LD tool, but that'll 54 # have to do for now. The '-PCH' variant of the VCCtool, is defined together56 # have to do for now. The '-PCH' variant of the GCC/LLVM tool, is defined together 55 57 # with $(tool) and allow us to bypass the options and dependencies triggered 56 58 # by _1_VCC_PCH_FILE, _1_VCC_COMMON_OBJ_PDB and _PCH_HDR, and also make sure we 57 59 # don't get circular dependencies by way of kDepObj and the debug info. 58 60 # 59 define def_unit_ vccprecomp_target_pre_261 define def_unit_gccprecomp_target_pre_2 60 62 local source := $($(target)_PCH_HDR) 61 $(source)_TOOL := $(tool)-PCH62 63 local suff := $(suffix $(source)) 63 local type := CXX64 local type := PCH 64 65 $(kb-src-one 2) 65 66 endef
Note:
See TracChangeset
for help on using the changeset viewer.