From 032c0a09296c62f82789cbba9d52d7e077eaef2c Mon Sep 17 00:00:00 2001 From: prr Date: Wed, 19 May 2010 09:45:05 -0700 Subject: [PATCH] 6903970: VS2008/VS2010 build fails in make/sun/jkernel because of "afxres.h" missing Reviewed-by: ohair, art --- make/common/shared/Defs-windows.gmk | 12 ++++++++---- make/sun/jkernel/Makefile | 7 +++++++ 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/make/common/shared/Defs-windows.gmk b/make/common/shared/Defs-windows.gmk index c632f3d15..13c3964ea 100644 --- a/make/common/shared/Defs-windows.gmk +++ b/make/common/shared/Defs-windows.gmk @@ -287,11 +287,15 @@ ifeq ($(ARCH_DATA_MODEL), 32) # Assume VS100, then VS90, then VS80, then VS71 _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC100.CRT) ifeq ($(_redist_sdk),) - _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC90.CRT) - ifeq ($(_redist_sdk),) - _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC80.CRT) + ifneq ($(VS100COMNTOOLS),) + _redist_sdk :=c:/windows/system32 + else + _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC90.CRT) ifeq ($(_redist_sdk),) - _redist_sdk :=$(call FullPath,$(_msvc_dir)/../SDK/v1.1/Bin) + _redist_sdk :=$(call FullPath,$(_msvc_dir)/redist/x86/Microsoft.VC80.CRT) + ifeq ($(_redist_sdk),) + _redist_sdk :=$(call FullPath,$(_msvc_dir)/../SDK/v1.1/Bin) + endif endif endif endif diff --git a/make/sun/jkernel/Makefile b/make/sun/jkernel/Makefile index 7a7a6a364..74643c135 100644 --- a/make/sun/jkernel/Makefile +++ b/make/sun/jkernel/Makefile @@ -52,6 +52,11 @@ ifeq ($(ARCH_DATA_MODEL), 32) ifeq ($(PLATFORM), windows) +# If this is the VS Express compiler it will lack vc/atlmfc/ +ATL_MFC_DIR :=$(call DirExists,$(COMPILER_PATH)/../atlmfc,,) + +ifneq ($(ATL_MFC_DIR),) + include FILES_c_windows.gmk vpath %.cpp $(PLATFORM_SRC)/native/sun/jkernel @@ -67,6 +72,8 @@ endif endif +endif + # # Resources # -- GitLab