source: trunk/kBuild/sdks/DXSDK.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: 2.4 KB
Line 
1# $Id: DXSDK.kmk 3418 2020-08-21 11:02:13Z bird $
2## @file
3# kBuild SDK - The Microsoft Direct X SDK, targeting $(KBUILD_TARGET).
4#
5
6#
7# Copyright (c) 2006-2017 knut st. osmundsen <bird-kBuild-spam-xviiv@anduin.net>
8#
9# This file is part of kBuild.
10#
11# kBuild is free software; you can redistribute it and/or modify
12# it under the terms of the GNU General Public License as published by
13# the Free Software Foundation; either version 2 of the License, or
14# (at your option) any later version.
15#
16# kBuild is distributed in the hope that it will be useful,
17# but WITHOUT ANY WARRANTY; without even the implied warranty of
18# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19# GNU General Public License for more details.
20#
21# You should have received a copy of the GNU General Public License
22# along with kBuild; if not, write to the Free Software
23# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24#
25#
26# As a special exception you are granted permission to include this file, via
27# the kmk include directive, as you wish without this in itself causing the
28# resulting makefile, program or whatever to be covered by the GPL license.
29# This exception does not however invalidate any other reasons why the makefile,
30# program, whatever should not be covered the GPL.
31#
32#
33
34SDK_DXSDK := The Microsoft Direct X SDK, targeting $(KBUILD_TARGET)
35
36# SDK Specific Properties
37ifndef PATH_SDK_DXSDK
38 ## @todo which order is logical here, BLD and then TRG or the other way?
39 PATH_SDK_DXSDK := $(sort $(wildcard $(KBUILD_DEVTOOLS_BLD)/dxsdk/2*))
40 ifeq ($(PATH_SDK_DXSDK),)
41 PATH_SDK_DXSDK := $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/dxsdk/2*))
42 endif
43 ifeq ($(PATH_SDK_DXSDK),)
44 PATH_SDK_DXSDK := $(sort $(wildcard $(KBUILD_DEVTOOLS)/win.x86/dxsdk/2*))
45 endif
46 ifeq ($(PATH_SDK_DXSDK),)
47 PATH_SDK_DXSDK := $(sort $(wildcard $(KBUILD_DEVTOOLS)/win.amd64/dxsdk/2*))
48 endif
49 ifneq ($(PATH_SDK_DXSDK),)
50 PATH_SDK_DXSDK := $(call lastword,$(PATH_SDK_DXSDK))
51 else
52 $(warning kBuild: PATH_SDK_DXSDK couldn't be determined!)
53 PATH_SDK_DXSDK := $(KBUILD_DEVTOOLS_TRG)/dxsdk/not/found
54 endif
55else
56 # Resolve any fancy stuff once and for all.
57 PATH_SDK_DXSDK := $(PATH_SDK_DXSDK)
58endif
59PATH_SDK_DXSDK_INC ?= $(PATH_SDK_DXSDK)/Include
60PATH_SDK_DXSDK_LIB.x86 ?= $(PATH_SDK_DXSDK)/Lib/x86
61PATH_SDK_DXSDK_LIB.amd64 ?= $(PATH_SDK_DXSDK)/Lib/x64
62PATH_SDK_DXSDK_LIB ?= $(PATH_SDK_DXSDK_LIB.$(KBUILD_TARGET_ARCH))
63
64# General Properties used by kBuild
65SDK_DXSDK_INCS ?= $(PATH_SDK_DXSDK_INC)
66SDK_DXSDK_LIBPATH ?= $(PATH_SDK_DXSDK_LIB)
67
Note: See TracBrowser for help on using the repository browser.