make/windows/build.make

Print this page
rev 4773 : 8005849: JEP 167: Event-Based JVM Tracing
Reviewed-by: acorn, coleenp, sla
Contributed-by: Karen Kinnear <karen.kinnear@oracle.com>, Bengt Rutisson <bengt.rutisson@oracle.com>, Calvin Cheung <calvin.cheung@oracle.com>, Erik Gahlin <erik.gahlin@oracle.com>, Erik Helin <erik.helin@oracle.com>, Jesper Wilhelmsson <jesper.wilhelmsson@oracle.com>, Keith McGuigan <keith.mcguigan@oracle.com>, Mattias Tobiasson <mattias.tobiasson@oracle.com>, Markus Gronlund <markus.gronlund@oracle.com>, Mikael Auno <mikael.auno@oracle.com>, Nils Eliasson <nils.eliasson@oracle.com>, Nils Loodin <nils.loodin@oracle.com>, Rickard Backman <rickard.backman@oracle.com>, Staffan Larsen <staffan.larsen@oracle.com>, Stefan Karlsson <stefan.karlsson@oracle.com>, Yekaterina Kantserova <yekaterina.kantserova@oracle.com>


 179 # Hotspot Express VM FileVersion:
 180 # 10.0-b<yz> will have DLL version 10.0.0.yz (need 4 numbers).
 181 #
 182 # HS_* variables are defined in make/hotspot_version
 183 #
 184 HS_VER=$(HS_MAJOR_VER),$(HS_MINOR_VER),0,$(HS_BUILD_NUMBER)
 185 HS_DOTVER=$(HS_MAJOR_VER).$(HS_MINOR_VER).0.$(HS_BUILD_NUMBER)
 186 
 187 !if "$(HOTSPOT_RELEASE_VERSION)" == ""
 188 HOTSPOT_RELEASE_VERSION=$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)
 189 !endif
 190 
 191 !if "$(HOTSPOT_BUILD_VERSION)" == ""
 192 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
 193 !else
 194 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
 195 !endif
 196 
 197 # End VERSIONINFO parameters
 198 






 199 
 200 # We don't support SA on ia64, and we can't
 201 # build it if we are using a version of Vis Studio
 202 # older than .Net 2003.
 203 # SA_INCLUDE and SA_LIB are hold-overs from a previous
 204 # implementation in which we could build SA using
 205 # Debugging Tools For Windows, in which the .h/.lib files
 206 # and the .dlls are in different places than
 207 # they are for Vis Studio .Net 2003.
 208 # If that code ever needs to be resurrected, these vars
 209 # can be set here.  They are used in makefiles/sa.make.
 210 
 211 checkSA::
 212 
 213 !if "$(BUILD_WIN_SA)" != "1"
 214 checkSA::
 215         @echo     Not building SA:  BUILD_WIN_SA != 1
 216 
 217 !elseif "$(ARCH)" == "ia64"
 218 BUILD_WIN_SA = 0


 256         @ cd ..
 257         @ echo;
 258 
 259 clean: checkVariant
 260         - rm -r -f $(variantDir)
 261 
 262 $(variantDir):
 263         mkdir $(variantDir)
 264 
 265 $(variantDir)\local.make: checks
 266         @ echo # Generated file                                 >  $@
 267         @ echo Variant=$(realVariant)                           >> $@
 268         @ echo WorkSpace=$(WorkSpace)                           >> $@
 269         @ echo BootStrapDir=$(BootStrapDir)                     >> $@
 270         @ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME)    >> $@
 271         @ echo HS_VER=$(HS_VER)                                 >> $@
 272         @ echo HS_DOTVER=$(HS_DOTVER)                           >> $@
 273         @ echo HS_COMPANY=$(COMPANY_NAME)                       >> $@
 274         @ echo HS_FILEDESC=$(HS_FILEDESC)                       >> $@
 275         @ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)           >> $@

 276         @ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT)             >> $@
 277         @ echo HS_NAME=$(PRODUCT_NAME) $(JDK_MKTG_VERSION)      >> $@
 278         @ echo HS_BUILD_VER=$(HS_BUILD_VER)                     >> $@
 279         @ echo BUILD_WIN_SA=$(BUILD_WIN_SA)                     >> $@
 280         @ echo SA_BUILD_VERSION=$(HS_BUILD_VER)                 >> $@
 281         @ echo SA_INCLUDE=$(SA_INCLUDE)                         >> $@
 282         @ echo SA_LIB=$(SA_LIB)                                 >> $@
 283         @ echo JDK_VER=$(JDK_VER)                               >> $@
 284         @ echo JDK_DOTVER=$(JDK_DOTVER)                         >> $@
 285         @ echo JRE_RELEASE_VER=$(JRE_RELEASE_VER)               >> $@
 286         @ echo BUILDARCH=$(BUILDARCH)                           >> $@
 287         @ echo Platform_arch=$(Platform_arch)                   >> $@
 288         @ echo Platform_arch_model=$(Platform_arch_model)       >> $@
 289         @ echo CXX=$(CXX)                                       >> $@
 290         @ echo LD=$(LD)                                         >> $@
 291         @ echo MT=$(MT)                                         >> $@
 292         @ echo RC=$(RC)                                         >> $@
 293         @ sh $(WorkSpace)/make/windows/get_msc_ver.sh           >> $@
 294         @ if "$(ENABLE_FULL_DEBUG_SYMBOLS)" NEQ "" echo ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) >> $@
 295         @ if "$(ZIP_DEBUGINFO_FILES)" NEQ "" echo ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) >> $@


 179 # Hotspot Express VM FileVersion:
 180 # 10.0-b<yz> will have DLL version 10.0.0.yz (need 4 numbers).
 181 #
 182 # HS_* variables are defined in make/hotspot_version
 183 #
 184 HS_VER=$(HS_MAJOR_VER),$(HS_MINOR_VER),0,$(HS_BUILD_NUMBER)
 185 HS_DOTVER=$(HS_MAJOR_VER).$(HS_MINOR_VER).0.$(HS_BUILD_NUMBER)
 186 
 187 !if "$(HOTSPOT_RELEASE_VERSION)" == ""
 188 HOTSPOT_RELEASE_VERSION=$(HS_MAJOR_VER).$(HS_MINOR_VER)-b$(HS_BUILD_NUMBER)
 189 !endif
 190 
 191 !if "$(HOTSPOT_BUILD_VERSION)" == ""
 192 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)
 193 !else
 194 HS_BUILD_VER=$(HOTSPOT_RELEASE_VERSION)-$(HOTSPOT_BUILD_VERSION)
 195 !endif
 196 
 197 # End VERSIONINFO parameters
 198 
 199 # if hotspot-only build and/or OPENJDK isn't passed down, need to set OPENJDK
 200 !ifndef OPENJDK
 201 !if !exists($(WorkSpace)\src\closed)
 202 OPENJDK=true
 203 !endif
 204 !endif
 205 
 206 # We don't support SA on ia64, and we can't
 207 # build it if we are using a version of Vis Studio
 208 # older than .Net 2003.
 209 # SA_INCLUDE and SA_LIB are hold-overs from a previous
 210 # implementation in which we could build SA using
 211 # Debugging Tools For Windows, in which the .h/.lib files
 212 # and the .dlls are in different places than
 213 # they are for Vis Studio .Net 2003.
 214 # If that code ever needs to be resurrected, these vars
 215 # can be set here.  They are used in makefiles/sa.make.
 216 
 217 checkSA::
 218 
 219 !if "$(BUILD_WIN_SA)" != "1"
 220 checkSA::
 221         @echo     Not building SA:  BUILD_WIN_SA != 1
 222 
 223 !elseif "$(ARCH)" == "ia64"
 224 BUILD_WIN_SA = 0


 262         @ cd ..
 263         @ echo;
 264 
 265 clean: checkVariant
 266         - rm -r -f $(variantDir)
 267 
 268 $(variantDir):
 269         mkdir $(variantDir)
 270 
 271 $(variantDir)\local.make: checks
 272         @ echo # Generated file                                 >  $@
 273         @ echo Variant=$(realVariant)                           >> $@
 274         @ echo WorkSpace=$(WorkSpace)                           >> $@
 275         @ echo BootStrapDir=$(BootStrapDir)                     >> $@
 276         @ if "$(USERNAME)" NEQ "" echo BuildUser=$(USERNAME)    >> $@
 277         @ echo HS_VER=$(HS_VER)                                 >> $@
 278         @ echo HS_DOTVER=$(HS_DOTVER)                           >> $@
 279         @ echo HS_COMPANY=$(COMPANY_NAME)                       >> $@
 280         @ echo HS_FILEDESC=$(HS_FILEDESC)                       >> $@
 281         @ echo HOTSPOT_VM_DISTRO=$(HOTSPOT_VM_DISTRO)           >> $@
 282         @ if "$(OPENJDK)" NEQ "" echo OPENJDK=$(OPENJDK)        >> $@
 283         @ echo HS_COPYRIGHT=$(HOTSPOT_VM_COPYRIGHT)             >> $@
 284         @ echo HS_NAME=$(PRODUCT_NAME) $(JDK_MKTG_VERSION)      >> $@
 285         @ echo HS_BUILD_VER=$(HS_BUILD_VER)                     >> $@
 286         @ echo BUILD_WIN_SA=$(BUILD_WIN_SA)                     >> $@
 287         @ echo SA_BUILD_VERSION=$(HS_BUILD_VER)                 >> $@
 288         @ echo SA_INCLUDE=$(SA_INCLUDE)                         >> $@
 289         @ echo SA_LIB=$(SA_LIB)                                 >> $@
 290         @ echo JDK_VER=$(JDK_VER)                               >> $@
 291         @ echo JDK_DOTVER=$(JDK_DOTVER)                         >> $@
 292         @ echo JRE_RELEASE_VER=$(JRE_RELEASE_VER)               >> $@
 293         @ echo BUILDARCH=$(BUILDARCH)                           >> $@
 294         @ echo Platform_arch=$(Platform_arch)                   >> $@
 295         @ echo Platform_arch_model=$(Platform_arch_model)       >> $@
 296         @ echo CXX=$(CXX)                                       >> $@
 297         @ echo LD=$(LD)                                         >> $@
 298         @ echo MT=$(MT)                                         >> $@
 299         @ echo RC=$(RC)                                         >> $@
 300         @ sh $(WorkSpace)/make/windows/get_msc_ver.sh           >> $@
 301         @ if "$(ENABLE_FULL_DEBUG_SYMBOLS)" NEQ "" echo ENABLE_FULL_DEBUG_SYMBOLS=$(ENABLE_FULL_DEBUG_SYMBOLS) >> $@
 302         @ if "$(ZIP_DEBUGINFO_FILES)" NEQ "" echo ZIP_DEBUGINFO_FILES=$(ZIP_DEBUGINFO_FILES) >> $@