[2603] | 1 | # $Id: ReorderCompilerIncs.kmk 3121 2017-10-31 10:58:59Z bird $
|
---|
| 2 | ## @file
|
---|
| 3 | # kBuild SDK - Pseudo SDK that inserts the compiler includes a bit earlier.
|
---|
| 4 | #
|
---|
| 5 | # Note! This SDK is using a number of internal kBuild variables as well as
|
---|
| 6 | # making assumptions about expansion order and location.
|
---|
| 7 | # Please, do NOT attempt anything like this in your own SDKs!!
|
---|
| 8 | #
|
---|
| 9 |
|
---|
| 10 | #
|
---|
[3121] | 11 | # Copyright (c) 2006-2017 knut st. osmundsen <bird-kBuild-spam-xviiv@anduin.net>
|
---|
[2603] | 12 | #
|
---|
| 13 | # This file is part of kBuild.
|
---|
| 14 | #
|
---|
| 15 | # kBuild is free software; you can redistribute it and/or modify
|
---|
| 16 | # it under the terms of the GNU General Public License as published by
|
---|
| 17 | # the Free Software Foundation; either version 2 of the License, or
|
---|
| 18 | # (at your option) any later version.
|
---|
| 19 | #
|
---|
| 20 | # kBuild is distributed in the hope that it will be useful,
|
---|
| 21 | # but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 22 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
| 23 | # GNU General Public License for more details.
|
---|
| 24 | #
|
---|
| 25 | # You should have received a copy of the GNU General Public License
|
---|
| 26 | # along with kBuild; if not, write to the Free Software
|
---|
| 27 | # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
| 28 | #
|
---|
| 29 | #
|
---|
| 30 | # As a special exception you are granted permission to include this file, via
|
---|
| 31 | # the kmk include directive, as you wish without this in itself causing the
|
---|
| 32 | # resulting makefile, program or whatever to be covered by the GPL license.
|
---|
| 33 | # This exception does not however invalidate any other reasons why the makefile,
|
---|
| 34 | # program, whatever should not be covered the GPL.
|
---|
| 35 | #
|
---|
| 36 | #
|
---|
| 37 |
|
---|
| 38 | SDK_ReorderCompilerIncs := Pseudo SDK that inserts the compiler includes a bit earlier.
|
---|
| 39 |
|
---|
| 40 | FN_SDK_ReorderCompilerIncs_GET_INCS = \
|
---|
| 41 | $(TOOL_$(tool)_$(1)INCS.$(2).$(3).$(5)) \
|
---|
| 42 | $(TOOL_$(tool)_$(1)INCS.$(2).$(3)) \
|
---|
| 43 | $(TOOL_$(tool)_$(1)INCS.$(2).$(5)) \
|
---|
| 44 | $(TOOL_$(tool)_$(1)INCS.$(4)) \
|
---|
| 45 | $(TOOL_$(tool)_$(1)INCS.$(3)) \
|
---|
| 46 | $(TOOL_$(tool)_$(1)INCS.$(2)) \
|
---|
| 47 | $(TOOL_$(tool)_$(1)INCS.$(5)) \
|
---|
| 48 | $(TOOL_$(tool)_$(1)INCS) \
|
---|
| 49 | $(TOOL_$(tool)_INCS.$(2).$(3).$(5)) \
|
---|
| 50 | $(TOOL_$(tool)_INCS.$(2).$(3)) \
|
---|
| 51 | $(TOOL_$(tool)_INCS.$(2).$(5)) \
|
---|
| 52 | $(TOOL_$(tool)_INCS.$(4)) \
|
---|
| 53 | $(TOOL_$(tool)_INCS.$(3)) \
|
---|
| 54 | $(TOOL_$(tool)_INCS.$(2)) \
|
---|
| 55 | $(TOOL_$(tool)_INCS.$(5)) \
|
---|
| 56 | $(TOOL_$(tool)_INCS) \
|
---|
| 57 |
|
---|
| 58 | $(foreach os,$(KBUILD_OSES),$(foreach arch,$(KBUILD_ARCHES),$(foreach cat,$(KBUILD_COMPILE_CATEGTORIES) \
|
---|
| 59 | ,$(eval SDK_ReorderCompilerIncs_$(cat)INCS.$(os).$(arch) = \
|
---|
| 60 | $$(call FN_SDK_ReorderCompilerIncs_GET_INCS,CXX,win,amd64,$$(bld_trg_cpu),$$(bld_type))\
|
---|
| 61 | )\
|
---|
| 62 | )))
|
---|
| 63 |
|
---|