dsui.inc
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 2k
Category:

Windows Kernel

Development Platform:

Visual C++

  1. #
  2. # DSUI project global sources information
  3. #
  4. # This sets the include, librarys and a set of compile time flags
  5. # that are project wide.  A majority of it is to cope with
  6. # the cross platform (win95,98, NT4 and NT5 nature of the product).
  7. #
  8. DSUI_DIR=   $(BASEDIR)privateshellextdsui
  9. INCLUDES=   ..;                             
  10.             ....inc;                      
  11.             $(BASEDIR)privateinc;         
  12.             $(BASEDIR)privatewindowsinc; 
  13.             $(BASEDIR)privateshellinc;
  14. !IFNDEF MSC_WARNING_LEVEL
  15. MSC_WARNING_LEVEL=/W3
  16. !ENDIF
  17. MSC_WARNING_LEVEL=$(MSC_WARNING_LEVEL) /WX
  18. USE_ATL=1
  19. USE_NOLIBS=1
  20. USE_MSVCRT=1
  21. USE_NATIVE_EH=1
  22. UMTYPE=windows
  23. DLLENTRY=_DllMainCRTStartup
  24. #
  25. # Platform specific build features
  26. #
  27. !IF "$(PLATFORM)"=="WINNT"
  28. REGISTER_NSE=1
  29. DELEGATE=0
  30. DOWNLEVEL_SHELL = 0
  31. C_DEFINES=$(C_DEFINES) -DUNICODE
  32. LIBRARY_PLATFORM_PATH=$(BASEDIR)publicsdklib
  33. !ELSE
  34. REGISTER_NSE=0
  35. DELEGATE=0
  36. DOWNLEVEL_SHELL = 1
  37. CHICAGO_PRODUCT = 1
  38. LIBRARY_PLATFORM_PATH = $(BASEDIR)publicsdklibchicago
  39. ALT_PROJECT_TARGET = win95
  40. SUBSYSTEM_VERSION = 4.00
  41. !ENDIF
  42. #
  43. # We need new comctl32 features, makefile.def doesn't define this
  44. # currently so lets ensure that it is what we want
  45. #
  46. !if !defined(WIN32_WIN95_VERSION)
  47. WIN32_WIN95_VERSION=0x0400
  48. !endif
  49. !if !defined(WIN32_WINNT_VERSION)
  50. WIN32_WINNT_VERSION=0x500
  51. !endif
  52. !if !defined(WIN32_IE_VERSION)
  53. WIN32_IE_VERSION=0x0500
  54. !endif
  55. #
  56. # For the downlevel builds we need to build our private shell functions
  57. # along with linking to different shell32.lib files.
  58. #
  59. # For NT4:      shell32.nt4
  60. # For Win9x:    shell32.w95
  61. #
  62. # When building for NT5 we can just assume the features we want are exported
  63. # from the existing shell32.dll.
  64. #
  65. C_DEFINES=  $(C_DEFINES) -DDOWNLEVEL_SHELL=$(DOWNLEVEL_SHELL) -DDELEGATE=$(DELEGATE) -DREGISTER_NSE=$(REGISTER_NSE)
  66. RC_DEFINES= $(RC_DEFINES) /DDOWNLEVEL_SHELL=$(DOWNLEVEL_SHELL)
  67. !if "$(DOWNLEVEL_SHELL)"=="1"
  68. SHELL_LIBS= $(BASEDIR)privatelibchicago*SHELL32.W95
  69. !else
  70. SHELL_LIBS= $(LIBRARY_PLATFORM_PATH)*shell32p.lib   
  71.             $(LIBRARY_PLATFORM_PATH)*user32p.lib    
  72. #
  73. # On NT5 we use the linkers DELAYLOAD switch to reduce working set,
  74. # to safely use this we also link to shlwapis delay load helper function
  75. # that handles any failures that may occur during fix up of these exports.
  76. #
  77. #DELAYLOAD=  activeds.dll
  78. !endif