source: trunk/kBuild/sdks/WINPSDKINCS.kmk@ 3608

Last change on this file since 3608 was 3418, checked in by bird, 5 years ago

sdks/*,units/qt3.kmk: s/PATH_DEVTOOLS/KBUILD_DEVTOOLS/g

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: WINPSDKINCS.kmk 3418 2020-08-21 11:02:13Z bird $
2## @file
3# kBuild SDK - The Windows Platform SDK, targeting (KBUILD_TARGET) but
4# without any libraries or LIBPATH properties.
5# Basically for finding specstrings.h when using the DDK.
6#
7
8#
9# Copyright (c) 2006-2017 knut st. osmundsen <bird-kBuild-spam-xviiv@anduin.net>
10#
11# This file is part of kBuild.
12#
13# kBuild is free software; you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation; either version 2 of the License, or
16# (at your option) any later version.
17#
18# kBuild is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with kBuild; if not, write to the Free Software
25# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26#
27#
28# As a special exception you are granted permission to include this file, via
29# the kmk include directive, as you wish without this in itself causing the
30# resulting makefile, program or whatever to be covered by the GPL license.
31# This exception does not however invalidate any other reasons why the makefile,
32# program, whatever should not be covered the GPL.
33#
34#
35
36SDK_WINPSDKINCS := The Windows Platform SDK, targeting (KBUILD_TARGET) but \
37 without any library or LIBPATH properties. \
38 Basically for finding specstrings.h when using the DDK.
39
40# SDK Specific Properties
41ifndef PATH_SDK_WINPSDKINCS
42 ifdef PATH_SDK_WINPSDK
43 PATH_SDK_WINPSDKINCS := $(PATH_SDK_WINPSDK)
44 else
45 PATH_SDK_WINPSDKINCS := $(wildcard $(KBUILD_DEVTOOLS_BLD)/sdk/2*)
46 ifeq ($(PATH_SDK_WINPSDKINCS),)
47 PATH_SDK_WINPSDKINCS := $(wildcard $(KBUILD_DEVTOOLS_TRG)/sdk/2*)
48 endif
49 ifeq ($(PATH_SDK_WINPSDKINCS),)
50 PATH_SDK_WINPSDKINCS := $(wildcard $(KBUILD_DEVTOOLS)/win.x86/sdk/2*)
51 endif
52 ifeq ($(PATH_SDK_WINPSDKINCS),)
53 PATH_SDK_WINPSDKINCS := $(wildcard $(KBUILD_DEVTOOLS)/x86.win32/sdk/2*)
54 endif
55 ifeq ($(PATH_SDK_WINPSDKINCS),)
56 PATH_SDK_WINPSDKINCS := $(wildcard $(KBUILD_DEVTOOLS)/win.amd64/sdk/2*)
57 endif
58 ifneq ($(PATH_SDK_WINPSDKINCS),)
59 PATH_SDK_WINPSDKINCS := $(lastword $(sort $(PATH_SDK_WINPSDKINCS)))
60 else
61 $(warning kBuild: PATH_SDK_WINPSDKINCS couldn't be determined!)
62 PATH_SDK_WINPSDKINCS := $(KBUILD_DEVTOOLS_BLD)/sdk/not/found
63 endif
64 endif
65else
66 PATH_SDK_WINPSDKINCS := $(PATH_SDK_WINPSDKINCS)
67endif
68ifndef PATH_SDK_WINPSDKINCS_INC
69PATH_SDK_WINPSDKINCS_INC := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ii][Nn][Cc][Ll][Uu][Dd][Ee]) $(PATH_SDK_WINPSDKINCS)/Include)
70endif
71
72ifndef PATH_SDK_WINPSDKINCS_LIB.x86
73PATH_SDK_WINPSDKINCS_LIB.x86 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ll][Ii][Bb]) $(PATH_SDK_WINPSDKINCS)/Lib)
74endif
75ifndef PATH_SDK_WINPSDKINCS_LIB.amd64
76PATH_SDK_WINPSDKINCS_LIB.amd64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Ll][Ii][Bb]/[Aa][Mm][Dd]64) $(PATH_SDK_WINPSDKINCS)/Lib/AMD64)
77endif
78PATH_SDK_WINPSDKINCS_LIB ?= $(PATH_SDK_WINPSDKINCS_LIB.$(KBUILD_TARGET_ARCH))
79
80ifndef PATH_SDK_WINPSDKINCS_BIN
81PATH_SDK_WINPSDKINCS_BIN := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS)/[Bb][Ii][Nn]) $(PATH_SDK_WINPSDKINCS)/Bin)
82endif
83ifndef PATH_SDK_WINPSDKINCS_BIN_AMD64
84PATH_SDK_WINPSDKINCS_BIN_AMD64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS_BIN)/[Ww][Ii][Nn]64/[Xx]86/[Aa][Mm][Dd]64) $(PATH_SDK_WINPSDKINCS_BIN)/win64/AMD64)
85endif
86ifndef PATH_SDK_WINPSDKINCS_BIN_IA64
87PATH_SDK_WINPSDKINCS_BIN_IA64 := $(firstword $(wildcard $(PATH_SDK_WINPSDKINCS_BIN)/[Ww][Ii][Nn]64) $(PATH_SDK_WINPSDKINCS_BIN)/win64)
88endif
89
90
91# General Properties used by kBuild
92SDK_WINPSDKINCS_INCS ?= $(PATH_SDK_WINPSDKINCS_INC)
93
Note: See TracBrowser for help on using the repository browser.