common/autoconf/spec.gmk.in

changeset 2406
7480582c7fdc
parent 2333
1c0d5a15ab4c
child 2408
2e38e8d106de
child 2419
f6bc08715234
equal deleted inserted replaced
2405:e0b7721459ee 2406:7480582c7fdc
1 # 1 #
2 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 2 # Copyright (c) 2011, 2019, Oracle and/or its affiliates. All rights reserved.
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 # 4 #
5 # This code is free software; you can redistribute it and/or modify it 5 # This code is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU General Public License version 2 only, as 6 # under the terms of the GNU General Public License version 2 only, as
7 # published by the Free Software Foundation. Oracle designates this 7 # published by the Free Software Foundation. Oracle designates this
148 JAXWS_TOPDIR:=@JAXWS_TOPDIR@ 148 JAXWS_TOPDIR:=@JAXWS_TOPDIR@
149 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@ 149 HOTSPOT_TOPDIR:=@HOTSPOT_TOPDIR@
150 NASHORN_TOPDIR:=@NASHORN_TOPDIR@ 150 NASHORN_TOPDIR:=@NASHORN_TOPDIR@
151 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@ 151 COPYRIGHT_YEAR:=@COPYRIGHT_YEAR@
152 152
153 # Platform naming variables
154 LAUNCHER_NAME:=@LAUNCHER_NAME@
155 PRODUCT_NAME:=@PRODUCT_NAME@
156 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
157 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
158 COMPANY_NAME:=@COMPANY_NAME@
159 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
160 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
161 VENDOR_URL:=@VENDOR_URL@
162 VENDOR_URL_BUG:=@VENDOR_URL_BUG@
163 VENDOR_URL_VM_BUG:=@VENDOR_URL_VM_BUG@
164
153 # Location where build customization files may be found 165 # Location where build customization files may be found
154 CUSTOM_MAKE_DIR:=@CUSTOM_MAKE_DIR@ 166 CUSTOM_MAKE_DIR:=@CUSTOM_MAKE_DIR@
155 167
156 # Information gathered from the version.numbers file. 168 # Information gathered from the version.numbers file.
157 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@ 169 JDK_MAJOR_VERSION:=@JDK_MAJOR_VERSION@
158 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@ 170 JDK_MINOR_VERSION:=@JDK_MINOR_VERSION@
159 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@ 171 JDK_MICRO_VERSION:=@JDK_MICRO_VERSION@
160 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@ 172 JDK_UPDATE_VERSION:=@JDK_UPDATE_VERSION@
161 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@ 173 JDK_BUILD_NUMBER:=@JDK_BUILD_NUMBER@
162 MILESTONE:=@MILESTONE@ 174 MILESTONE:=@MILESTONE@
163 LAUNCHER_NAME:=@LAUNCHER_NAME@
164 PRODUCT_NAME:=@PRODUCT_NAME@
165 PRODUCT_SUFFIX:=@PRODUCT_SUFFIX@
166 JDK_RC_PLATFORM_NAME:=@JDK_RC_PLATFORM_NAME@
167 COMPANY_NAME:=@COMPANY_NAME@
168 MACOSX_BUNDLE_NAME_BASE=@MACOSX_BUNDLE_NAME_BASE@
169 MACOSX_BUNDLE_ID_BASE=@MACOSX_BUNDLE_ID_BASE@
170 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@ 175 USER_RELEASE_SUFFIX=@USER_RELEASE_SUFFIX@
176
177 ifneq ($(COMPANY_NAME),)
178 # COMPANY_NAME is set to "N/A" in $AUTOCONF_DIR/version-numbers by default,
179 # but can be customized with the '--with-vendor-name' configure option.
180 # Only export "VENDOR" to the build if COMPANY_NAME contains a real value.
181 # Otherwise the default value for VENDOR, which is used to set the "java.vendor"
182 # and "java.vm.vendor" properties is hard-coded into the source code (i.e. in
183 # System.c in the jdk for "vm.vendor" and vm_version.cpp in the VM for "java.vm.vendor")
184 ifneq ($(COMPANY_NAME), N/A)
185 VERSION_CFLAGS += -DVENDOR='"$(COMPANY_NAME)"'
186 endif
187 endif
188
189 # Only export VENDOR_URL, VENDOR_URL_BUG and VENDOR_VM_URL_BUG to the build if
190 # they are not empty. Otherwise, default values which are defined in the sources
191 # will be used.
192 ifneq ($(VENDOR_URL),)
193 VERSION_CFLAGS += -DVENDOR_URL='"$(VENDOR_URL)"'
194 endif
195 ifneq ($(VENDOR_URL_BUG),)
196 VERSION_CFLAGS += -DVENDOR_URL_BUG='"$(VENDOR_URL_BUG)"'
197 endif
198 ifneq ($(VENDOR_URL_VM_BUG),)
199 VERSION_CFLAGS += -DVENDOR_URL_VM_BUG='"$(VENDOR_URL_VM_BUG)"'
200 endif
171 201
172 # Different version strings generated from the above information. 202 # Different version strings generated from the above information.
173 JDK_VERSION:=@JDK_VERSION@ 203 JDK_VERSION:=@JDK_VERSION@
174 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX) 204 RUNTIME_NAME=$(PRODUCT_NAME) $(PRODUCT_SUFFIX)
175 COOKED_JDK_UPDATE_VERSION:=@COOKED_JDK_UPDATE_VERSION@ 205 COOKED_JDK_UPDATE_VERSION:=@COOKED_JDK_UPDATE_VERSION@

mercurial