Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_jdk
提交
eb182394
D
dragonwell8_jdk
项目概览
openanolis
/
dragonwell8_jdk
通知
4
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_jdk
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
eb182394
编写于
10月 17, 2013
作者:
L
lana
浏览文件
操作
浏览文件
下载
差异文件
Merge
上级
4e827953
02e4fb21
变更
69
展开全部
显示空白变更内容
内联
并排
Showing
69 changed file
with
8199 addition
and
7559 deletion
+8199
-7559
.hgtags
.hgtags
+1
-0
make/common/shared/Compiler-msvc.gmk
make/common/shared/Compiler-msvc.gmk
+1
-1
make/common/shared/Defs-versions.gmk
make/common/shared/Defs-versions.gmk
+7
-15
make/common/shared/Sanity.gmk
make/common/shared/Sanity.gmk
+4
-19
make/tools/manifest.mf
make/tools/manifest.mf
+1
-1
makefiles/BuildJdk.gmk
makefiles/BuildJdk.gmk
+19
-19
makefiles/Bundles.gmk
makefiles/Bundles.gmk
+58
-58
makefiles/CompileDemos.gmk
makefiles/CompileDemos.gmk
+271
-270
makefiles/CompileJavaClasses.gmk
makefiles/CompileJavaClasses.gmk
+255
-255
makefiles/CompileLaunchers.gmk
makefiles/CompileLaunchers.gmk
+352
-352
makefiles/CompileNativeLibraries.gmk
makefiles/CompileNativeLibraries.gmk
+2759
-2757
makefiles/CopyFiles.gmk
makefiles/CopyFiles.gmk
+158
-159
makefiles/CopyIntoClasses.gmk
makefiles/CopyIntoClasses.gmk
+74
-74
makefiles/CopySamples.gmk
makefiles/CopySamples.gmk
+7
-7
makefiles/CreateJars.gmk
makefiles/CreateJars.gmk
+544
-544
makefiles/GenerateClasses.gmk
makefiles/GenerateClasses.gmk
+31
-31
makefiles/GenerateData.gmk
makefiles/GenerateData.gmk
+6
-6
makefiles/GenerateSources.gmk
makefiles/GenerateSources.gmk
+18
-18
makefiles/Images.gmk
makefiles/Images.gmk
+399
-395
makefiles/Import.gmk
makefiles/Import.gmk
+57
-57
makefiles/Makefile
makefiles/Makefile
+7
-7
makefiles/PatchList.solaris
makefiles/PatchList.solaris
+1
-2
makefiles/ProfileNames.gmk
makefiles/ProfileNames.gmk
+3
-4
makefiles/Profiles.gmk
makefiles/Profiles.gmk
+83
-84
makefiles/Setup.gmk
makefiles/Setup.gmk
+22
-22
makefiles/SignJars.gmk
makefiles/SignJars.gmk
+22
-22
makefiles/Tools.gmk
makefiles/Tools.gmk
+90
-91
makefiles/gendata/GendataBreakIterator.gmk
makefiles/gendata/GendataBreakIterator.gmk
+29
-29
makefiles/gendata/GendataFontConfig.gmk
makefiles/gendata/GendataFontConfig.gmk
+19
-20
makefiles/gendata/GendataHtml32dtd.gmk
makefiles/gendata/GendataHtml32dtd.gmk
+1
-1
makefiles/gendata/GendataTZDB.gmk
makefiles/gendata/GendataTZDB.gmk
+1
-1
makefiles/gendata/GendataTimeZone.gmk
makefiles/gendata/GendataTimeZone.gmk
+2
-2
makefiles/gensrc/GensrcBuffer.gmk
makefiles/gensrc/GensrcBuffer.gmk
+380
-0
makefiles/gensrc/GensrcCLDR.gmk
makefiles/gensrc/GensrcCLDR.gmk
+2
-2
makefiles/gensrc/GensrcCharacterData.gmk
makefiles/gensrc/GensrcCharacterData.gmk
+19
-19
makefiles/gensrc/GensrcCharsetCoder.gmk
makefiles/gensrc/GensrcCharsetCoder.gmk
+107
-0
makefiles/gensrc/GensrcCharsetMapping.gmk
makefiles/gensrc/GensrcCharsetMapping.gmk
+15
-16
makefiles/gensrc/GensrcExceptions.gmk
makefiles/gensrc/GensrcExceptions.gmk
+7
-7
makefiles/gensrc/GensrcIcons.gmk
makefiles/gensrc/GensrcIcons.gmk
+31
-32
makefiles/gensrc/GensrcJDWP.gmk
makefiles/gensrc/GensrcJDWP.gmk
+6
-6
makefiles/gensrc/GensrcJObjC.gmk
makefiles/gensrc/GensrcJObjC.gmk
+32
-32
makefiles/gensrc/GensrcLocaleDataMetaInfo.gmk
makefiles/gensrc/GensrcLocaleDataMetaInfo.gmk
+32
-32
makefiles/gensrc/GensrcMisc.gmk
makefiles/gensrc/GensrcMisc.gmk
+240
-0
makefiles/gensrc/GensrcProperties.gmk
makefiles/gensrc/GensrcProperties.gmk
+395
-0
makefiles/gensrc/GensrcSwing.gmk
makefiles/gensrc/GensrcSwing.gmk
+24
-24
makefiles/gensrc/GensrcX11Wrappers.gmk
makefiles/gensrc/GensrcX11Wrappers.gmk
+36
-37
makefiles/jpda/jdwp/jdwp.spec
makefiles/jpda/jdwp/jdwp.spec
+1170
-1172
makefiles/jprt.gmk
makefiles/jprt.gmk
+6
-7
makefiles/jprt.properties
makefiles/jprt.properties
+247
-248
makefiles/mapfiles/libawt/mapfile-mawt-vers
makefiles/mapfiles/libawt/mapfile-mawt-vers
+3
-4
makefiles/mapfiles/libawt/mapfile-vers
makefiles/mapfiles/libawt/mapfile-vers
+4
-5
makefiles/mapfiles/libawt/mapfile-vers-linux
makefiles/mapfiles/libawt/mapfile-vers-linux
+6
-7
makefiles/mapfiles/libawt_headless/mapfile-vers
makefiles/mapfiles/libawt_headless/mapfile-vers
+1
-2
makefiles/mapfiles/libawt_xawt/mapfile-vers
makefiles/mapfiles/libawt_xawt/mapfile-vers
+1
-1
makefiles/mapfiles/libfontmanager/mapfile-vers
makefiles/mapfiles/libfontmanager/mapfile-vers
+1
-1
makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk
makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk
+1
-1
makefiles/mapfiles/libj2pcsc/mapfile-vers
makefiles/mapfiles/libj2pcsc/mapfile-vers
+1
-1
makefiles/mapfiles/libjdga/mapfile-vers
makefiles/mapfiles/libjdga/mapfile-vers
+1
-1
makefiles/mapfiles/libjli/mapfile-vers
makefiles/mapfiles/libjli/mapfile-vers
+1
-1
makefiles/mapfiles/libverify/mapfile-vers
makefiles/mapfiles/libverify/mapfile-vers
+1
-1
makefiles/profile-includes.txt
makefiles/profile-includes.txt
+0
-1
makefiles/profile-rtjar-includes.txt
makefiles/profile-rtjar-includes.txt
+34
-36
makefiles/scripts/addNotices.sh
makefiles/scripts/addNotices.sh
+3
-3
makefiles/scripts/genCharsetProvider.sh
makefiles/scripts/genCharsetProvider.sh
+40
-40
makefiles/scripts/genExceptions.sh
makefiles/scripts/genExceptions.sh
+2
-2
makefiles/scripts/localelist.sh
makefiles/scripts/localelist.sh
+47
-50
makefiles/sun/awt/ToBin.java
makefiles/sun/awt/ToBin.java
+1
-1
src/solaris/doc/sun/man/man1/ja/javaws.1
src/solaris/doc/sun/man/man1/ja/javaws.1
+0
-222
src/solaris/doc/sun/man/man1/javaws.1
src/solaris/doc/sun/man/man1/javaws.1
+0
-222
未找到文件。
.hgtags
浏览文件 @
eb182394
...
...
@@ -233,3 +233,4 @@ eea685b9ccaa1980e0a7e07d6a3a84bcc7e9ab82 jdk8-b107
946f3fd5f8bf0ccd180c258d25e5837fa1bf004c jdk8-b109
54e099776f08430d3a7f4feabd9f2ba886b55320 jdk8-b110
719befd87c7b96ae103c05730ca555227bfc0116 jdk8-b111
f002f5f3a16cca62e139cb8eed05ffaeb373587d jdk8-b112
make/common/shared/Compiler-msvc.gmk
浏览文件 @
eb182394
...
...
@@ -53,7 +53,7 @@ ifndef CONFIGURE_BUILD
# The VS2010 compiler is the same one used on both 32bit and 64bit
ifeq ($(CC_MAJORVER), 16)
COMPILER_NAME=Microsoft Visual Studio 10 (16.00.
303
19.01)
COMPILER_NAME=Microsoft Visual Studio 10 (16.00.
402
19.01)
COMPILER_VERSION=VS2010
ifeq ($(WINDOWSSDKDIR),)
WINDOWSSDKDIR := $(error WINDOWSSDKDIR cannot be empty here)
...
...
make/common/shared/Defs-versions.gmk
浏览文件 @
eb182394
...
...
@@ -86,19 +86,17 @@ endif
# REQUIRED_MAKE_VER
# The minimum version of GNU make.
#
# REQUIRED_MKS_VER
# Windows only: If MKS used instead of CYGWIN, the minimum version of MKS.
#
# REQUIRED_OS_VARIANT_NAME
# The OS variation name required.
# Solaris: Solaris or OpenSolaris
# Windows: Windows2000, WindowsXP, Windows2003, etc.
# Windows: Windows2000, WindowsXP, Windows2003,
Windows2008R2,
etc.
# Linux: Fedora, RedHat, SuSE, Ubuntu, etc.
#
# REQUIRED_OS_VARIANT_VERSION
# The version number associated with the above OS variant name.
# Solaris: output of uname -r
# Windows: 5.0 for Windows2000, 5.1 for WindowsXP, 5.2 for Windows2003, etc.
# Windows: 5.0 for Windows2000, 5.1 for WindowsXP,
# 5.2 for Windows2003, 6.1 for Windows2008R2, etc.
# Linux: number for the variant, e.g. 9 for Fedora 9
#
# REQUIRED_OS_VERSION
...
...
@@ -180,21 +178,15 @@ endif
# Windows specific
ifeq ($(PLATFORM), windows)
REQUIRED_OS_NAME = Windows
ifeq ($(ARCH_DATA_MODEL),64)
REQUIRED_OS_VERSION = 5.2
REQUIRED_OS_VARIANT_NAME = Windows2003
else
REQUIRED_OS_VERSION = 5.1
REQUIRED_OS_VARIANT_NAME = WindowsXP
endif
REQUIRED_OS_VERSION = 6.1
REQUIRED_OS_VARIANT_NAME = Windows2008R2
REQUIRED_OS_VARIANT_VERSION = $(REQUIRED_OS_VERSION)
REQUIRED_CYGWIN_VER = 4.0
REQUIRED_MKS_VER = 6.1
ifeq ($(CC_VERSION),msvc)
REQUIRED_COMPILER_NAME = Visual Studio 10
REQUIRED_COMPILER_VERSION = VS2010
REQUIRED_CC_VER = 16.00.
303
19.01
REQUIRED_LINK_VER = 10.00.
303
19.01
REQUIRED_CC_VER = 16.00.
402
19.01
REQUIRED_LINK_VER = 10.00.
402
19.01
endif
ifeq ($(CC_VERSION),gcc)
REQUIRED_CC_VER = 3.4.3
...
...
make/common/shared/Sanity.gmk
浏览文件 @
eb182394
...
...
@@ -121,11 +121,13 @@ ifeq ($(PLATFORM), macosx)
endif
ifeq ($(PLATFORM), windows)
# Windows 2000 is 5.0, Windows XP is 5.1, Windows 2003 is 5.2
# Windows 2000 is 5.0, Windows XP is 5.1,
# Windows 2003 is 5.2, Windows 7 and 2008R2 are 6.1
# Assume 5.0 (Windows 2000) if systeminfo does not help
WINDOWS_MAPPING-5.0 := Windows2000
WINDOWS_MAPPING-5.1 := WindowsXP
WINDOWS_MAPPING-5.2 := Windows2003
WINDOWS_MAPPING-6.1 := Windows2008R2
# What kind of system we are using (Variation is the common name)
_OS_VERSION := \
$(shell systeminfo 2> $(DEV_NULL) | \
...
...
@@ -180,7 +182,6 @@ include $(JDK_MAKE_SHARED_DIR)/Sanity-Settings.gmk
sane-linux \
sane-cygwin \
sane-cygwin-shell \
sane-mks \
sane-arch_data_model \
sane-os_patch_level \
sane-classpath \
...
...
@@ -317,7 +318,7 @@ ifndef OPENJDK
endif # OPENJDK
ifeq ($(PLATFORM), windows)
sane-os_version:: sane-cygwin sane-
mks sane-
cygwin-shell
sane-os_version:: sane-cygwin sane-cygwin-shell
endif
######################################################
...
...
@@ -386,22 +387,6 @@ sane-cygwin-shell:
endif
endif
######################################################
# Check the Windows mks version
######################################################
ifeq ($(PLATFORM), windows)
MKS_CHECK :=$(call CheckVersions,$(MKS_VER),$(REQUIRED_MKS_VER))
sane-mks:
ifdef USING_MKS
ifeq ($(MKS_CHECK),missing)
@$(call OfficialErrorMessage,MKS version,$(MKS_VER),$(REQUIRED_MKS_VER))
endif
ifeq ($(MKS_CHECK),older)
@$(call OfficialErrorMessage,MKS version,$(MKS_VER),$(REQUIRED_MKS_VER))
endif
endif
endif
######################################################
# Get list of installed patches (this file has a particular format)
######################################################
...
...
make/tools/manifest.mf
浏览文件 @
eb182394
Manifest-Version: 1.0
Specification-Title: Java Platform API Specification
Specification-Version: 1.
7
Specification-Version: 1.
8
Specification-Vendor: Oracle Corporation
Implementation-Title: Java Runtime Environment
Implementation-Version: @@RELEASE@@
...
...
makefiles/BuildJdk.gmk
浏览文件 @
eb182394
...
...
@@ -47,13 +47,13 @@ include ProfileNames.gmk
import: import-only
import-only:
#
Import (corba jaxp jaxws langtools hotspot)
#
Import (corba jaxp jaxws langtools hotspot)
+$(MAKE) -f Import.gmk
gensrc: import gensrc-only
gensrc-only:
+$(MAKE) -f Generate
Java
Sources.gmk
#
Ok, now gensrc is fully populated.
+$(MAKE) -f GenerateSources.gmk
#
Ok, now gensrc is fully populated.
gendata: gensrc gendata-only
gendata-only:
...
...
@@ -62,8 +62,8 @@ gendata-only:
classes: gendata classes-only
classes-only:
+$(MAKE) -f CompileJavaClasses.gmk
#
The classes are now built and
#
any javah files have now been generated.
#
The classes are now built and
#
any javah files have now been generated.
libs: classes libs-only
libs-only:
...
...
@@ -71,23 +71,23 @@ libs-only:
launchers: libs launchers-only
launchers-only:
#
Finally compile the launchers.
#
Finally compile the launchers.
+$(MAKE) -f CompileLaunchers.gmk
genclasses: launchers genclasses-only
genclasses-only:
#
Generate classes that have other sources. Needs
#
to execute launchers.
#
Generate classes that have other sources. Needs
#
to execute launchers.
+$(MAKE) -f GenerateClasses.gmk
jdk: genclasses
#
Now we have a complete jdk, which you can run.
#
It is not yet wrapped up as an installed image.
#
Now we have a complete jdk, which you can run.
#
It is not yet wrapped up as an installed image.
demos:
#
The demos are compiled against this jdk.
#
The demos are compiled against this jdk.
+$(MAKE) -f CompileDemos.gmk
#
Now copy the sample sources into the jdk.
#
Now copy the sample sources into the jdk.
+$(MAKE) -f CopySamples.gmk
# Create the final jdk and jre images, to be wrapped up
...
...
@@ -96,9 +96,9 @@ demos:
images:
+$(MAKE) PROFILE="" -f CreateJars.gmk
+$(MAKE) PROFILE="" -f Images.gmk
ifeq ($(OPENJDK_TARGET_OS), macosx)
ifeq ($(OPENJDK_TARGET_OS), macosx)
+$(MAKE) -f Bundles.gmk
endif
endif
overlay-images:
+$(MAKE) -f CompileLaunchers.gmk OVERLAY_IMAGES=true
...
...
@@ -114,8 +114,8 @@ profiles: $(ALL_PROFILES)
sign-jars:
+$(MAKE) -f SignJars.gmk
BINARIES
:=
$(notdir $(wildcard $(JDK_IMAGE_DIR)/bin/*))
INSTALLDIR
:=
openjdk-$(RELEASE)
BINARIES
:=
$(notdir $(wildcard $(JDK_IMAGE_DIR)/bin/*))
INSTALLDIR
:=
openjdk-$(RELEASE)
# Install the jdk image, in a very crude way. Not taking into
# account, how to install properly on macosx or windows etc.
...
...
@@ -126,8 +126,8 @@ install:
$(RM) -r $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/*
$(CP) -rp $(JDK_IMAGE_DIR)/* $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)
$(MKDIR) -p $(INSTALL_PREFIX)/bin
$(RM) $(addprefix $(INSTALL_PREFIX)/bin/,$(BINARIES))
$(foreach b,
$(BINARIES),
$(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true
$(RM) $(addprefix $(INSTALL_PREFIX)/bin/,
$(BINARIES))
$(foreach b,
$(BINARIES),
$(LN) -s $(INSTALL_PREFIX)/jvm/$(INSTALLDIR)/bin/$b $(INSTALL_PREFIX)/bin/$b &&) true
# The all target builds the JDK, but not the images
all: jdk
...
...
makefiles/Bundles.gmk
浏览文件 @
eb182394
...
...
@@ -31,76 +31,76 @@ default: bundles
# Only macosx has bundles defined.
ifeq ($(OPENJDK_TARGET_OS), macosx)
bundles: jre-bundle jdk-bundle
bundles: jre-bundle jdk-bundle
# JDK_BUNDLE_DIR and JRE_BUNDLE_DIR are defined in SPEC.
# JDK_BUNDLE_DIR and JRE_BUNDLE_DIR are defined in SPEC.
MACOSX_SRC := $(JDK_TOPDIR)/src/macosx
MACOSX_SRC := $(JDK_TOPDIR)/src/macosx
# All these OPENJDK checks are needed since there is no coherency between
# these values in open and closed. Should probably be fixed.
ifndef OPENJDK
# All these OPENJDK checks are needed since there is no coherency between
# these values in open and closed. Should probably be fixed.
ifndef OPENJDK
BUNDLE_ID := $(MACOSX_BUNDLE_ID_BASE).$(JDK_MINOR_VERSION)u$(JDK_UPDATE_VERSION)
else
else
BUNDLE_ID := $(MACOSX_BUNDLE_ID_BASE)
endif
BUNDLE_ID_JRE := $(BUNDLE_ID).jre
BUNDLE_ID_JDK := $(BUNDLE_ID).jdk
endif
BUNDLE_ID_JRE := $(BUNDLE_ID).jre
BUNDLE_ID_JDK := $(BUNDLE_ID).jdk
BUNDLE_NAME := $(MACOSX_BUNDLE_NAME_BASE) $(JDK_MINOR_VERSION)
BUNDLE_NAME_JRE := $(BUNDLE_NAME)
BUNDLE_NAME_JDK := $(BUNDLE_NAME)
BUNDLE_NAME := $(MACOSX_BUNDLE_NAME_BASE) $(JDK_MINOR_VERSION)
BUNDLE_NAME_JRE := $(BUNDLE_NAME)
BUNDLE_NAME_JDK := $(BUNDLE_NAME)
ifndef OPENJDK
ifndef OPENJDK
BUNDLE_INFO := $(MACOSX_BUNDLE_NAME_BASE) $(JDK_VERSION)
else
else
BUNDLE_INFO := $(MACOSX_BUNDLE_NAME_BASE) ($(JDK_VERSION))
endif
BUNDLE_INFO_JRE := $(BUNDLE_INFO)
BUNDLE_INFO_JDK := $(BUNDLE_INFO)
endif
BUNDLE_INFO_JRE := $(BUNDLE_INFO)
BUNDLE_INFO_JDK := $(BUNDLE_INFO)
BUNDLE_PLATFORM_VERSION := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION)
BUNDLE_VERSION := $(JDK_VERSION)
ifeq ($(COMPANY_NAME),
N/A)
BUNDLE_PLATFORM_VERSION := $(JDK_MAJOR_VERSION).$(JDK_MINOR_VERSION)
BUNDLE_VERSION := $(JDK_VERSION)
ifeq ($(COMPANY_NAME),
N/A)
BUNDLE_VENDOR := UNDEFINED
else
else
BUNDLE_VENDOR := $(COMPANY_NAME)
endif
endif
JDK_FILE_LIST := $(shell $(FIND) $(JDK_IMAGE_DIR))
JRE_FILE_LIST := $(shell $(FIND) $(JRE_IMAGE_DIR))
JDK_FILE_LIST := $(shell $(FIND) $(JDK_IMAGE_DIR))
JRE_FILE_LIST := $(shell $(FIND) $(JRE_IMAGE_DIR))
JDK_TARGET_LIST := $(subst $(JDK_IMAGE_DIR)/,$(JDK_BUNDLE_DIR)/Home/,$(JDK_FILE_LIST))
JRE_TARGET_LIST := $(subst $(JRE_IMAGE_DIR)/,$(JRE_BUNDLE_DIR)/Home/,$(JRE_FILE_LIST))
JDK_TARGET_LIST := $(subst $(JDK_IMAGE_DIR)/,$(JDK_BUNDLE_DIR)/Home/,$(JDK_FILE_LIST))
JRE_TARGET_LIST := $(subst $(JRE_IMAGE_DIR)/,$(JRE_BUNDLE_DIR)/Home/,$(JRE_FILE_LIST))
# The old builds implementation of this did not preserve symlinks so
# make sure they are followed and the contents copied instead.
# To fix this, remove -L
# Copy empty directories (jre/lib/applet).
$(JDK_BUNDLE_DIR)/Home/%: $(JDK_IMAGE_DIR)/%
# The old builds implementation of this did not preserve symlinks so
# make sure they are followed and the contents copied instead.
# To fix this, remove -L
# Copy empty directories (jre/lib/applet).
$(JDK_BUNDLE_DIR)/Home/%: $(JDK_IMAGE_DIR)/%
$(ECHO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
$(MKDIR) -p $(@D)
if [ -d "$<" ]; then $(MKDIR) -p $@; else $(CP) -f -R -L '$<' '$@'; fi
$(JRE_BUNDLE_DIR)/Home/%: $(JRE_IMAGE_DIR)/%
$(JRE_BUNDLE_DIR)/Home/%: $(JRE_IMAGE_DIR)/%
$(ECHO) Copying $(patsubst $(OUTPUT_ROOT)/%,%,$@)
$(MKDIR) -p $(@D)
if [ -d "$<" ]; then $(MKDIR) -p $@; else $(CP) -f -R -L '$<' '$@'; fi
$(JDK_BUNDLE_DIR)/MacOS/libjli.dylib:
$(JDK_BUNDLE_DIR)/MacOS/libjli.dylib:
$(ECHO) Creating link $(patsubst $(OUTPUT_ROOT)/%,%,$@)
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../Home/jre/lib/jli/libjli.dylib $@
$(JRE_BUNDLE_DIR)/MacOS/libjli.dylib:
$(JRE_BUNDLE_DIR)/MacOS/libjli.dylib:
$(ECHO) Creating link $(patsubst $(OUTPUT_ROOT)/%,%,$@)
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../Home/lib/jli/libjli.dylib $@
$(JDK_BUNDLE_DIR)/Info.plist: $(SPEC)
$(JDK_BUNDLE_DIR)/Info.plist: $(SPEC)
$(ECHO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
$(MKDIR) -p $(@D)
$(SED) -e "s/@@ID@@/$(BUNDLE_ID_JDK)/g" \
...
...
@@ -111,7 +111,7 @@ $(JDK_BUNDLE_DIR)/Info.plist: $(SPEC)
-e "s/@@VENDOR@@/$(BUNDLE_VENDOR)/g" \
< $(MACOSX_SRC)/bundle/JDK-Info.plist > $@
$(JRE_BUNDLE_DIR)/Info.plist: $(SPEC)
$(JRE_BUNDLE_DIR)/Info.plist: $(SPEC)
$(ECHO) Creating $(patsubst $(OUTPUT_ROOT)/%,%,$@)
$(MKDIR) -p $(@D)
$(SED) -e "s/@@ID@@/$(BUNDLE_ID_JRE)/g" \
...
...
@@ -122,17 +122,17 @@ $(JRE_BUNDLE_DIR)/Info.plist: $(SPEC)
-e "s/@@VENDOR@@/$(BUNDLE_VENDOR)/g" \
< $(MACOSX_SRC)/bundle/JRE-Info.plist > $@
jdk-bundle: $(JDK_TARGET_LIST) $(JDK_BUNDLE_DIR)/MacOS/libjli.dylib \
jdk-bundle: $(JDK_TARGET_LIST) $(JDK_BUNDLE_DIR)/MacOS/libjli.dylib \
$(JDK_BUNDLE_DIR)/Info.plist
$(SETFILE) -a B $(dir $(JDK_BUNDLE_DIR))
jre-bundle: $(JRE_TARGET_LIST) $(JRE_BUNDLE_DIR)/MacOS/libjli.dylib \
jre-bundle: $(JRE_TARGET_LIST) $(JRE_BUNDLE_DIR)/MacOS/libjli.dylib \
$(JRE_BUNDLE_DIR)/Info.plist
$(SETFILE) -a B $(dir $(JRE_BUNDLE_DIR))
else # Not macosx
bundles:
bundles:
$(ECHO) "No bundles defined for $(OPENJDK_TARGET_OS)"
endif # macosx
...
...
makefiles/CompileDemos.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/CompileJavaClasses.gmk
浏览文件 @
eb182394
...
...
@@ -39,13 +39,13 @@ EXCLUDES :=
##########################################################################################
EXCLUDES += com/sun/pept \
com/sun/tools/example/trace
\
com/sun/tools/example/debug/bdi
\
com/sun/tools/example/debug/event
\
com/sun/tools/example/trace
\
com/sun/tools/example/debug/bdi
\
com/sun/tools/example/debug/event
\
com/sun/tools/example/debug/gui
ifdef OPENJDK
EXCLUDES+=
sun/dc \
EXCLUDES +=
sun/dc \
com/sun/jmx/snmp \
sun/management/snmp \
com/sun/script
...
...
@@ -55,10 +55,10 @@ ifndef OPENJDK
# There exists two versions of this file...
EXFILES := $(JDK_TOPDIR)/src/share/classes/javax/crypto/JarVerifier.java
ifeq ($(OPENJDK_TARGET_OS),
windows)
ifeq ($(OPENJDK_TARGET_OS),
windows)
# This gets built on unix platforms implicitly in the old build even though
# it's excluded in the closed build.
EXCLUDES+=
sun/java2d/pisces
EXCLUDES +=
sun/java2d/pisces
# AccessBridge is compiled separately below.
EXFILES += AccessBridge.java \
...
...
@@ -70,7 +70,7 @@ ifndef OPENJDK
endif
ifneq ($(OPENJDK_TARGET_OS),solaris)
ifneq ($(OPENJDK_TARGET_OS),
solaris)
# Exclude Solaris nio and two security related files in src/share/classes
EXFILES += SolarisAclFileAttributeView.java \
SolarisFileStore.java \
...
...
@@ -98,26 +98,26 @@ endif
# In the old build, this isn't excluded on macosx, even though it probably
# should be.
ifneq ($(OPENJDK_TARGET_OS),macosx)
EXFILES+=
WrapperGenerator.java
ifneq ($(OPENJDK_TARGET_OS),
macosx)
EXFILES +=
WrapperGenerator.java
endif
ifneq ($(OPENJDK_TARGET_OS),windows)
ifneq ($(OPENJDK_TARGET_OS),
windows)
# Exclude Window security related files in src/share/classes
EXFILES+=
NTLoginModule.java \
EXFILES +=
NTLoginModule.java \
NTSystem.java
else
EXFILES+=
UnixLoginModule.java \
EXFILES +=
UnixLoginModule.java \
UnixSystem.java
endif
ifeq ($(OPENJDK_TARGET_OS),windows)
ifeq ($(OPENJDK_TARGET_OS),
windows)
# Don't build GTK L&F on Windows
EXCLUDES+=
com/sun/java/swing/plaf/gtk
EXCLUDES +=
com/sun/java/swing/plaf/gtk
endif
ifneq ($(OPENJDK_TARGET_OS),linux)
EXFILES+=
sun/tools/attach/LinuxAttachProvider.java \
ifneq ($(OPENJDK_TARGET_OS),
linux)
EXFILES +=
sun/tools/attach/LinuxAttachProvider.java \
sun/tools/attach/LinuxVirtualMachine.java \
sun/nio/ch/EPoll.java \
sun/nio/ch/EPollArrayWrapper.java \
...
...
@@ -135,8 +135,8 @@ ifneq ($(OPENJDK_TARGET_OS),linux)
sun/nio/fs/LinuxWatchService.java
endif
ifneq ($(OPENJDK_TARGET_OS),macosx)
EXFILES+=
sun/nio/ch/BsdAsynchronousChannelProvider.java \
ifneq ($(OPENJDK_TARGET_OS),
macosx)
EXFILES +=
sun/nio/ch/BsdAsynchronousChannelProvider.java \
sun/nio/ch/KQueue.java \
sun/nio/ch/KQueuePort.java \
sun/nio/fs/BsdFileStore.java \
...
...
@@ -152,25 +152,25 @@ endif
# Exclude BreakIterator classes that are just used in compile process to generate
# data files and shouldn't go in the product
EXFILES
+=
sun/text/resources/BreakIteratorRules.java \
EXFILES
+=
sun/text/resources/BreakIteratorRules.java \
sun/text/resources/BreakIteratorRules_th.java
# TODO: Add BUILD_HEADLESS_ONLY to configure?
ifdef BUILD_HEADLESS_ONLY
EXCLUDES+=
sun/applet
EXCLUDES +=
sun/applet
endif
ifdef OPENJDK
EXCLUDES+=
sun/java2d/cmm/kcms
EXCLUDES +=
sun/java2d/cmm/kcms
endif
# Used on windows and macosx
ifeq (,$(filter $(OPENJDK_TARGET_OS), windows macosx))
EXFILES+=
sun/awt/AWTCharset.java
ifeq (,
$(filter $(OPENJDK_TARGET_OS), windows macosx))
EXFILES +=
sun/awt/AWTCharset.java
endif
ifneq ($(OPENJDK_TARGET_OS), macosx)
EXFILES+=
sun/awt/X11/ScreenFormat.java \
EXFILES +=
sun/awt/X11/ScreenFormat.java \
sun/awt/X11/XArc.java \
sun/awt/X11/XChar2b.java \
sun/awt/X11/XCharStruct.java \
...
...
@@ -215,22 +215,22 @@ ifneq ($(OPENJDK_TARGET_OS), macosx)
endif
# Exclude another implicitly not included file.
EXFILES
+=
sun/util/locale/AsciiUtil.java
EXFILES
+=
sun/util/locale/AsciiUtil.java
ifeq (,$(filter $(OPENJDK_TARGET_OS), solaris macosx))
#
# only solaris and macosx
#
EXFILES+=
sun/nio/fs/PollingWatchService.java
ifeq (,
$(filter $(OPENJDK_TARGET_OS), solaris macosx))
#
# only solaris and macosx
#
EXFILES +=
sun/nio/fs/PollingWatchService.java
endif
# TODO: Fix when converting NIO
# Exclude *-linux-arm.java and *-linux-ppc.java from closed.
EXFILES
+=
-linux-arm.java \
EXFILES
+=
-linux-arm.java \
-linux-ppc.java
ifeq ($(OPENJDK_TARGET_OS), windows)
EXFILES+=
sun/nio/ch/AbstractPollSelectorImpl.java \
EXFILES +=
sun/nio/ch/AbstractPollSelectorImpl.java \
sun/nio/ch/PollSelectorProvider.java \
sun/nio/ch/SimpleAsynchronousFileChannelImpl.java
endif
...
...
@@ -242,7 +242,7 @@ endif
# be picked up by implicit compilation. On a rebuild, they are picked up
# and compiled. Exclude them here to produce the same rt.jar as the old
# build does when building just once.
EXFILES
+=
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
EXFILES
+=
javax/swing/plaf/nimbus/InternalFrameTitlePanePainter.java \
javax/swing/plaf/nimbus/OptionPaneMessageAreaPainter.java \
javax/swing/plaf/nimbus/ScrollBarPainter.java \
javax/swing/plaf/nimbus/SliderPainter.java \
...
...
@@ -255,16 +255,16 @@ include CopyIntoClasses.gmk
# Now we have COPY_PATTERNS, COPY_FILES and COPY_EXTRA
ifndef OPENJDK
CLOSED_SRC_DIRS:=
$(JDK_TOPDIR)/src/closed/share/classes \
CLOSED_SRC_DIRS :=
$(JDK_TOPDIR)/src/closed/share/classes \
$(JDK_TOPDIR)/src/closed/$(OPENJDK_TARGET_OS_API_DIR)/classes
endif
MACOSX_SRC_DIRS :=
ifeq ($(OPENJDK_TARGET_OS),macosx)
ifeq ($(OPENJDK_TARGET_OS),
macosx)
MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/classes
# this files are duplicated in MACOSX_SRC_DIRS
EXFILES
+= $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \
EXFILES
+= $(JDK_TOPDIR)/src/solaris/classes/sun/nio/ch/DefaultSelectorProvider.java \
$(JDK_TOPDIR)/src/solaris/classes/sun/java2d/BackBufferCapsProvider.java \
$(JDK_TOPDIR)/src/solaris/classes/java/net/DefaultInterface.java \
$(JDK_TOPDIR)/src/solaris/classes/java/lang/ClassLoaderHelper.java \
...
...
@@ -276,9 +276,9 @@ ifeq ($(OPENJDK_TARGET_OS),macosx)
# JObjC.jar contains 1.5 byte-code...so skip it here :-(
# MACOSX_SRC_DIRS += $(JDK_TOPDIR)/src/macosx/native/jobjc/src
# EXCLUDES
+= tests/java/com/apple/jobjc
# EXCLUDES
+= tests/java/com/apple/jobjc
EXCLUDES
+= com/apple/jobjc
EXCLUDES
+= com/apple/jobjc
endif
# The exception handling of swing beaninfo
...
...
@@ -291,23 +291,23 @@ $(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%.gif: $(JDK_TOPDIR)/make/t
# JDK_FILTER at the make command line, only a subset of the JDK java files will
# be recompiled. If multiple paths are separated by comma, convert that into a
# space separated list.
JDK_USER_DEFINED_FILTER
:=$(strip $(subst $(COMMA),$(SPACE),
$(JDK_FILTER)))
JDK_USER_DEFINED_FILTER
:= $(strip $(subst $(COMMA),$(SPACE),
$(JDK_FILTER)))
$(eval $(call SetupJavaCompilation,BUILD_JDK,\
SETUP:=GENERATE_JDKBYTECODE,
\
SRC:=
$(JDK_TOPDIR)/src/share/classes \
$(eval $(call SetupJavaCompilation,BUILD_JDK,
\
SETUP := GENERATE_JDKBYTECODE,
\
SRC :=
$(JDK_TOPDIR)/src/share/classes \
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes \
$(MACOSX_SRC_DIRS) \
$(JDK_OUTPUTDIR)/gensrc \
$(JDK_OUTPUTDIR)/gensrc_no_srczip \
$(CLOSED_SRC_DIRS),
\
INCLUDES:=$(JDK_USER_DEFINED_FILTER),
\
EXCLUDES:=$(EXCLUDES),
\
EXCLUDE_FILES:=$(EXFILES),
\
BIN:=$(JDK_OUTPUTDIR)/classes,
\
COPY:=$(COPY_PATTERNS),
\
COPY_FILES:=$(COPY_FILES),
\
HEADERS:=
$(JDK_OUTPUTDIR)/gensrc_headers))
$(CLOSED_SRC_DIRS),
\
INCLUDES := $(JDK_USER_DEFINED_FILTER),
\
EXCLUDES := $(EXCLUDES),
\
EXCLUDE_FILES := $(EXFILES),
\
BIN := $(JDK_OUTPUTDIR)/classes,
\
COPY := $(COPY_PATTERNS),
\
COPY_FILES := $(COPY_FILES),
\
HEADERS :=
$(JDK_OUTPUTDIR)/gensrc_headers))
##########################################################################################
...
...
@@ -317,78 +317,78 @@ $(JDK_OUTPUTDIR)/classes/META-INF/services/com.sun.tools.xjc.Plugin:
##########################################################################################
ifeq ($(OPENJDK_TARGET_OS),macosx)
#
# JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag.
#
so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-(
#
$(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE,
\
JAVAC:=$(JAVAC),
\
FLAGS:=-source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS),
\
SERVER_DIR:=$(SJAVAC_SERVER_DIR),
\
SERVER_JVM:=
$(SJAVAC_SERVER_JAVA)))
$(eval $(call SetupJavaCompilation,BUILD_JOBJC,
\
SETUP:=GENERATE_15BYTECODE,
\
DISABLE_SJAVAC:=true,
\
SRC:=
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
ifeq ($(OPENJDK_TARGET_OS),
macosx)
#
# JObjC.jar is compiled with BOOT_JAVAC which (may) not support the "-h" flag.
#
so we first compile classes with BOOT_JAVAC and then with JDK_JAVAC :-(
#
$(eval $(call SetupJavaCompiler,GENERATE_15BYTECODE,
\
JAVAC := $(JAVAC),
\
FLAGS := -source 1.5 -target 1.5 -g -bootclasspath $(BOOT_RTJAR) -cp $(JDK_OUTPUTDIR)/../langtools/dist/lib/classes.jar $(DISABLE_WARNINGS),
\
SERVER_DIR := $(SJAVAC_SERVER_DIR),
\
SERVER_JVM :=
$(SJAVAC_SERVER_JAVA)))
$(eval $(call SetupJavaCompilation,BUILD_JOBJC,
\
SETUP := GENERATE_15BYTECODE,
\
DISABLE_SJAVAC := true,
\
SRC :=
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
$(JDK_OUTPUTDIR)/gensrc_jobjc/src, \
INCLUDES := com/apple/jobjc,
\
EXCLUDES := tests/java/com/apple/jobjc,
\
BIN:=$(JDK_OUTPUTDIR)/jobjc_classes,
\
JAR:=
$(JDK_OUTPUTDIR)/lib/JObjC.jar, \
INCLUDES := com/apple/jobjc,
\
EXCLUDES := tests/java/com/apple/jobjc,
\
BIN := $(JDK_OUTPUTDIR)/jobjc_classes,
\
JAR :=
$(JDK_OUTPUTDIR)/lib/JObjC.jar, \
JARINDEX := true))
$(BUILD_JOBJC)
: $(BUILD_JDK)
$(BUILD_JOBJC)
: $(BUILD_JDK)
$(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS,
\
SETUP:=GENERATE_JDKBYTECODE,
\
SRC:=
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
$(eval $(call SetupJavaCompilation,BUILD_JOBJC_HEADERS,
\
SETUP := GENERATE_JDKBYTECODE,
\
SRC :=
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/core/java \
$(JDK_TOPDIR)/src/macosx/native/jobjc/src/runtime-additions/java \
$(JDK_OUTPUTDIR)/gensrc_jobjc/src, \
INCLUDES := com/apple/jobjc,
\
EXCLUDES := tests/java/com/apple/jobjc,
\
BIN:=$(JDK_OUTPUTDIR)/jobjc_classes_headers,
\
HEADERS:=
$(JDK_OUTPUTDIR)/gensrc_headers_jobjc))
INCLUDES := com/apple/jobjc,
\
EXCLUDES := tests/java/com/apple/jobjc,
\
BIN := $(JDK_OUTPUTDIR)/jobjc_classes_headers,
\
HEADERS :=
$(JDK_OUTPUTDIR)/gensrc_headers_jobjc))
$(BUILD_JOBJC_HEADERS)
: $(BUILD_JDK)
$(BUILD_JOBJC_HEADERS): $(BUILD_JDK)
endif
##########################################################################################
ifndef OPENJDK
ifeq ($(OPENJDK_TARGET_OS), windows)
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
$(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32,
\
SETUP:=GENERATE_JDKBYTECODE,
\
JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,
\
SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/32bit,
\
BIN:=
$(JDK_OUTPUTDIR)/classes_ab/32bit))
ifeq ($(OPENJDK_TARGET_OS), windows)
ifeq ($(OPENJDK_TARGET_CPU_BITS), 32)
$(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_32,
\
SETUP := GENERATE_JDKBYTECODE,
\
JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes,
\
SRC := $(JDK_OUTPUTDIR)/gensrc_ab/32bit,
\
BIN :=
$(JDK_OUTPUTDIR)/classes_ab/32bit))
$(BUILD_ACCESSBRIDGE_32): $(BUILD_JDK)
$(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY,
\
SETUP:=GENERATE_JDKBYTECODE,
\
JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,
\
SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/legacy,
\
BIN:=
$(JDK_OUTPUTDIR)/classes_ab/legacy))
$(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_LEGACY,
\
SETUP := GENERATE_JDKBYTECODE,
\
JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes,
\
SRC := $(JDK_OUTPUTDIR)/gensrc_ab/legacy,
\
BIN :=
$(JDK_OUTPUTDIR)/classes_ab/legacy))
$(BUILD_ACCESSBRIDGE_LEGACY): $(BUILD_JDK)
else
else
$(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_64,
\
SETUP:=GENERATE_JDKBYTECODE,
\
JAVAC_FLAGS:=-cp $(JDK_OUTPUTDIR)/classes,
\
SRC:=$(JDK_OUTPUTDIR)/gensrc_ab/64bit,
\
BIN:=
$(JDK_OUTPUTDIR)/classes_ab/64bit))
$(eval $(call SetupJavaCompilation,BUILD_ACCESSBRIDGE_64,
\
SETUP := GENERATE_JDKBYTECODE,
\
JAVAC_FLAGS := -cp $(JDK_OUTPUTDIR)/classes,
\
SRC := $(JDK_OUTPUTDIR)/gensrc_ab/64bit,
\
BIN :=
$(JDK_OUTPUTDIR)/classes_ab/64bit))
$(BUILD_ACCESSBRIDGE_64): $(BUILD_JDK)
endif
endif
endif
endif
endif
##########################################################################################
...
...
makefiles/CompileLaunchers.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/CompileNativeLibraries.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/CopyFiles.gmk
浏览文件 @
eb182394
...
...
@@ -36,7 +36,7 @@ endif
#
# Copy exported header files to outputdir.
#
H_TARGET_FILES =
$(INCLUDEDIR)/jdwpTransport.h
\
H_TARGET_FILES =
$(INCLUDEDIR)/jdwpTransport.h
\
$(INCLUDEDIR)/jni.h \
$(INCLUDEDIR)/jvmti.h \
$(INCLUDEDIR)/jvmticmlr.h \
...
...
@@ -56,7 +56,7 @@ COPY_FILES = $(H_TARGET_FILES)
##########################################################################################
ifndef OPENJDK
ifeq ($(OPENJDK_TARGET_OS), windows)
ifeq ($(OPENJDK_TARGET_OS), windows)
COPY_FILES += $(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCallbacks.h \
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgeCalls.h \
$(OPENJDK_TARGET_OS_INCLUDE)/bridge/AccessBridgePackages.h \
...
...
@@ -71,7 +71,7 @@ ifeq ($(OPENJDK_TARGET_OS), windows)
$(JDK_TOPDIR)/src/closed/windows/native/sun/bridge/accessibility.properties
$(install-file)
endif
endif
endif
##########################################################################################
...
...
@@ -125,9 +125,9 @@ COPY_FILES += $(PSFONTPROPFILE_TARGET_FILES)
# Copy flavormap.properties, cursor.properties and cursors gif files to LIBDIR
#
ifneq ($(OPENJDK_TARGET_OS), macosx)
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
else
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib
OPENJDK_TARGET_OS_LIB_SRC = $(JDK_TOPDIR)/src/macosx/lib
endif
$(LIBDIR)/flavormap.properties: $(OPENJDK_TARGET_OS_LIB_SRC)/flavormap.properties
...
...
@@ -145,9 +145,9 @@ COPY_FILES += $(CURSORS_DEST_DIR)/cursors.properties
CURSORS_LIB_SRC = $(JDK_TOPDIR)/src/share/lib/images/cursors
ifeq ($(OPENJDK_TARGET_OS), windows)
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/win32_*.gif)
else # OPENJDK_TARGET_OS
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
CURSORS_SRC_FILES = $(CURSORS_LIB_SRC)/invalid32x32.gif $(wildcard $(CURSORS_LIB_SRC)/motif_*.gif)
endif # OPENJDK_TARGET_OS
CURSORS_TARGET_FILES = $(subst $(CURSORS_LIB_SRC),$(CURSORS_DEST_DIR),$(CURSORS_SRC_FILES))
...
...
@@ -158,7 +158,7 @@ COPY_FILES += $(CURSORS_TARGET_FILES)
##########################################################################################
CONTENT_TYPES_SRC
=
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
CONTENT_TYPES_SRC
=
$(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
$(LIBDIR)/content-types.properties: $(CONTENT_TYPES_SRC)/content-types.properties
$(call install-file)
...
...
@@ -183,14 +183,14 @@ COPY_FILES += $(LIBDIR)/hijrah-config-umalqura.properties
##########################################################################################
ifeq ($(OPENJDK_TARGET_OS),windows)
ifeq ($(OPENJDK_TARGET_OS),
windows)
TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
TZMAPPINGS_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/lib
$(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
$(LIBDIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings
$(call install-file)
COPY_FILES += $(LIBDIR)/tzmappings
COPY_FILES += $(LIBDIR)/tzmappings
endif
...
...
@@ -204,8 +204,8 @@ else
ICCPROFILE_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/cmm/kcms
endif
ICCPROFILE_SRCS
:=
$(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
ICCPROFILE_TARGET_FILES
:=
$(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
ICCPROFILE_SRCS
:=
$(wildcard $(ICCPROFILE_SRC_DIR)/*.pf)
ICCPROFILE_TARGET_FILES
:=
$(subst $(ICCPROFILE_SRC_DIR),$(ICCPROFILE_DEST_DIR),$(ICCPROFILE_SRCS))
$(ICCPROFILE_DEST_DIR)%.pf: $(ICCPROFILE_SRC_DIR)%.pf
$(call install-file)
...
...
@@ -215,9 +215,9 @@ COPY_FILES += $(ICCPROFILE_TARGET_FILES)
##########################################################################################
#make sure freetype dll will be available at runtime as well as link time
#
make sure freetype dll will be available at runtime as well as link time
#
#NB: Default freetype build system uses -h linker option and
#
NB: Default freetype build system uses -h linker option and
# result .so contains hardcoded library name that is later
# used for adding dependencies to other objects
# (e.g. libfontmanager.so).
...
...
@@ -254,7 +254,7 @@ endif
# Copy msvcrXX.dll on windows
ifeq ($(OPENJDK_TARGET_OS),windows)
ifeq ($(OPENJDK_TARGET_OS),
windows)
MSVCR_TARGET := $(JDK_OUTPUTDIR)/bin/$(notdir $(MSVCR_DLL))
# Chmod to avoid permission issues if bundles are unpacked on unix platforms.
$(MSVCR_TARGET): $(MSVCR_DLL)
...
...
@@ -266,9 +266,9 @@ endif
##########################################################################################
HPROF_SRC
=
$(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
HPROF_SRC
=
$(JDK_TOPDIR)/src/share/demo/jvmti/hprof/jvm.hprof.txt
$(LIBDIR)/jvm.hprof.txt
: $(HPROF_SRC)
$(LIBDIR)/jvm.hprof.txt: $(HPROF_SRC)
$(call install-file)
COPY_FILES += $(LIBDIR)/jvm.hprof.txt
...
...
@@ -284,7 +284,7 @@ else
JVMCFG_ARCH := $(OPENJDK_TARGET_CPU_LEGACY)
endif
ifeq ($(OPENJDK_TARGET_OS),macosx)
ifeq ($(OPENJDK_TARGET_OS),
macosx)
JVMCFG_SRC := $(JDK_TOPDIR)/src/macosx/bin/$(JVMCFG_ARCH)/jvm.cfg
else
JVMCFG_SRC := $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/bin/$(JVMCFG_ARCH)/jvm.cfg
...
...
@@ -294,7 +294,7 @@ JVMCFG := $(JVMCFG_DIR)/jvm.cfg
# To do: should this also support -zeroshark?
ifeq ($(OPENJDK_TARGET_CPU_BITS),64)
ifeq ($(OPENJDK_TARGET_CPU_BITS),
64)
COPY_JVM_CFG_FILE := true
else
# On 32-bit machines we have three potential VMs: client, server and minimal.
...
...
@@ -305,7 +305,7 @@ else
# The main problem is deciding whether to use aliases for the VMs that are not
# present and the current position is that we add aliases for client and server, but
# not for minimal.
CLIENT_AND_SERVER := $(and $(findstring true,
$(JVM_VARIANT_SERVER)),$(findstring true,
$(JVM_VARIANT_CLIENT)))
CLIENT_AND_SERVER := $(and $(findstring true,
$(JVM_VARIANT_SERVER)), $(findstring true,
$(JVM_VARIANT_CLIENT)))
ifeq ($(CLIENT_AND_SERVER), true)
COPY_JVM_CFG_FILE := true
else
...
...
@@ -323,7 +323,6 @@ else
$(JVMCFG):
$(MKDIR) -p $(@D)
$(RM) $(@)
# Now check for other permutations
ifeq ($(JVM_VARIANT_SERVER), true)
$(PRINTF) "-server KNOWN\n">>$(@)
...
...
@@ -401,23 +400,23 @@ BLACKLISTED_CERTS_DST := $(JDK_OUTPUTDIR)/lib/security/blacklisted.certs
ifndef OPENJDK
BLACKLIST_SRC
:= $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
BLACKLIST_DST
:= $(JDK_OUTPUTDIR)/lib/security/blacklist
BLACKLIST_SRC
:= $(JDK_TOPDIR)/src/closed/share/lib/security/blacklist
BLACKLIST_DST
:= $(JDK_OUTPUTDIR)/lib/security/blacklist
BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/src/closed/share/lib/security/blacklisted.certs)
BLACKLISTED_CERTS_SRC += $(wildcard $(JDK_TOPDIR)/src/closed/share/lib/security/blacklisted.certs)
TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
TRUSTEDLIBS_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/trusted.libraries
TRUSTEDLIBS_DST := $(JDK_OUTPUTDIR)/lib/security/trusted.libraries
$(BLACKLIST_DST): $(BLACKLIST_SRC)
$(BLACKLIST_DST): $(BLACKLIST_SRC)
$(call install-file)
COPY_FILES += $(BLACKLIST_DST)
COPY_FILES += $(BLACKLIST_DST)
$(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
$(TRUSTEDLIBS_DST): $(TRUSTEDLIBS_SRC)
$(call install-file)
COPY_FILES += $(TRUSTEDLIBS_DST)
COPY_FILES += $(TRUSTEDLIBS_DST)
endif
...
...
@@ -439,9 +438,9 @@ COPY_FILES += $(BLACKLISTED_CERTS_DST)
ifndef OPENJDK
SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
SHARED_FONTS_FILES
:= \
SHARED_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts
SHARED_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/fonts
SHARED_FONTS_FILES
:= \
LucidaTypewriterRegular.ttf \
LucidaTypewriterBold.ttf \
LucidaBrightRegular.ttf \
...
...
@@ -451,86 +450,86 @@ SHARED_FONTS_FILES := \
LucidaSansRegular.ttf \
LucidaSansDemiBold.ttf \
SHARED_FONTS_SRC := $(foreach F,$(SHARED_FONTS_FILES),
$(SHARED_FONTS_SRC_DIR)/$(F))
SHARED_FONTS_DST := $(foreach F,$(SHARED_FONTS_FILES),
$(SHARED_FONTS_DST_DIR)/$(F))
SHARED_FONTS_SRC := $(foreach F, $(SHARED_FONTS_FILES),
$(SHARED_FONTS_SRC_DIR)/$(F))
SHARED_FONTS_DST := $(foreach F, $(SHARED_FONTS_FILES),
$(SHARED_FONTS_DST_DIR)/$(F))
$(SHARED_FONTS_DST_DIR)/%.ttf
: $(SHARED_FONTS_SRC_DIR)/%.ttf
$(SHARED_FONTS_DST_DIR)/%.ttf
: $(SHARED_FONTS_SRC_DIR)/%.ttf
$(call install-file)
$(SHARED_FONTS_DST_DIR)/fonts.dir
: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
$(SHARED_FONTS_DST_DIR)/fonts.dir
: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.fonts.dir
$(call install-file)
COPY_FILES += $(SHARED_FONTS_DST)
COPY_FILES += $(SHARED_FONTS_DST)
ifneq ($(OPENJDK_TARGET_OS), windows)
ifneq ($(OPENJDK_TARGET_OS), windows)
COPY_FILES += $(SHARED_FONTS_DST_DIR)/fonts.dir
endif
endif
ifeq ($(OPENJDK_TARGET_OS), linux)
ifeq ($(OPENJDK_TARGET_OS), linux)
# The oblique fonts are only needed/wanted on Linux.
# The oblique fonts are only needed/wanted on Linux.
OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
OBL_FONTS_FILES
:= LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
OBL_FONTS_SRC_DIR := $(JDK_TOPDIR)/src/closed/share/lib/fonts/oblique
OBL_FONTS_DST_DIR := $(JDK_OUTPUTDIR)/lib/oblique-fonts
OBL_FONTS_FILES
:= LucidaTypewriterOblique.ttf LucidaTypewriterBoldOblique.ttf \
LucidaSansOblique.ttf LucidaSansDemiOblique.ttf
OBL_FONTS_SRC := $(foreach F,$(OBL_FONTS_FILES),
$(OBL_FONTS_SRC_DIR)/$(F))
OBL_FONTS_DST := $(foreach F,$(OBL_FONTS_FILES),
$(OBL_FONTS_DST_DIR)/$(F))
OBL_FONTS_SRC := $(foreach F, $(OBL_FONTS_FILES),
$(OBL_FONTS_SRC_DIR)/$(F))
OBL_FONTS_DST := $(foreach F, $(OBL_FONTS_FILES),
$(OBL_FONTS_DST_DIR)/$(F))
$(OBL_FONTS_DST_DIR)/%.ttf
: $(OBL_FONTS_SRC_DIR)/%.ttf
$(OBL_FONTS_DST_DIR)/%.ttf
: $(OBL_FONTS_SRC_DIR)/%.ttf
$(call install-file)
$(OBL_FONTS_DST_DIR)/fonts.dir
: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
$(OBL_FONTS_DST_DIR)/fonts.dir
: $(JDK_TOPDIR)/src/solaris/classes/sun/awt/motif/java.oblique-fonts.dir
$(call install-file)
COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
COPY_FILES += $(OBL_FONTS_DST) $(OBL_FONTS_DST_DIR)/fonts.dir
endif # linux
endif # linux
endif # OPENJDK
##########################################################################################
ifndef OPENJDK
#
# Solaris X11 Direct Graphics Access library
#
#
# Solaris X11 Direct Graphics Access library
#
_DGALIBS_sparc = \
_DGALIBS_sparc = \
libxinerama.so \
libjdgaSUNWcg6.so \
libjdgaSUNWffb.so \
libjdgaSUNWm64.so \
libjdgaSUNWafb.so
_DGALIBS_sparcv9 = \
_DGALIBS_sparcv9 = \
libxinerama.so \
libjdgaSUNWcg6.so \
libjdgaSUNWffb.so \
libjdgaSUNWm64.so \
libjdgaSUNWafb.so
_DGALIBS_i586 =
# no i586 library yet
_DGALIBS_i586 =
# no i586 library yet
_DGALIBS_amd64 =
# no amd64 library yet
_DGALIBS_amd64 =
# no amd64 library yet
DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
DGALIBS = $(_DGALIBS_$(OPENJDK_TARGET_CPU_LEGACY):%=$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/%)
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libxinerama.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libxinerama.so
$(call install-file)
$(CHMOD) 755 $@
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNW%.so: $(JDK_TOPDIR)/src/closed/solaris/lib/$(OPENJDK_TARGET_CPU_LEGACY)/libjdgaSUNW%.so
$(call install-file)
$(CHMOD) 755 $@
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWafb.so: $(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)/libjdgaSUNWffb.so
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s $(<F) $@
COPY_FILES += $(DGALIBS)
COPY_FILES += $(DGALIBS)
endif
...
...
@@ -538,35 +537,35 @@ endif
ifeq ($(OPENJDK_TARGET_OS), solaris)
SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
SUNPKCS11_CFG_SRC := $(JDK_TOPDIR)/src/share/lib/security/sunpkcs11-solaris.cfg
SUNPKCS11_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/sunpkcs11-solaris.cfg
$(SUNPKCS11_CFG_DST)
: $(SUNPKCS11_CFG_SRC)
$(SUNPKCS11_CFG_DST)
: $(SUNPKCS11_CFG_SRC)
$(call install-file)
COPY_FILES += $(SUNPKCS11_CFG_DST)
COPY_FILES += $(SUNPKCS11_CFG_DST)
endif
##########################################################################################
ifndef OPENJDK
ifeq ($(OPENJDK_TARGET_OS), solaris)
ifeq ($(OPENJDK_TARGET_OS), solaris)
UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
UCRYPTO_CFG_SRC := $(JDK_TOPDIR)/src/closed/share/lib/security/ucrypto-solaris.cfg
UCRYPTO_CFG_DST := $(JDK_OUTPUTDIR)/lib/security/ucrypto-solaris.cfg
$(UCRYPTO_CFG_DST)
: $(UCRYPTO_CFG_SRC)
$(UCRYPTO_CFG_DST)
: $(UCRYPTO_CFG_SRC)
$(call install-file)
COPY_FILES += $(UCRYPTO_CFG_DST)
COPY_FILES += $(UCRYPTO_CFG_DST)
endif
endif
endif
##########################################################################################
$(JDK_OUTPUTDIR)/lib/sound.properties
: $(JDK_TOPDIR)/src/share/lib/sound.properties
$(JDK_OUTPUTDIR)/lib/sound.properties: $(JDK_TOPDIR)/src/share/lib/sound.properties
$(call install-file)
COPY_FILES += $(JDK_OUTPUTDIR)/lib/sound.properties
...
...
makefiles/CopyIntoClasses.gmk
浏览文件 @
eb182394
...
...
@@ -142,8 +142,8 @@ endif
SWING_BEANINFO_RESOURCES_SRC_DIR = $(JDK_TOPDIR)/make/tools/swing-beans/beaninfo/images
SWING_BEANINFO_RESOURCES_SRC = $(wildcard $(SWING_BEANINFO_RESOURCES_SRC_DIR)/*.gif)
OUT_BEANINFO_RESOURCES = $(patsubst $(SWING_BEANINFO_RESOURCES_SRC_DIR)%,\
$(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%,
\
OUT_BEANINFO_RESOURCES = $(patsubst $(SWING_BEANINFO_RESOURCES_SRC_DIR)%,
\
$(JDK_OUTPUTDIR)/classes/javax/swing/beaninfo/images/%,
\
$(SWING_BEANINFO_RESOURCES_SRC))
COPY_EXTRA += $(OUT_BEANINFO_RESOURCES)
...
...
@@ -166,57 +166,57 @@ COPY_FILES += \
# are uncommented and the configuration file is stored in the output META-INF directory.
# Make sure the output directory is created.
$(eval $(call MakeDir,$(JDK_OUTPUTDIR)/classes/META-INF/services))
$(eval $(call MakeDir,
$(JDK_OUTPUTDIR)/classes/META-INF/services))
# Find all META-INF/services/* files
ALL_META-INF_DIRS_share
:=
$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes -type d -a -name META-INF)
ALL_META-INF_DIRS_targetapi
:=
$(shell $(FIND) $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes -type d -a -name META-INF)
ALL_META-INF_DIRS_share
:=
$(shell $(FIND) $(JDK_TOPDIR)/src/share/classes -type d -a -name META-INF)
ALL_META-INF_DIRS_targetapi
:=
$(shell $(FIND) $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes -type d -a -name META-INF)
# Platform specific overrides shared
ifneq ($(ALL_META-INF_DIRS_targetapi),)
ALL_META-INF_DIRS:=
$(ALL_META-INF_DIRS_targetapi) \
$(filter-out %$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes%,%,$(ALL_META-INF_DIRS_targetapi)),
\
ifneq ($(ALL_META-INF_DIRS_targetapi),
)
ALL_META-INF_DIRS :=
$(ALL_META-INF_DIRS_targetapi) \
$(filter-out %$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes%,%,$(ALL_META-INF_DIRS_targetapi)),
\
$(ALL_META-INF_DIRS_share))
else
ALL_META-INF_DIRS:=
$(ALL_META-INF_DIRS_share)
ALL_META-INF_DIRS :=
$(ALL_META-INF_DIRS_share)
endif
ifndef OPENJDK
ALL_META-INF_DIRS += $(JDK_TOPDIR)/src/closed/share/classes/sun/java2d/cmm/kcms/META-INF
endif
SRC_SERVICES_FILES
:=$(wildcard $(addsuffix /services/*,
$(ALL_META-INF_DIRS)))
SRC_SERVICES_FILES
:= $(wildcard $(addsuffix /services/*,
$(ALL_META-INF_DIRS)))
ifdef OPENJDK
SRC_SERVICES_FILES:=$(filter-out %sun/dc/META-INF/services/sun.java2d.pipe.RenderingEngine,
$(SRC_SERVICES_FILES))
SRC_SERVICES_FILES:=$(filter-out %sun/java2d/cmm/kcms/META-INF/services/sun.java2d.cmm.CMMServiceProvider,
$(SRC_SERVICES_FILES))
SRC_SERVICES_FILES := $(filter-out %sun/dc/META-INF/services/sun.java2d.pipe.RenderingEngine,
$(SRC_SERVICES_FILES))
SRC_SERVICES_FILES := $(filter-out %sun/java2d/cmm/kcms/META-INF/services/sun.java2d.cmm.CMMServiceProvider,
$(SRC_SERVICES_FILES))
else
SRC_SERVICES_FILES:=$(filter-out %sun/java2d/pisces/META-INF/services/sun.java2d.pipe.RenderingEngine,
$(SRC_SERVICES_FILES))
SRC_SERVICES_FILES:=$(filter-out %sun/java2d/cmm/lcms/META-INF/services/sun.java2d.cmm.CMMServiceProvider,
$(SRC_SERVICES_FILES))
SRC_SERVICES_FILES := $(filter-out %sun/java2d/pisces/META-INF/services/sun.java2d.pipe.RenderingEngine,
$(SRC_SERVICES_FILES))
SRC_SERVICES_FILES := $(filter-out %sun/java2d/cmm/lcms/META-INF/services/sun.java2d.cmm.CMMServiceProvider,
$(SRC_SERVICES_FILES))
endif
# The number of services files are relatively few. If the increase in numbers, then
# we have to use ListPathsSafelyNow here.
# Change $(JDK_TOPDIR)/src/.../META-INF/services/yyyy into $(JDK_OUTPUTDIR)/classes/META-INF/services/yyyy
# The \n in the printf command is needed to make sed work on Solaris.
OUT_SERVICES_FILES
:=$(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/,
\
OUT_SERVICES_FILES
:= $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/,
\
$(shell $(PRINTF) "$(SRC_SERVICES_FILES)\n" | $(SED) -e 's|/[^ ]*/META-INF/services/||g'))
OUT_SERVICES_FILES_COLON
:=$(addsuffix :,
$(OUT_SERVICES_FILES))
OUT_SERVICES_FILES_COLON
:= $(addsuffix :,
$(OUT_SERVICES_FILES))
# Exception handling for print services with no META-INF directory
SRC_SERVICES_FILES_PRINT = $(wildcard $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes/sun/print/services/*)
OUT_SERVICES_FILES_PRINT = $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/,\
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes/sun/print/services/%,%,
\
OUT_SERVICES_FILES_PRINT = $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/,
\
$(patsubst $(JDK_TOPDIR)/src/$(OPENJDK_TARGET_OS_API_DIR)/classes/sun/print/services/%, %,
\
$(SRC_SERVICES_FILES_PRINT)))
OUT_SERVICES_FILES_PRINT_COLON = $(addsuffix :,$(OUT_SERVICES_FILES_PRINT))
RULES_SERVICES_PRINT = $(join $(OUT_SERVICES_FILES_PRINT_COLON),$(SRC_SERVICES_FILES_PRINT))
OUT_SERVICES_FILES_PRINT_COLON = $(addsuffix :,
$(OUT_SERVICES_FILES_PRINT))
RULES_SERVICES_PRINT = $(join $(OUT_SERVICES_FILES_PRINT_COLON),
$(SRC_SERVICES_FILES_PRINT))
# Now setup the dependency rules to generate a META-INF/services/... from the correct source.
META-INF_RULES_SERVICES
:=$(RULES_SERVICES_PRINT) $(join $(OUT_SERVICES_FILES_COLON),
$(SRC_SERVICES_FILES))
META-INF_RULES_SERVICES
:= $(RULES_SERVICES_PRINT) $(join $(OUT_SERVICES_FILES_COLON),
$(SRC_SERVICES_FILES))
# Eval the newly created rules to incorporate them into the make tree.
define addto_meta-inf_services
$1
$1
echo $(LOG_INFO) Installing META-INF/services/$$(@F)
$(CAT) $$< | $(SED) -e "s/^#\[$(OPENJDK_TARGET_OS)\]//" > $$@
endef
$(foreach i,
$(META-INF_RULES_SERVICES),$(eval $(call addto_meta-inf_services,
$i)))
$(foreach i,
$(META-INF_RULES_SERVICES), $(eval $(call addto_meta-inf_services,
$i)))
# Here is the generic rule, whose receipt the above rules will trigger.
COPY_EXTRA += $(OUT_SERVICES_FILES)
...
...
@@ -224,7 +224,7 @@ COPY_EXTRA += $(OUT_SERVICES_FILES_PRINT)
###
$(JDK_OUTPUTDIR)/classes/sun/nio/cs/ext/sjis0213.dat
: $(JDK_OUTPUTDIR)/gensrc/sun/nio/cs/ext/sjis0213.dat
$(JDK_OUTPUTDIR)/classes/sun/nio/cs/ext/sjis0213.dat: $(JDK_OUTPUTDIR)/gensrc/sun/nio/cs/ext/sjis0213.dat
$(call install-file)
COPY_EXTRA += $(JDK_OUTPUTDIR)/classes/sun/nio/cs/ext/sjis0213.dat
...
...
@@ -243,8 +243,8 @@ JAVAX_SOUND_SRC_FILES := \
javax.sound.sampled.spi.FormatConversionProvider \
javax.sound.sampled.spi.MixerProvider
COPY_EXTRA += $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/,$(JAVAX_SOUND_SRC_FILES))
COPY_EXTRA += $(addprefix $(JDK_OUTPUTDIR)/classes/META-INF/services/,
$(JAVAX_SOUND_SRC_FILES))
JAVAX_SOUND_RULES := $(foreach F,
$(JAVAX_SOUND_SRC_FILES),
$(JDK_OUTPUTDIR)/classes/META-INF/services/$(notdir $F):$(JAVAX_SOUND_SRC)/$F)
JAVAX_SOUND_RULES := $(foreach F,
$(JAVAX_SOUND_SRC_FILES),
$(JDK_OUTPUTDIR)/classes/META-INF/services/$(notdir $F):$(JAVAX_SOUND_SRC)/$F)
$(foreach R,
$(JAVAX_SOUND_RULES),$(eval $(call addto_meta-inf_services,
$R)))
$(foreach R,
$(JAVAX_SOUND_RULES), $(eval $(call addto_meta-inf_services,
$R)))
makefiles/CopySamples.gmk
浏览文件 @
eb182394
makefiles/CreateJars.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/GenerateClasses.gmk
浏览文件 @
eb182394
...
...
@@ -69,46 +69,46 @@ GENCLASSES :=
# Generate RMI stubs
#
$(eval $(call SetupRMICompilation,RMI_12,\
CLASSES:=sun.rmi.server.Activation$$$$ActivationSystemImpl
\
java.rmi.activation.ActivationGroup
\
com.sun.jndi.rmi.registry.ReferenceWrapper,
\
CLASSES_DIR:=$(CLASSES_DIR),
\
STUB_CLASSES_DIR:=$(STUB_CLASSES_DIR),
\
RUN_V12:=
true))
$(eval $(call SetupRMICompilation,RMI_12,
\
CLASSES := sun.rmi.server.Activation$$$$ActivationSystemImpl
\
java.rmi.activation.ActivationGroup
\
com.sun.jndi.rmi.registry.ReferenceWrapper,
\
CLASSES_DIR := $(CLASSES_DIR),
\
STUB_CLASSES_DIR := $(STUB_CLASSES_DIR),
\
RUN_V12 :=
true))
GENCLASSES += $(RMI_12)
$(eval $(call SetupRMICompilation,RMI_11,\
CLASSES:=sun.rmi.registry.RegistryImpl
\
sun.rmi.transport.DGCImpl,
\
CLASSES_DIR:=$(CLASSES_DIR),
\
STUB_CLASSES_DIR:=$(STUB_CLASSES_DIR),
\
RUN_V11:=
true))
$(eval $(call SetupRMICompilation,RMI_11,
\
CLASSES := sun.rmi.registry.RegistryImpl
\
sun.rmi.transport.DGCImpl,
\
CLASSES_DIR := $(CLASSES_DIR),
\
STUB_CLASSES_DIR := $(STUB_CLASSES_DIR),
\
RUN_V11 :=
true))
GENCLASSES += $(RMI_11)
# For RMI/IIOP call rmic a second time with -standardPackage option
# so that *_tie classes are generated in package without the prefix
# org.omg.stub (6375696)
JMAN_RMI_CLASSES
:=javax.management.remote.rmi.RMIConnectionImpl
\
JMAN_RMI_CLASSES
:= javax.management.remote.rmi.RMIConnectionImpl
\
javax.management.remote.rmi.RMIServerImpl
$(eval $(call SetupRMICompilation,RMI_IIOP,\
CLASSES:=$(JMAN_RMI_CLASSES),
\
CLASSES_DIR:=$(CLASSES_DIR),
\
STUB_CLASSES_DIR:=$(STUB_CLASSES_DIR),
\
RUN_V12:=true,
\
RUN_IIOP:=true,
\
RUN_IIOP_STDPKG:=
true))
$(eval $(call SetupRMICompilation,RMI_IIOP,
\
CLASSES := $(JMAN_RMI_CLASSES),
\
CLASSES_DIR := $(CLASSES_DIR),
\
STUB_CLASSES_DIR := $(STUB_CLASSES_DIR),
\
RUN_V12 := true,
\
RUN_IIOP := true,
\
RUN_IIOP_STDPKG :=
true))
GENCLASSES += $(RMI_IIOP)
# Keep generated RMI/JRMP Stub source files and copy them to RMIC_GENSRC_DIR
# so that javadoc can include them in the API (4997471)
$(eval $(call SetupRMICompilation,RMI_SRC,\
CLASSES:=$(JMAN_RMI_CLASSES),
\
CLASSES_DIR:=$(CLASSES_DIR),
\
STUB_CLASSES_DIR:=$(RMIC_GENSRC_DIR),
\
RUN_V12:=true,
\
KEEP_GENERATED:=
true))
GENCLASSES += $(filter %.java,$(RMI_SRC))
$(eval $(call SetupRMICompilation,RMI_SRC,
\
CLASSES := $(JMAN_RMI_CLASSES),
\
CLASSES_DIR := $(CLASSES_DIR),
\
STUB_CLASSES_DIR := $(RMIC_GENSRC_DIR),
\
RUN_V12 := true,
\
KEEP_GENERATED :=
true))
GENCLASSES += $(filter %.java,
$(RMI_SRC))
##########################################################################################
...
...
makefiles/GenerateData.gmk
浏览文件 @
eb182394
...
...
@@ -38,16 +38,16 @@ include Tools.gmk
# These are written directly into classes dir.
GENDATA :=
include GendataBreakIterator.gmk
include
gendata/
GendataBreakIterator.gmk
GENDATA += $(BREAK_ITERATOR)
include GendataFontConfig.gmk
include
gendata/
GendataFontConfig.gmk
GENDATA += $(GENDATA_FONT_CONFIG)
include GendataTZDB.gmk
include
gendata/
GendataTZDB.gmk
GENDATA += $(GENDATA_TZDB)
include GendataHtml32dtd.gmk
include
gendata/
GendataHtml32dtd.gmk
GENDATA += $(GENDATA_HTML32DTD)
##########################################################################################
...
...
@@ -75,9 +75,9 @@ GENDATA += $(GENDATA_CURDATA)
##########################################################################################
$(GENDATA)
: $(BUILD_TOOLS)
$(GENDATA): $(BUILD_TOOLS)
$(JDK_OUTPUTDIR)/classes/_the.gendata
: $(GENDATA)
$(JDK_OUTPUTDIR)/classes/_the.gendata: $(GENDATA)
$(TOUCH) $@
all: $(JDK_OUTPUTDIR)/classes/_the.gendata
...
...
makefiles/Generate
Java
Sources.gmk
→
makefiles/GenerateSources.gmk
浏览文件 @
eb182394
...
...
@@ -38,57 +38,57 @@ include Tools.gmk
# Now include all the rules that generate Java sources.
# The Java sources are written into the gensrc_.... directories.
include GensrcProperties.gmk
include
gensrc/
GensrcProperties.gmk
GENSRC += $(GENSRC_PROPERTIES)
include GensrcLocaleDataMetaInfo.gmk
include
gensrc/
GensrcLocaleDataMetaInfo.gmk
GENSRC += $(GENSRC_LOCALEDATAMETAINFO)
include GensrcCharacterData.gmk
include
gensrc/
GensrcCharacterData.gmk
GENSRC += $(GENSRC_CHARACTERDATA)
include GensrcJDWP.gmk
include
gensrc/
GensrcJDWP.gmk
GENSRC += $(GENSRC_JDWP)
include GensrcMisc.gmk
include
gensrc/
GensrcMisc.gmk
GENSRC += $(GENSRC_MISC)
include GensrcCharsetMapping.gmk
include
gensrc/
GensrcCharsetMapping.gmk
GENSRC += $(GENSRC_CHARSETMAPPING)
include GensrcCharsetCoder.gmk
include
gensrc/
GensrcCharsetCoder.gmk
GENSRC += $(GENSRC_CHARSETCODER)
include GensrcBuffer.gmk
include
gensrc/
GensrcBuffer.gmk
GENSRC += $(GENSRC_BUFFER)
include GensrcExceptions.gmk
include
gensrc/
GensrcExceptions.gmk
GENSRC += $(GENSRC_EXCEPTIONS)
ifneq ($(OPENJDK_TARGET_OS),windows)
include GensrcIcons.gmk
ifneq ($(OPENJDK_TARGET_OS),
windows)
include
gensrc/
GensrcIcons.gmk
GENSRC += $(GENSRC_AWT_ICONS)
ifeq ($(OPENJDK_TARGET_OS),macosx)
ifeq ($(OPENJDK_TARGET_OS),
macosx)
GENSRC += $(GENSRC_OSX_ICONS)
endif
include GensrcX11Wrappers.gmk
include
gensrc/
GensrcX11Wrappers.gmk
GENSRC += $(GENSRC_X11WRAPPERS)
endif
include GensrcCLDR.gmk
include
gensrc/
GensrcCLDR.gmk
GENSRC += $(GENSRC_CLDR)
include GensrcSwing.gmk
include
gensrc/
GensrcSwing.gmk
GENSRC += $(GENSRC_SWING_BEANINFO) $(GENSRC_SWING_NIMBUS)
ifeq ($(OPENJDK_TARGET_OS), macosx)
include
GensrcJObjC.gmk
include gensrc/
GensrcJObjC.gmk
GENSRC += $(GENSRC_JOBJC)
endif
$(GENSRC)
: $(BUILD_TOOLS)
$(GENSRC): $(BUILD_TOOLS)
all: $(GENSRC)
...
...
makefiles/Images.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/Import.gmk
浏览文件 @
eb182394
...
...
@@ -40,12 +40,12 @@ IMPORT_BINARIES := CORBA
#######
# Put the libraries here. Different locations for different target apis.
ifeq ($(OPENJDK_TARGET_OS_API),posix)
INSTALL_LIBRARIES_HERE:=
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
HOTSPOT_LIB_DIR:=
$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)
ifeq ($(OPENJDK_TARGET_OS_API),
posix)
INSTALL_LIBRARIES_HERE :=
$(JDK_OUTPUTDIR)/lib$(OPENJDK_TARGET_CPU_LIBDIR)
HOTSPOT_LIB_DIR :=
$(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU_LIBDIR)
else
INSTALL_LIBRARIES_HERE:=
$(JDK_OUTPUTDIR)/bin
HOTSPOT_LIB_DIR:=
$(HOTSPOT_DIST)/jre/bin
INSTALL_LIBRARIES_HERE :=
$(JDK_OUTPUTDIR)/bin
HOTSPOT_LIB_DIR :=
$(HOTSPOT_DIST)/jre/bin
endif
#######
...
...
@@ -55,10 +55,10 @@ endif
# introduce artificial dependency (_DEP) buuhhh
define ImportClasses
$1_CLASSES_DEP := $$(IMPORT_TARGET_CLASSES)
IMPORT_TARGET_CLASSES += $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported
$1_CLASSES_DEP := $$(IMPORT_TARGET_CLASSES)
IMPORT_TARGET_CLASSES += $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported
$(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported
: $$($1_DIST)/lib/classes.jar $$($1_CLASSES_DEP)
$(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported
: $$($1_DIST)/lib/classes.jar $$($1_CLASSES_DEP)
$(ECHO) Importing $1 classes.jar
$(MKDIR) -p $$(@D)
$(RM) $$@ $$@.tmp
...
...
@@ -67,10 +67,10 @@ $(JDK_OUTPUTDIR)/classes/_the.$1.classes.imported : $$($1_DIST)/lib/classes.jar
endef
define ImportSources
$1_SOURCES_DEP := $$(IMPORT_TARGET_SOURCES)
IMPORT_TARGET_SOURCES += $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported
$1_SOURCES_DEP := $$(IMPORT_TARGET_SOURCES)
IMPORT_TARGET_SOURCES += $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported
$(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported
: $$($1_DIST)/lib/src.zip $$($1_SOURCES_DEP)
$(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported
: $$($1_DIST)/lib/src.zip $$($1_SOURCES_DEP)
$(ECHO) Importing $1 src.zip
$(MKDIR) -p $$(@D)
$(RM) $$@ $$@.tmp
...
...
@@ -79,10 +79,10 @@ $(JDK_OUTPUTDIR)/impsrc/_the.$1.src.imported : $$($1_DIST)/lib/src.zip $$($1_SOU
endef
define ImportBinaries
$1_BINARIES_DEP := $$(IMPORT_TARGET_BINARIES)
IMPORT_TARGET_BINARIES += $(JDK_OUTPUTDIR)/_the.$1.binaries.imported
$1_BINARIES_DEP := $$(IMPORT_TARGET_BINARIES)
IMPORT_TARGET_BINARIES += $(JDK_OUTPUTDIR)/_the.$1.binaries.imported
$(JDK_OUTPUTDIR)/_the.$1.binaries.imported
: $$($1_DIST)/lib/bin.zip $$($1_BINARIES_DEP)
$(JDK_OUTPUTDIR)/_the.$1.binaries.imported
: $$($1_DIST)/lib/bin.zip $$($1_BINARIES_DEP)
$(ECHO) Importing $1 bin.zip
$(MKDIR) -p $$(@D)
$(RM) $$@ $$@.tmp
...
...
@@ -92,9 +92,9 @@ endef
#######
$(foreach I,$(IMPORT_CLASSES), $(eval $(call ImportClasses,$I)))
$(foreach I,$(IMPORT_SOURCES), $(eval $(call ImportSources,$I)))
$(foreach I,$(IMPORT_BINARIES), $(eval $(call ImportBinaries,$I)))
$(foreach I,
$(IMPORT_CLASSES), $(eval $(call ImportClasses,$I)))
$(foreach I,
$(IMPORT_SOURCES), $(eval $(call ImportSources,$I)))
$(foreach I,
$(IMPORT_BINARIES), $(eval $(call ImportBinaries,$I)))
IMPORT_TARGET_FILES += $(IMPORT_TARGET_CLASSES) $(IMPORT_TARGET_SOURCES) $(IMPORT_TARGET_BINARIES)
...
...
@@ -104,7 +104,7 @@ define CopyDir
$1_SRC_FILES := $(shell $(FIND) $2 -type f -a \( -name DUMMY $(addprefix -o$(SPACE)-name$(SPACE),$4) \))
$1_DST_FILES := $$(patsubst $2/%,$3/%,$$($1_SRC_FILES))
IMPORT_TARGET_FILES += $$($1_DST_FILES)
$3/%
: $2/%
$3/%
: $2/%
$(ECHO) $(LOG_INFO) Copying $$(@F)
$$(install-file)
endef
...
...
@@ -114,7 +114,7 @@ endef
#
# Import hotspot
#
HOTSPOT_IMPORT_FILES
:=
$(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \
HOTSPOT_IMPORT_FILES
:=
$(addprefix $(LIBRARY_PREFIX), jvm.* saproc.* jsig.* sawindbg.* jvm_db.* jvm_dtrace.*) \
Xusage.txt sa-jdi.jar
$(eval $(call CopyDir,HOTSPOT0, $(HOTSPOT_LIB_DIR), $(INSTALL_LIBRARIES_HERE), $(HOTSPOT_IMPORT_FILES)))
$(eval $(call CopyDir,HOTSPOT1, $(HOTSPOT_DIST)/lib, $(JDK_OUTPUTDIR)/lib, $(HOTSPOT_IMPORT_FILES)))
...
...
@@ -125,35 +125,35 @@ JSIG_DEBUGINFO := $(strip $(wildcard $(HOTSPOT_DIST)/jre/lib$(OPENJDK_TARGET_CPU
ifneq ($(OPENJDK_TARGET_OS), windows)
ifeq ($(JVM_VARIANT_SERVER), true)
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
ifneq (,
$(JSIG_DEBUGINFO))
ifneq (,
$(JSIG_DEBUGINFO))
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/server/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
endif
endif
ifeq ($(JVM_VARIANT_CLIENT), true)
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
ifneq (,
$(JSIG_DEBUGINFO))
ifneq (,
$(JSIG_DEBUGINFO))
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/client/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
endif
endif
ifeq ($(JVM_VARIANT_MINIMAL1), true)
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(LIBRARY_PREFIX)jsig$(SHARED_LIBRARY_SUFFIX)
ifneq (,
$(JSIG_DEBUGINFO))
ifneq (,
$(JSIG_DEBUGINFO))
IMPORT_TARGET_FILES += $(INSTALL_LIBRARIES_HERE)/minimal/$(foreach I,$(JSIG_DEBUGINFO),$(notdir $I))
endif
endif
endif
$(INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX)
: $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
$(INSTALL_LIBRARIES_HERE)/server/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../$(@F) $@
$(INSTALL_LIBRARIES_HERE)/server/%.debuginfo
: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
$(INSTALL_LIBRARIES_HERE)/server/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../$(@F) $@
$(INSTALL_LIBRARIES_HERE)/server/%.diz
: $(INSTALL_LIBRARIES_HERE)/%.diz
$(INSTALL_LIBRARIES_HERE)/server/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz
$(MKDIR) -p $(@D)
$(RM) $@
$(RM) $@.tmp $(basename $@).debuginfo
...
...
@@ -162,17 +162,17 @@ $(INSTALL_LIBRARIES_HERE)/server/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
$(RM) $(basename $@).debuginfo
$(MV) $@.tmp $@
$(INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX)
: $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
$(INSTALL_LIBRARIES_HERE)/client/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../$(@F) $@
$(INSTALL_LIBRARIES_HERE)/client/%.debuginfo
: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
$(INSTALL_LIBRARIES_HERE)/client/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../$(@F) $@
$(INSTALL_LIBRARIES_HERE)/client/%.diz
: $(INSTALL_LIBRARIES_HERE)/%.diz
$(INSTALL_LIBRARIES_HERE)/client/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz
$(MKDIR) -p $(@D)
$(RM) $@
$(RM) $@.tmp $(basename $@).debuginfo
...
...
@@ -181,17 +181,17 @@ $(INSTALL_LIBRARIES_HERE)/client/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
$(RM) $(basename $@).debuginfo
$(MV) $@.tmp $@
$(INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX)
: $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
$(INSTALL_LIBRARIES_HERE)/minimal/%$(SHARED_LIBRARY_SUFFIX): $(INSTALL_LIBRARIES_HERE)/%$(SHARED_LIBRARY_SUFFIX)
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../$(@F) $@
$(INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo
: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
$(INSTALL_LIBRARIES_HERE)/minimal/%.debuginfo: $(INSTALL_LIBRARIES_HERE)/%.debuginfo
$(MKDIR) -p $(@D)
$(RM) $@
$(LN) -s ../$(@F) $@
$(INSTALL_LIBRARIES_HERE)/minimal/%.diz
: $(INSTALL_LIBRARIES_HERE)/%.diz
$(INSTALL_LIBRARIES_HERE)/minimal/%.diz: $(INSTALL_LIBRARIES_HERE)/%.diz
$(MKDIR) -p $(@D)
$(RM) $@
$(RM) $@.tmp $(basename $@).debuginfo
...
...
@@ -202,10 +202,10 @@ $(INSTALL_LIBRARIES_HERE)/minimal/%.diz : $(INSTALL_LIBRARIES_HERE)/%.diz
##########################################################################################
# Unpack the binary distributions of the crypto classes if they exist.
SEC_FILES_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/sec-bin.zip
SEC_FILES_WIN_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/sec-windows-bin.zip
JGSS_WIN32_FILES_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/jgss-windows-i586-bin.zip
JGSS_WIN64_FILES_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/jgss-windows-x64-bin.zip
SEC_FILES_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/sec-bin.zip
SEC_FILES_WIN_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/sec-windows-bin.zip
JGSS_WIN32_FILES_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/jgss-windows-i586-bin.zip
JGSS_WIN64_FILES_ZIP
:=
$(JDK_TOPDIR)/make/tools/crypto/jgss-windows-x64-bin.zip
define unzip-sec-file
$(ECHO) Unzipping $(<F)
...
...
@@ -227,14 +227,14 @@ $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped: $(JGSS_WIN32_FILES
$(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped: $(JGSS_WIN64_FILES_ZIP)
$(call unzip-sec-file)
ifneq ($(wildcard $(SEC_FILES_ZIP)),)
ifneq ($(wildcard $(SEC_FILES_ZIP)),
)
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped
ifeq ($(OPENJDK_TARGET_OS),windows)
ifeq ($(OPENJDK_TARGET_OS),
windows)
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped
ifeq ($(OPENJDK_TARGET_CPU),x86)
ifeq ($(OPENJDK_TARGET_CPU),
x86)
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped
endif
ifeq ($(OPENJDK_TARGET_CPU),x86_64)
ifeq ($(OPENJDK_TARGET_CPU),
x86_64)
IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped
endif
endif
...
...
makefiles/Makefile
浏览文件 @
eb182394
...
...
@@ -24,19 +24,19 @@
#
# Locate this Makefile
ifeq
($(filter /%,
$(lastword $(MAKEFILE_LIST))),
)
makefile_path
:=
$(CURDIR)
/
$(
lastword
$(MAKEFILE_LIST)
)
ifeq
($(filter /%,
$(lastword $(MAKEFILE_LIST))),
)
makefile_path
:=
$(CURDIR)
/
$(
lastword
$(MAKEFILE_LIST)
)
else
makefile_path
:=
$(
lastword
$(MAKEFILE_LIST)
)
makefile_path
:=
$(
lastword
$(MAKEFILE_LIST)
)
endif
repo_dir
:=
$(
patsubst
%/makefiles/Makefile,%,
$(makefile_path)
)
repo_dir
:=
$(
patsubst
%/makefiles/Makefile, %,
$(makefile_path)
)
# What is the name of this subsystem (langtools, corba, etc)?
subsystem_name
:=
$(
notdir
$(repo_dir)
)
subsystem_name
:=
$(
notdir
$(repo_dir)
)
# Try to locate top-level makefile
top_level_makefile
:=
$(repo_dir)
/../common/makefiles/Makefile
ifneq
($(wildcard $(top_level_makefile)),)
top_level_makefile
:=
$(repo_dir)
/../common/makefiles/Makefile
ifneq
($(wildcard $(top_level_makefile)),
)
$(info
Will
run
$(subsystem_name)
target
on
top-level
Makefile)
$(info WARNING
:
This is a non-recommended way of building!)
$(info
===================================================)
...
...
makefiles/PatchList.solaris
浏览文件 @
eb182394
...
...
@@ -28,4 +28,3 @@ COMPILER 5.8 Sparc 109508-03 x86 109509-03 REQ "For Forte Development 6 upd
COMPILER 5.8 Sparc 109510-03 x86 109511-03 REQ "For Forte 6.1 Debugger"
COMPILER 5.8 Sparc 109516-02 x86 109517-02 REQ "For Forte 6.1 Performance Analyzer"
COMPILER 5.8 Sparc 110480-01 x86 110481-01 REQ "For Forte TeamWare"
makefiles/ProfileNames.gmk
浏览文件 @
eb182394
...
...
@@ -48,7 +48,7 @@ PROFILE_VERSION_JAVA_TARGETS := $(foreach i, $(ALL_PROFILES), $(subst XXX,$i, $(
PROFILE_VERSION_CLASS_TARGETS := $(foreach i, $(PROFILE_VERSION_JAVA_TARGETS), $(i:.java=.class))
# Function to map from profile designator, profile_1 etc, to its number
profile_number = $(if $(patsubst profile_%,%, $(1)),$(patsubst profile_%,%, $(1)), $(words $(PROFILE_NAMES) extra))
profile_number = $(if $(patsubst profile_%,%, $(1)),
$(patsubst profile_%,%, $(1)), $(words $(PROFILE_NAMES) extra))
# Function to map from profile number, 1, 2 etc, to the corresponding name
# An invalid number maps to an empty name
...
...
@@ -61,4 +61,3 @@ profile_version_number = $(patsubst $(JDK_OUTPUTDIR)/gen_profile_%/$(VERSION_JAV
# Function to go from a profile Version.java target to profile name. If not
# a profile version target then we need a number that maps to an empty name
profile_version_name = $(word $(if $(filter-out $(call profile_version_number, $(1)), $(1)), $(call profile_version_number, $(1)), $(words $(PROFILE_NAMES) extra)), $(PROFILE_NAMES))
makefiles/Profiles.gmk
浏览文件 @
eb182394
...
...
@@ -91,21 +91,21 @@ ALL_JARS := $(FULL_JRE_JARS) \
$(IMAGES_OUTPUTDIR)/lib/ct.sym \
$(IMAGES_OUTPUTDIR)/src.zip
ifeq ($(INCLUDE_SA),true)
ifeq ($(INCLUDE_SA),
true)
ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/sa-jdi.jar
endif
ifeq ($(OPENJDK_TARGET_OS),solaris)
ifeq ($(OPENJDK_TARGET_OS),
solaris)
ifndef OPENJDK
ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/ext/ucrypto.jar
endif
endif
ifeq ($(OPENJDK_TARGET_OS),windows)
ifeq ($(OPENJDK_TARGET_OS),
windows)
ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/ext/sunmscapi.jar
endif
ifeq ($(OPENJDK_TARGET_OS),macosx)
ifeq ($(OPENJDK_TARGET_OS),
macosx)
ALL_JARS += $(IMAGES_OUTPUTDIR)/lib/JObjC.jar
endif
...
...
@@ -116,7 +116,7 @@ else ifeq ($(PROFILE), profile_2)
else ifeq ($(PROFILE), profile_3)
PROFILE_JARS := $(PROFILE_3_JARS)
endif
ifneq ($(PROFILE),)
ifneq ($(PROFILE),
)
JARS := $(CUSTOM_PROFILE_JARS) $(PROFILE_JARS)
else
JARS := $(ALL_JARS)
...
...
@@ -128,7 +128,7 @@ endif
# we don't need to do anything if not building a profile
ifneq ($(PROFILE),)
ifneq ($(PROFILE),
)
# Need all files to generate the exclude lists
...
...
@@ -272,8 +272,8 @@ include profile-rtjar-includes.txt
# NOTE: Classfiles with $ in their name are problematic as that is the
# meta-character for both make and the shell! Hence the \$$$$ substitution.
# But note that if you echo these values they will NOT display as expected.
class_list =
$(patsubst $(JDK_OUTPUTDIR)/classes/%,%,
\
$(foreach i,
$(1), $(subst $$,\$$$$, $(wildcard $(JDK_OUTPUTDIR)/classes/$i))))
class_list =
$(patsubst $(JDK_OUTPUTDIR)/classes/%,%,
\
$(foreach i,
$(1), $(subst $$,\$$$$, $(wildcard $(JDK_OUTPUTDIR)/classes/$i))))
ifeq ($(PROFILE), profile_1)
RT_JAR_EXCLUDES += \
...
...
@@ -321,9 +321,8 @@ endif
# Filter out non-OpenJDK services
ifdef OPENJDK
EXCLUDED_SERVICES := META-INF/services/javax.script.ScriptEngineFactory
PROFILE_INCLUDE_METAINF_SERVICES := $(filter-out $(EXCLUDED_SERVICES),$(PROFILE_INCLUDE_METAINF_SERVICES))
PROFILE_INCLUDE_METAINF_SERVICES := $(filter-out $(EXCLUDED_SERVICES),
$(PROFILE_INCLUDE_METAINF_SERVICES))
endif
endif # profile
makefiles/Setup.gmk
浏览文件 @
eb182394
...
...
@@ -23,11 +23,11 @@
# questions.
#
DISABLE_WARNINGS
:=
-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
DISABLE_WARNINGS
:=
-Xlint:all,-deprecation,-unchecked,-rawtypes,-cast,-serial,-dep-ann,-static,-fallthrough,-try,-varargs,-empty,-finally
# To build with all warnings enabled, do the following:
# make JAVAC_WARNINGS="-Xlint:all -Xmaxwarns 10000"
JAVAC_WARNINGS
:=
-Xlint:-unchecked,-deprecation,-overrides,classfile,dep-ann,divzero,varargs -Werror
JAVAC_WARNINGS
:=
-Xlint:-unchecked,-deprecation,-overrides,classfile,dep-ann,divzero,varargs -Werror
# Any java code executed during a JDK build to build other parts of the JDK must be
# executed by the bootstrap JDK (probably with -Xbootclasspath/p: ) and for this
...
...
@@ -37,31 +37,31 @@ JAVAC_WARNINGS:=-Xlint:-unchecked,-deprecation,-overrides,classfile,dep-ann,divz
# The generate old bytecode javac setup uses the new compiler to compile for the
# boot jdk to generate tools that need to be run with the boot jdk.
# Thus we force the target bytecode to the previous JDK version.
$(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,\
JVM:=$(JAVA),
\
JAVAC:=$(NEW_JAVAC),
\
$(eval $(call SetupJavaCompiler,GENERATE_OLDBYTECODE,
\
JVM := $(JAVA),
\
JAVAC := $(NEW_JAVAC),
\
FLAGS := $(BOOT_JDK_SOURCETARGET) -bootclasspath $(BOOT_RTJAR) $(DISABLE_WARNINGS), \
SERVER_DIR:=$(SJAVAC_SERVER_DIR),
\
SERVER_JVM:=
$(SJAVAC_SERVER_JAVA)))
SERVER_DIR := $(SJAVAC_SERVER_DIR),
\
SERVER_JVM :=
$(SJAVAC_SERVER_JAVA)))
# The generate new bytecode javac setup uses the new compiler to compile for the
# new jdk. This new bytecode might only be possible to run using the new jvm.
$(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE,\
JVM:=$(JAVA),
\
JAVAC:=$(NEW_JAVAC),
\
FLAGS:=
-bootclasspath $(JDK_OUTPUTDIR)/classes -source 8 -target 8 \
$(eval $(call SetupJavaCompiler,GENERATE_JDKBYTECODE,
\
JVM := $(JAVA),
\
JAVAC := $(NEW_JAVAC),
\
FLAGS :=
-bootclasspath $(JDK_OUTPUTDIR)/classes -source 8 -target 8 \
-encoding ascii -XDignore.symbol.file=true $(JAVAC_WARNINGS) \
$(GENERATE_JDKBYTECODE_EXTRA_FLAGS),
\
SERVER_DIR:=$(SJAVAC_SERVER_DIR),
\
SERVER_JVM:=
$(SJAVAC_SERVER_JAVA)))
$(GENERATE_JDKBYTECODE_EXTRA_FLAGS),
\
SERVER_DIR := $(SJAVAC_SERVER_DIR),
\
SERVER_JVM :=
$(SJAVAC_SERVER_JAVA)))
# After the jdk is built, we want to build demos using only the recently
# generated jdk classes and nothing else, no jdk source, etc etc.
# I.e. the rt.jar, but since rt.jar has not yet been generated
# (it will be in "make images") therefore we use classes instead.
$(eval $(call SetupJavaCompiler,GENERATE_USINGJDKBYTECODE,\
JVM:=$(JAVA),
\
JAVAC:=$(NEW_JAVAC),
\
FLAGS:=-bootclasspath $(JDK_OUTPUTDIR)/classes $(DISABLE_WARNINGS),
\
SERVER_DIR:=$(SJAVAC_SERVER_DIR),
\
SERVER_JVM:=
$(SJAVAC_SERVER_JAVA)))
$(eval $(call SetupJavaCompiler,GENERATE_USINGJDKBYTECODE,
\
JVM := $(JAVA),
\
JAVAC := $(NEW_JAVAC),
\
FLAGS := -bootclasspath $(JDK_OUTPUTDIR)/classes $(DISABLE_WARNINGS),
\
SERVER_DIR := $(SJAVAC_SERVER_DIR),
\
SERVER_JVM :=
$(SJAVAC_SERVER_JAVA)))
makefiles/SignJars.gmk
浏览文件 @
eb182394
...
...
@@ -97,7 +97,7 @@ $(SIGNED_JARS): check-keystore
all: $(SIGNED_JARS)
@$(PRINTF) "\n***The jar files built by the 'jar-sign' target must***"
@$(PRINTF) "\n***still be checked into the closed workspace!
***"
@$(PRINTF) "\n***still be checked into the closed workspace!***"
@$(PRINTF) $(README-MAKEFILE_WARNING)
endif # !OPENJDK
makefiles/Tools.gmk
浏览文件 @
eb182394
...
...
@@ -24,129 +24,128 @@
#
# Cache all finds needed for this file. Only used on windows.
$(eval $(call FillCacheFind,$(JDK_TOPDIR)/make/tools \
$(eval $(call FillCacheFind,
$(JDK_TOPDIR)/make/tools \
$(JDK_TOPDIR)/makefiles/sun))
TOOLS_SRC
:=
$(JDK_TOPDIR)/make/tools/src \
TOOLS_SRC
:=
$(JDK_TOPDIR)/make/tools/src \
$(JDK_TOPDIR)/makefiles/sun/awt/ \
$(JDK_TOPDIR)/makefiles/sun/osxapp \
$(JDK_TOPDIR)/make/tools/swing-beans
ifneq ($(OPENJDK_TARGET_OS),windows)
TOOLS_SRC
+=
$(JDK_TOPDIR)/src/solaris/classes/sun/awt/X11/generator
ifneq ($(OPENJDK_TARGET_OS),
windows)
TOOLS_SRC
+=
$(JDK_TOPDIR)/src/solaris/classes/sun/awt/X11/generator
endif
# The exception handling of swing beaninfo which have the own tool directory
ifeq (,$(BUILD_TOOLS))
$(eval $(call SetupJavaCompilation,BUILD_TOOLS,\
SETUP:=GENERATE_OLDBYTECODE,\
SRC:=$(TOOLS_SRC),\
BIN:=$(JDK_OUTPUTDIR)/btclasses))
ifeq (, $(BUILD_TOOLS))
$(eval $(call SetupJavaCompilation,BUILD_TOOLS, \
SETUP := GENERATE_OLDBYTECODE, \
SRC := $(TOOLS_SRC), \
BIN := $(JDK_OUTPUTDIR)/btclasses))
endif
$(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/%.template
: \
$(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/%.template: \
$(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/%.template
$(call install-file)
BUILD_TOOLS += $(foreach i,
$(wildcard $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/*.template),
$(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/$(notdir $i))
BUILD_TOOLS += $(foreach i,
$(wildcard $(JDK_TOPDIR)/src/share/classes/javax/swing/plaf/nimbus/*.template),
$(JDK_OUTPUTDIR)/btclasses/build/tools/generatenimbus/resources/$(notdir $i))
# Resources used by CheckDeps tool
$(JDK_OUTPUTDIR)/btclasses/build/tools/deps/%
: \
$(JDK_OUTPUTDIR)/btclasses/build/tools/deps/%: \
$(JDK_TOPDIR)/make/tools/src/build/tools/deps/%
$(call install-file)
BUILD_TOOLS += $(JDK_OUTPUTDIR)/btclasses/build/tools/deps/refs.allowed
# Add a checksum ("jsum") to the end of a text file. Prevents trivial tampering with class lists.
TOOL_ADDJSUM
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_ADDJSUM
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.addjsum.AddJsum
# The buildmetaindex tool creates a meta-index to make core class loaders lazier.
TOOL_BUILDMETAINDEX
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_BUILDMETAINDEX
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.buildmetaindex.BuildMetaIndex
# The comment checker is not currently used. Should it be removed or added to javac?
TOOL_COMMENTCHECKER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_COMMENTCHECKER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.commentchecker.CommentChecker
TOOL_COMPILEFONTCONFIG
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_COMPILEFONTCONFIG
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.compilefontconfig.CompileFontConfig
TOOL_COMPILEPROPERTIES
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_COMPILEPROPERTIES
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.compileproperties.CompileProperties
TOOL_STRIPPROPERTIES
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_STRIPPROPERTIES
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.stripproperties.StripProperties
TOOL_JARREORDER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_JARREORDER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.jarreorder.JarReorder
TOOL_GENERATECHARACTER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_GENERATECHARACTER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.generatecharacter.GenerateCharacter
TOOL_CHARACTERNAME
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_CHARACTERNAME
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.generatecharacter.CharacterName
TOOL_DIRDIFF
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_DIRDIFF
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.dirdiff.DirDiff
TOOL_DTDBUILDER
=
$(JAVA) -Ddtd_home=$(JDK_TOPDIR)/make/tools/dtdbuilder/dtds \
TOOL_DTDBUILDER
=
$(JAVA) -Ddtd_home=$(JDK_TOPDIR)/make/tools/dtdbuilder/dtds \
-cp $(JDK_OUTPUTDIR)/btclasses build.tools.dtdbuilder.DTDBuilder
TOOL_GENERATEBREAKITERATORDATA
=
$(JAVA) \
TOOL_GENERATEBREAKITERATORDATA
=
$(JAVA) \
-cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.generatebreakiteratordata.GenerateBreakIteratorData
TOOL_GENERATECURRENCYDATA
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_GENERATECURRENCYDATA
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.generatecurrencydata.GenerateCurrencyData
TOOL_HASHER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_HASHER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.hasher.Hasher
# Jarsplit used in jdk/makefiles/common/Release.gmk
TOOL_JARSPLIT
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_JARSPLIT
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.jarsplit.JarSplit
TOOL_TZDB
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_TZDB
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.tzdb.TzdbZoneRulesCompiler
# TODO: There are references to the jdwpgen.jar in jdk/make/netbeans/jdwpgen/build.xml
# and nbproject/project.properties in the same dir. Needs to be looked at.
TOOL_JDWPGEN
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.jdwpgen.Main
TOOL_JDWPGEN
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.jdwpgen.Main
# TODO: Lots of files in jdk/make/tools/CharsetMapping dir
TOOL_CHARSETMAPPING
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_CHARSETMAPPING
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.charsetmapping.Main
TOOL_SPP
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.spp.Spp
TOOL_SPP
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses build.tools.spp.Spp
# TODO: Only referenced in jdk/make/tools/sharing/README.txt. Find out what it means.
TOOL_MAKECLASSLIST
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_MAKECLASSLIST
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.makeclasslist.MakeClasslist
# Nimbus is used somewhere in the swing build.
TOOL_GENERATENIMBUS
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_GENERATENIMBUS
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.generatenimbus.Generator
TOOL_WRAPPERGENERATOR
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_WRAPPERGENERATOR
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
WrapperGenerator
TOOL_AWT_TOBIN
=
$(JAVA) -Djava.awt.headless=true -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_AWT_TOBIN
=
$(JAVA) -Djava.awt.headless=true -cp $(JDK_OUTPUTDIR)/btclasses \
sun.awt.ToBin
TOOL_OSX_TOBIN
=
$(JAVA) -Djava.awt.headless=true -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_OSX_TOBIN
=
$(JAVA) -Djava.awt.headless=true -cp $(JDK_OUTPUTDIR)/btclasses \
sun.osxapp.ToBin
TOOL_CLDRCONVERTER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
TOOL_CLDRCONVERTER
=
$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
build.tools.cldrconverter.CLDRConverter
TOOL_REMOVEMETHODS
=
$(JAVA) -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
TOOL_REMOVEMETHODS
=
$(JAVA) -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
-cp $(JDK_OUTPUTDIR)/btclasses:$(JDK_OUTPUTDIR) \
build.tools.classfile.RemoveMethods
TOOL_CHECKDEPS
=
$(JAVA) -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
TOOL_CHECKDEPS
=
$(JAVA) -Xbootclasspath/p:$(LANGTOOLS_OUTPUTDIR)/dist/bootstrap/lib/javac.jar \
-cp $(JDK_OUTPUTDIR)/btclasses:$(JDK_OUTPUTDIR) \
build.tools.deps.CheckDeps
...
...
@@ -157,22 +156,22 @@ TOOL_ADDTORESTRICTEDPKGS=$(JAVA) -cp $(JDK_OUTPUTDIR)/btclasses \
# Tools needed on solaris because OBJCOPY is broken.
$(eval $(call SetupNativeCompilation,ADD_GNU_DEBUGLINK,\
SRC:=$(JDK_TOPDIR)/make/tools/add_gnu_debuglink,
\
LANG:=C,
\
CC:=$(BUILD_CC),
\
LDEXE:=$(BUILD_LD),
\
LDFLAGS:=-lelf,
\
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/add_gnu_debuglink,
\
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/btbin,
\
PROGRAM:=
add_gnu_debuglink))
$(eval $(call SetupNativeCompilation,FIX_EMPTY_SEC_HDR_FLAGS,\
SRC:=$(JDK_TOPDIR)/make/tools/fix_empty_sec_hdr_flags,
\
LANG:=C,
\
CC:=$(BUILD_CC),
\
LDEXE:=$(BUILD_LD),
\
LDFLAGS:=-lelf,
\
OBJECT_DIR:=$(JDK_OUTPUTDIR)/objs/fix_empty_sec_hdr_flags,
\
OUTPUT_DIR:=$(JDK_OUTPUTDIR)/btbin,
\
PROGRAM:=
fix_empty_sec_hdr_flags))
$(eval $(call SetupNativeCompilation,ADD_GNU_DEBUGLINK,
\
SRC := $(JDK_TOPDIR)/make/tools/add_gnu_debuglink,
\
LANG := C,
\
CC := $(BUILD_CC),
\
LDEXE := $(BUILD_LD),
\
LDFLAGS := -lelf,
\
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/add_gnu_debuglink,
\
OUTPUT_DIR := $(JDK_OUTPUTDIR)/btbin,
\
PROGRAM :=
add_gnu_debuglink))
$(eval $(call SetupNativeCompilation,FIX_EMPTY_SEC_HDR_FLAGS,
\
SRC := $(JDK_TOPDIR)/make/tools/fix_empty_sec_hdr_flags,
\
LANG := C,
\
CC := $(BUILD_CC),
\
LDEXE := $(BUILD_LD),
\
LDFLAGS := -lelf,
\
OBJECT_DIR := $(JDK_OUTPUTDIR)/objs/fix_empty_sec_hdr_flags,
\
OUTPUT_DIR := $(JDK_OUTPUTDIR)/btbin,
\
PROGRAM :=
fix_empty_sec_hdr_flags))
makefiles/GendataBreakIterator.gmk
→
makefiles/
gendata/
GendataBreakIterator.gmk
浏览文件 @
eb182394
...
...
@@ -50,14 +50,14 @@ BREAK_ITERATOR_CLASSES = $(BREAK_ITERATOR_DIR)/classes
# Because we are targeting jdk N-1, but the surrounding source code is jdk N.
# These two files should be moved out to a build tool! We have to disable
# sjavac here as well.
$(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR,\
SETUP:=GENERATE_OLDBYTECODE,
\
SRC:=$(TEXT_SRCDIR),
\
DISABLE_SJAVAC:=true,
\
$(eval $(call SetupJavaCompilation,BUILD_BREAKITERATOR,
\
SETUP := GENERATE_OLDBYTECODE,
\
SRC := $(TEXT_SRCDIR),
\
DISABLE_SJAVAC := true,
\
JAVAC_SOURCE_PATH_OVERRIDE := $(TEXT_SRCDIR)/$(TEXT_PKG), \
INCLUDES:=$(TEXT_PKG),
\
INCLUDE_FILES:=$(TEXT_SOURCES),
\
BIN:=
$(BREAK_ITERATOR_CLASSES)))
INCLUDES := $(TEXT_PKG),
\
INCLUDE_FILES := $(TEXT_SOURCES),
\
BIN :=
$(BREAK_ITERATOR_CLASSES)))
# Generate data resource files.
# input
...
...
makefiles/GendataFontConfig.gmk
→
makefiles/
gendata/
GendataFontConfig.gmk
浏览文件 @
eb182394
...
...
@@ -68,11 +68,11 @@ endif
###
$(GENDATA_FONT_CONFIG_DST)/%.src
: \
$(GENDATA_FONT_CONFIG_DST)/%.src: \
$(GENDATA_FONT_CONFIG_SRC_DIR)/$(GENDATA_FONT_CONFIG_SRC_PREFIX)%
$(call install-file)
$(GENDATA_FONT_CONFIG_DST)/%.bfc
: \
$(GENDATA_FONT_CONFIG_DST)/%.bfc: \
$(GENDATA_FONT_CONFIG_SRC_DIR)/$(GENDATA_FONT_CONFIG_SRC_PREFIX)%.properties
$(MKDIR) -p $(@D)
$(RM) $@
...
...
@@ -87,4 +87,3 @@ GENDATA_BFONT_CONFIGS := $(GENDATA_FONT_CONFIG_SRC_FILES:%.properties=$(GENDATA_
GENDATA_FONT_CONFIG := $(GENDATA_FONT_CONFIGS) $(GENDATA_BFONT_CONFIGS)
###
makefiles/GendataHtml32dtd.gmk
→
makefiles/
gendata/
GendataHtml32dtd.gmk
浏览文件 @
eb182394
makefiles/GendataTZDB.gmk
→
makefiles/
gendata/
GendataTZDB.gmk
浏览文件 @
eb182394
...
...
@@ -34,7 +34,7 @@ TZDATA_TZFILES := $(addprefix $(TZDATA_DIR)/,$(TZDATA_TZFILE))
GENDATA_TZDB_DAT := $(JDK_OUTPUTDIR)/lib/tzdb.dat
$(GENDATA_TZDB_DAT)
: $(TZDATA_TZFILES)
$(GENDATA_TZDB_DAT): $(TZDATA_TZFILES)
$(RM) $(GENDATA_TZDB_DAT)
$(TOOL_TZDB) -srcdir $(TZDATA_DIR) -dstfile $(GENDATA_TZDB_DAT) $(TZDATA_TZFILE)
...
...
makefiles/GendataTimeZone.gmk
→
makefiles/
gendata/
GendataTimeZone.gmk
浏览文件 @
eb182394
...
...
@@ -43,9 +43,9 @@ TZFILES := \
$(addprefix $(JDK_TOPDIR)/make/sun/javazic/tzdata/,$(TZFILE0)) \
$(addprefix $(JDK_TOPDIR)/make/sun/javazic/tzdata_jdk/,$(TZFILE1))
GENDATA_TIMEZONE_MAPFILE
:=
ZoneInfoMappings
GENDATA_TIMEZONE_MAPFILE
:=
ZoneInfoMappings
$(GENDATA_TIMEZONE_DST)/$(GENDATA_TIMEZONE_MAPFILE)
: $(TZFILES)
$(GENDATA_TIMEZONE_DST)/$(GENDATA_TIMEZONE_MAPFILE): $(TZFILES)
$(RM) -r $(GENDATA_TIMEZONE_TMP)
$(MKDIR) -p $(GENDATA_TIMEZONE_TMP)
$(RM) -r $(GENDATA_TIMEZONE_DST)
...
...
makefiles/GensrcBuffer.gmk
→
makefiles/
gensrc/
GensrcBuffer.gmk
浏览文件 @
eb182394
...
...
@@ -32,7 +32,7 @@ GENSRC_BUFFER_SRC := $(JDK_TOPDIR)/src/share/classes/java/nio
###
$(GENSRC_BUFFER_DST)/_the.buffer.dir
:
$(GENSRC_BUFFER_DST)/_the.buffer.dir
:
$(ECHO) "Generating buffer classes"
$(MKDIR) -p $(@D)
$(TOUCH) $@
...
...
@@ -40,7 +40,7 @@ $(GENSRC_BUFFER_DST)/_the.buffer.dir :
define fixRw
$1_RW := $2
$1_rwkey := rw
ifeq (R,
$2)
ifeq (R,
$2)
$1_rwkey := ro
endif
endef
...
...
@@ -129,7 +129,7 @@ define typesAndBits
ifeq ($2, float)
$1_memtype := int
$1_Memtype := Int
ifneq ($3,
U)
ifneq ($3,
U)
$1_Swaptype := Int
$1_fromBits := Float.intBitsToFloat
$1_toBits := Float.floatToRawIntBits
...
...
@@ -139,7 +139,7 @@ define typesAndBits
ifeq ($2, double)
$1_memtype := long
$1_Memtype := Long
ifneq ($3,
U)
ifneq ($3,
U)
$1_Swaptype := Long
$1_fromBits := Double.longBitsToDouble
$1_toBits := Double.doubleToRawLongBits
...
...
@@ -213,7 +213,7 @@ define SetupGenBuffer
$1_SRC_BIN := $(GENSRC_BUFFER_SRC)/$(strip $2)-bin.java.template
$1_DEP := $$($1_SRC)
ifneq ($$($1_BIN),
1)
ifneq ($$($1_BIN),
1)
$1_DEP := $$($1_SRC)
$1_OUT := $$($1_DST)
else
...
...
@@ -221,7 +221,7 @@ define SetupGenBuffer
$1_OUT := $(GENSRC_BUFFER_DST)/$1.binop.0.java
endif
ifeq ($$($1_BIN),
1)
ifeq ($$($1_BIN),
1)
$(call genBinOps,$1_char,char,$$($1_BO),$$($1_RW),two,one)
$(call genBinOps,$1_short,short,$$($1_BO),$$($1_RW),two,one)
$(call genBinOps,$1_int,int,$$($1_BO),$$($1_RW),four,three)
...
...
@@ -230,7 +230,7 @@ define SetupGenBuffer
$(call genBinOps,$1_double,double,$$($1_BO),$$($1_RW),eight,seven)
endif
$$($1_DST)
: $$($1_DEP) $(GENSRC_BUFFER_DST)/_the.buffer.dir
$$($1_DST)
: $$($1_DEP) $(GENSRC_BUFFER_DST)/_the.buffer.dir
$(TOOL_SPP) < $$($1_SRC) > $$($1_OUT).tmp \
-K$$($1_type) \
-K$$($1_category) \
...
...
@@ -257,8 +257,8 @@ $$($1_DST) : $$($1_DEP) $(GENSRC_BUFFER_DST)/_the.buffer.dir
-DA=$$($1_A) \
-Kbo$$($1_BO)
$(MV) $$($1_OUT).tmp $$($1_OUT)
# Do the extra bin thing
ifeq ($$($1_BIN),
1)
# Do the extra bin thing
ifeq ($$($1_BIN),
1)
$(SED) -e '/#BIN/,$$$$d' < $$($1_OUT) > $$($1_DST).tmp
$(RM) $$($1_OUT)
$$($1_char_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
...
...
@@ -269,112 +269,112 @@ ifeq ($$($1_BIN),1)
$$($1_double_CMD) < $$($1_SRC_BIN) >> $$($1_DST).tmp
$(PRINTF) "}\n" >> $$($1_DST).tmp
mv $$($1_DST).tmp $$($1_DST)
endif
endif
GENSRC_BUFFER += $$($1_DST)
GENSRC_BUFFER += $$($1_DST)
endef
###
X_BUF :=X-Buffer
X_BUF :=
X-Buffer
$(eval $(call SetupGenBuffer,ByteBuffer, $(X_BUF),
type:=byte,
BIN:=1))
$(eval $(call SetupGenBuffer,CharBuffer, $(X_BUF),type:=char))
$(eval $(call SetupGenBuffer,ShortBuffer, $(X_BUF),type:=short))
$(eval $(call SetupGenBuffer,IntBuffer, $(X_BUF),type:=int))
$(eval $(call SetupGenBuffer,LongBuffer, $(X_BUF),type:=long))
$(eval $(call SetupGenBuffer,FloatBuffer, $(X_BUF),type:=float))
$(eval $(call SetupGenBuffer,DoubleBuffer,$(X_BUF),type:=double))
$(eval $(call SetupGenBuffer,ByteBuffer, $(X_BUF),
type:=byte,
BIN:=1))
$(eval $(call SetupGenBuffer,CharBuffer, $(X_BUF),
type:=char))
$(eval $(call SetupGenBuffer,ShortBuffer, $(X_BUF),
type:=short))
$(eval $(call SetupGenBuffer,IntBuffer, $(X_BUF),
type:=int))
$(eval $(call SetupGenBuffer,LongBuffer, $(X_BUF),
type:=long))
$(eval $(call SetupGenBuffer,FloatBuffer, $(X_BUF),
type:=float))
$(eval $(call SetupGenBuffer,DoubleBuffer,$(X_BUF),
type:=double))
# Buffers whose contents are heap-allocated
#
HEAP_X_BUF := Heap-X-Buffer
$(eval $(call SetupGenBuffer,HeapByteBuffer, $(HEAP_X_BUF),type:=byte))
$(eval $(call SetupGenBuffer,HeapByteBufferR, $(HEAP_X_BUF),
type:=byte,
RW:=R))
$(eval $(call SetupGenBuffer,HeapCharBuffer, $(HEAP_X_BUF),type:=char))
$(eval $(call SetupGenBuffer,HeapCharBufferR, $(HEAP_X_BUF),
type:=char,
RW:=R))
$(eval $(call SetupGenBuffer,HeapShortBuffer, $(HEAP_X_BUF),type:=short))
$(eval $(call SetupGenBuffer,HeapShortBufferR, $(HEAP_X_BUF),
type:=short,
RW:=R))
$(eval $(call SetupGenBuffer,HeapIntBuffer, $(HEAP_X_BUF),type:=int))
$(eval $(call SetupGenBuffer,HeapIntBufferR, $(HEAP_X_BUF),
type:=int,
RW:=R))
$(eval $(call SetupGenBuffer,HeapLongBuffer, $(HEAP_X_BUF),type:=long))
$(eval $(call SetupGenBuffer,HeapLongBufferR, $(HEAP_X_BUF),
type:=long,
RW:=R))
$(eval $(call SetupGenBuffer,HeapFloatBuffer, $(HEAP_X_BUF),type:=float))
$(eval $(call SetupGenBuffer,HeapFloatBufferR, $(HEAP_X_BUF),
type:=float,
RW:=R))
$(eval $(call SetupGenBuffer,HeapDoubleBuffer, $(HEAP_X_BUF),type:=double))
$(eval $(call SetupGenBuffer,HeapDoubleBufferR,$(HEAP_X_BUF),
type:=double,
RW:=R))
$(eval $(call SetupGenBuffer,HeapByteBuffer, $(HEAP_X_BUF),
type:=byte))
$(eval $(call SetupGenBuffer,HeapByteBufferR, $(HEAP_X_BUF),
type:=byte,
RW:=R))
$(eval $(call SetupGenBuffer,HeapCharBuffer, $(HEAP_X_BUF),
type:=char))
$(eval $(call SetupGenBuffer,HeapCharBufferR, $(HEAP_X_BUF),
type:=char,
RW:=R))
$(eval $(call SetupGenBuffer,HeapShortBuffer, $(HEAP_X_BUF),
type:=short))
$(eval $(call SetupGenBuffer,HeapShortBufferR, $(HEAP_X_BUF),
type:=short,
RW:=R))
$(eval $(call SetupGenBuffer,HeapIntBuffer, $(HEAP_X_BUF),
type:=int))
$(eval $(call SetupGenBuffer,HeapIntBufferR, $(HEAP_X_BUF),
type:=int,
RW:=R))
$(eval $(call SetupGenBuffer,HeapLongBuffer, $(HEAP_X_BUF),
type:=long))
$(eval $(call SetupGenBuffer,HeapLongBufferR, $(HEAP_X_BUF),
type:=long,
RW:=R))
$(eval $(call SetupGenBuffer,HeapFloatBuffer, $(HEAP_X_BUF),
type:=float))
$(eval $(call SetupGenBuffer,HeapFloatBufferR, $(HEAP_X_BUF),
type:=float,
RW:=R))
$(eval $(call SetupGenBuffer,HeapDoubleBuffer, $(HEAP_X_BUF),
type:=double))
$(eval $(call SetupGenBuffer,HeapDoubleBufferR,$(HEAP_X_BUF),
type:=double,
RW:=R))
# Direct byte buffer
#
DIRECT_X_BUF := Direct-X-Buffer
$(eval $(call SetupGenBuffer,DirectByteBuffer, $(DIRECT_X_BUF),
type:=byte,
BIN:=1))
$(eval $(call SetupGenBuffer,DirectByteBufferR,$(DIRECT_X_BUF),
type:=byte,BIN:=1,
RW:=R))
$(eval $(call SetupGenBuffer,DirectByteBuffer, $(DIRECT_X_BUF),
type:=byte,
BIN:=1))
$(eval $(call SetupGenBuffer,DirectByteBufferR,$(DIRECT_X_BUF),
type:=byte, BIN:=1,
RW:=R))
# Unswapped views of direct byte buffers
#
$(eval $(call SetupGenBuffer,DirectCharBufferU, $(DIRECT_X_BUF),
type:=char,
BO:=U))
$(eval $(call SetupGenBuffer,DirectCharBufferRU, $(DIRECT_X_BUF),
type:=char,RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectShortBufferU, $(DIRECT_X_BUF),
type:=short,
BO:=U))
$(eval $(call SetupGenBuffer,DirectShortBufferRU, $(DIRECT_X_BUF),
type:=short,RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectIntBufferU, $(DIRECT_X_BUF),
type:=int,
BO:=U))
$(eval $(call SetupGenBuffer,DirectIntBufferRU, $(DIRECT_X_BUF),
type:=int,RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectLongBufferU, $(DIRECT_X_BUF),
type:=long,
BO:=U))
$(eval $(call SetupGenBuffer,DirectLongBufferRU, $(DIRECT_X_BUF),
type:=long,RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectFloatBufferU, $(DIRECT_X_BUF),
type:=float,
BO:=U))
$(eval $(call SetupGenBuffer,DirectFloatBufferRU, $(DIRECT_X_BUF),
type:=float,RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectDoubleBufferU, $(DIRECT_X_BUF),
type:=double,
BO:=U))
$(eval $(call SetupGenBuffer,DirectDoubleBufferRU,$(DIRECT_X_BUF),
type:=double,RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectCharBufferU, $(DIRECT_X_BUF),
type:=char,
BO:=U))
$(eval $(call SetupGenBuffer,DirectCharBufferRU, $(DIRECT_X_BUF),
type:=char, RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectShortBufferU, $(DIRECT_X_BUF),
type:=short,
BO:=U))
$(eval $(call SetupGenBuffer,DirectShortBufferRU, $(DIRECT_X_BUF),
type:=short, RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectIntBufferU, $(DIRECT_X_BUF),
type:=int,
BO:=U))
$(eval $(call SetupGenBuffer,DirectIntBufferRU, $(DIRECT_X_BUF),
type:=int, RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectLongBufferU, $(DIRECT_X_BUF),
type:=long,
BO:=U))
$(eval $(call SetupGenBuffer,DirectLongBufferRU, $(DIRECT_X_BUF),
type:=long, RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectFloatBufferU, $(DIRECT_X_BUF),
type:=float,
BO:=U))
$(eval $(call SetupGenBuffer,DirectFloatBufferRU, $(DIRECT_X_BUF),
type:=float, RW:=R,
BO:=U))
$(eval $(call SetupGenBuffer,DirectDoubleBufferU, $(DIRECT_X_BUF),
type:=double,
BO:=U))
$(eval $(call SetupGenBuffer,DirectDoubleBufferRU,$(DIRECT_X_BUF),
type:=double, RW:=R,
BO:=U))
# Swapped views of direct byte buffers
#
$(eval $(call SetupGenBuffer,DirectCharBufferS, $(DIRECT_X_BUF),
type:=char,
BO:=S))
$(eval $(call SetupGenBuffer,DirectCharBufferRS, $(DIRECT_X_BUF),
type:=char,RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectShortBufferS, $(DIRECT_X_BUF),
type:=short,
BO:=S))
$(eval $(call SetupGenBuffer,DirectShortBufferRS, $(DIRECT_X_BUF),
type:=short,RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectIntBufferS, $(DIRECT_X_BUF),
type:=int,
BO:=S))
$(eval $(call SetupGenBuffer,DirectIntBufferRS, $(DIRECT_X_BUF),
type:=int,RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectLongBufferS, $(DIRECT_X_BUF),
type:=long,
BO:=S))
$(eval $(call SetupGenBuffer,DirectLongBufferRS, $(DIRECT_X_BUF),
type:=long,RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectFloatBufferS, $(DIRECT_X_BUF),
type:=float,
BO:=S))
$(eval $(call SetupGenBuffer,DirectFloatBufferRS, $(DIRECT_X_BUF),
type:=float,RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectDoubleBufferS, $(DIRECT_X_BUF),
type:=double,
BO:=S))
$(eval $(call SetupGenBuffer,DirectDoubleBufferRS,$(DIRECT_X_BUF),
type:=double,RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectCharBufferS, $(DIRECT_X_BUF),
type:=char,
BO:=S))
$(eval $(call SetupGenBuffer,DirectCharBufferRS, $(DIRECT_X_BUF),
type:=char, RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectShortBufferS, $(DIRECT_X_BUF),
type:=short,
BO:=S))
$(eval $(call SetupGenBuffer,DirectShortBufferRS, $(DIRECT_X_BUF),
type:=short, RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectIntBufferS, $(DIRECT_X_BUF),
type:=int,
BO:=S))
$(eval $(call SetupGenBuffer,DirectIntBufferRS, $(DIRECT_X_BUF),
type:=int, RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectLongBufferS, $(DIRECT_X_BUF),
type:=long,
BO:=S))
$(eval $(call SetupGenBuffer,DirectLongBufferRS, $(DIRECT_X_BUF),
type:=long, RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectFloatBufferS, $(DIRECT_X_BUF),
type:=float,
BO:=S))
$(eval $(call SetupGenBuffer,DirectFloatBufferRS, $(DIRECT_X_BUF),
type:=float, RW:=R,
BO:=S))
$(eval $(call SetupGenBuffer,DirectDoubleBufferS, $(DIRECT_X_BUF),
type:=double,
BO:=S))
$(eval $(call SetupGenBuffer,DirectDoubleBufferRS,$(DIRECT_X_BUF),
type:=double, RW:=R,
BO:=S))
# Big-endian views of byte buffers
#
BYTE_X_BUF := ByteBufferAs-X-Buffer
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferB, $(BYTE_X_BUF),
type:=char,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferRB, $(BYTE_X_BUF),
type:=char,RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferB, $(BYTE_X_BUF),
type:=short,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferRB, $(BYTE_X_BUF),
type:=short,RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferB, $(BYTE_X_BUF),
type:=int,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferRB, $(BYTE_X_BUF),
type:=int,RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferB, $(BYTE_X_BUF),
type:=long,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferRB, $(BYTE_X_BUF),
type:=long,RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferB, $(BYTE_X_BUF),
type:=float,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferRB, $(BYTE_X_BUF),
type:=float,RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferB, $(BYTE_X_BUF),
type:=double,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferRB,$(BYTE_X_BUF),
type:=double,RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferB, $(BYTE_X_BUF),
type:=char,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferRB, $(BYTE_X_BUF),
type:=char, RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferB, $(BYTE_X_BUF),
type:=short,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferRB, $(BYTE_X_BUF),
type:=short, RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferB, $(BYTE_X_BUF),
type:=int,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferRB, $(BYTE_X_BUF),
type:=int, RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferB, $(BYTE_X_BUF),
type:=long,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferRB, $(BYTE_X_BUF),
type:=long, RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferB, $(BYTE_X_BUF),
type:=float,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferRB, $(BYTE_X_BUF),
type:=float, RW:=R,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferB, $(BYTE_X_BUF),
type:=double,
BO:=B))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferRB,$(BYTE_X_BUF),
type:=double, RW:=R,
BO:=B))
# Little-endian views of byte buffers
#
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferL, $(BYTE_X_BUF),
type:=char,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferRL, $(BYTE_X_BUF),
type:=char,RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferL, $(BYTE_X_BUF),
type:=short,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferRL, $(BYTE_X_BUF),
type:=short,RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferL, $(BYTE_X_BUF),
type:=int,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferRL, $(BYTE_X_BUF),
type:=int,RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferL, $(BYTE_X_BUF),
type:=long,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferRL, $(BYTE_X_BUF),
type:=long,RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferL, $(BYTE_X_BUF),
type:=float,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferRL, $(BYTE_X_BUF),
type:=float,RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferL, $(BYTE_X_BUF),
type:=double,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferRL,$(BYTE_X_BUF),
type:=double,RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferL, $(BYTE_X_BUF),
type:=char,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsCharBufferRL, $(BYTE_X_BUF),
type:=char, RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferL, $(BYTE_X_BUF),
type:=short,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsShortBufferRL, $(BYTE_X_BUF),
type:=short, RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferL, $(BYTE_X_BUF),
type:=int,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsIntBufferRL, $(BYTE_X_BUF),
type:=int, RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferL, $(BYTE_X_BUF),
type:=long,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsLongBufferRL, $(BYTE_X_BUF),
type:=long, RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferL, $(BYTE_X_BUF),
type:=float,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsFloatBufferRL, $(BYTE_X_BUF),
type:=float, RW:=R,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferL, $(BYTE_X_BUF),
type:=double,
BO:=L))
$(eval $(call SetupGenBuffer,ByteBufferAsDoubleBufferRL,$(BYTE_X_BUF),
type:=double, RW:=R,
BO:=L))
###
$(GENSRC_BUFFER)
: $(BUILD_TOOLS)
$(GENSRC_BUFFER): $(BUILD_TOOLS)
makefiles/GensrcCLDR.gmk
→
makefiles/
gensrc/
GensrcCLDR.gmk
浏览文件 @
eb182394
makefiles/GensrcCharacterData.gmk
→
makefiles/
gensrc/
GensrcCharacterData.gmk
浏览文件 @
eb182394
...
...
@@ -27,13 +27,13 @@
# Rules to create $(JDK_OUTPUTDIR)/gensrc/sun/lang/CharacterData*.java
#
GENSRC_CHARACTERDATA:=
GENSRC_CHARACTERDATA
:=
CHARACTERDATA = $(JDK_TOPDIR)/make/tools/GenerateCharacter
UNICODEDATA = $(JDK_TOPDIR)/make/tools/UnicodeData
define SetupCharacterData
$(JDK_OUTPUTDIR)/gensrc/java/lang/$1.java
: $(CHARACTERDATA)/$1.java.template $(BUILD_TOOLS)
$(JDK_OUTPUTDIR)/gensrc/java/lang/$1.java
: $(CHARACTERDATA)/$1.java.template $(BUILD_TOOLS)
$(MKDIR) -p $$(@D)
$(ECHO) $(LOG_INFO) Generating $1.java
$(TOOL_GENERATECHARACTER) $2 \
...
...
@@ -47,18 +47,18 @@ define SetupCharacterData
GENSRC_CHARACTERDATA += $(JDK_OUTPUTDIR)/gensrc/java/lang/$1.java
endef
$(eval $(call SetupCharacterData,CharacterDataLatin1,
,
-latin1 8))
$(eval $(call SetupCharacterData,CharacterData00,
-plane 0,
11 4 1))
$(eval $(call SetupCharacterData,CharacterData01,
-plane 1,
11 4 1))
$(eval $(call SetupCharacterData,CharacterData02,
-plane 2,
11 4 1))
$(eval $(call SetupCharacterData,CharacterData0E,
-plane 14,
11 4 1))
$(eval $(call SetupCharacterData,CharacterDataLatin1,
,
-latin1 8))
$(eval $(call SetupCharacterData,CharacterData00,
-plane 0,
11 4 1))
$(eval $(call SetupCharacterData,CharacterData01,
-plane 1,
11 4 1))
$(eval $(call SetupCharacterData,CharacterData02,
-plane 2,
11 4 1))
$(eval $(call SetupCharacterData,CharacterData0E,
-plane 14,
11 4 1))
# Copy two Java files that need no preprocessing.
$(JDK_OUTPUTDIR)/gensrc/java/lang/%.java
: $(CHARACTERDATA)/%.java.template
$(JDK_OUTPUTDIR)/gensrc/java/lang/%.java: $(CHARACTERDATA)/%.java.template
$(ECHO) $(LOG_INFO) Generating $(@F)
$(call install-file)
GENSRC_CHARACTERDATA += $(JDK_OUTPUTDIR)/gensrc/java/lang/CharacterDataUndefined.java \
$(JDK_OUTPUTDIR)/gensrc/java/lang/CharacterDataPrivateUse.java
$(GENSRC_CHARACTERDATA)
: $(BUILD_TOOLS)
$(GENSRC_CHARACTERDATA): $(BUILD_TOOLS)
makefiles/GensrcCharsetCoder.gmk
→
makefiles/
gensrc/
GensrcCharsetCoder.gmk
浏览文件 @
eb182394
...
...
@@ -34,7 +34,7 @@ GENSRC_CHARSETCODER_TEMPLATE := $(GENSRC_CHARSETCODER_SRC)/charset/Charset-X-Cod
###
$(GENSRC_CHARSETCODER_DST)/CharsetDecoder.java
: $(GENSRC_CHARSETCODER_TEMPLATE)
$(GENSRC_CHARSETCODER_DST)/CharsetDecoder.java: $(GENSRC_CHARSETCODER_TEMPLATE)
$(MKDIR) -p $(@D)
-$(RM) $@.tmp
$(TOOL_SPP) < $< >$@.tmp \
...
...
@@ -69,7 +69,7 @@ GENSRC_CHARSETCODER += $(GENSRC_CHARSETCODER_DST)/CharsetDecoder.java
###
$(GENSRC_CHARSETCODER_DST)/CharsetEncoder.java
: $(GENSRC_CHARSETCODER_TEMPLATE)
$(GENSRC_CHARSETCODER_DST)/CharsetEncoder.java: $(GENSRC_CHARSETCODER_TEMPLATE)
$(MKDIR) -p $(@D)
-$(RM) $@.tmp
$(TOOL_SPP) < $< >$@.tmp \
...
...
@@ -104,4 +104,4 @@ GENSRC_CHARSETCODER += $(GENSRC_CHARSETCODER_DST)/CharsetEncoder.java
###
$(GENSRC_CHARSETCODER)
: $(BUILD_TOOLS)
$(GENSRC_CHARSETCODER): $(BUILD_TOOLS)
makefiles/GensrcCharsetMapping.gmk
→
makefiles/
gensrc/
GensrcCharsetMapping.gmk
浏览文件 @
eb182394
...
...
@@ -23,7 +23,7 @@
# questions.
#
GENSRC_CHARSETMAPPING:=
GENSRC_CHARSETMAPPING
:=
GENSRC_TMP := $(JDK_OUTPUTDIR)/gensrc
GENSRC_DST := $(JDK_OUTPUTDIR)/gensrc/sun/nio/cs
...
...
@@ -35,7 +35,7 @@ GENSRC_TEMPLATES := $(GENSRC_SRC)/SingleByte-X.java.template $(GENSRC_SRC)/Doubl
###
$(GENSRC_TMP)/_the.charsetmapping.dir
:
$(GENSRC_TMP)/_the.charsetmapping.dir:
$(ECHO) Generating charsetmapping classes
$(MKDIR) -p $(GENSRC_DST)/ext
$(TOUCH) $@
...
...
@@ -44,7 +44,7 @@ $(GENSRC_TMP)/_the.charsetmapping.dir :
GENSRC_SB := $(GENSRC_TMP)/_the.charsetmapping.sbcs
$(GENSRC_SB)
: $(GENSRC_SRC)/sbcs $(GENSRC_TEMPLATES) $(GENSRC_TMP)/_the.charsetmapping.dir
$(GENSRC_SB): $(GENSRC_SRC)/sbcs $(GENSRC_TEMPLATES) $(GENSRC_TMP)/_the.charsetmapping.dir
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $(GENSRC_SRC) $(GENSRC_DST) sbcs
$(TOUCH) $@
...
...
@@ -52,28 +52,28 @@ GENSRC_CHARSETMAPPING += $(GENSRC_SB)
###
$(GENSRC_DST)/ext/sjis0213.dat
: $(GENSRC_SRC)/sjis0213.map $(GENSRC_SB)
$(GENSRC_DST)/ext/sjis0213.dat: $(GENSRC_SRC)/sjis0213.map $(GENSRC_SB)
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $< $@ sjis0213
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/ext/sjis0213.dat
###
$(GENSRC_DST)/ext/EUC_TWMapping.java
: $(GENSRC_JAVA_SRC)/EUC_TW.java $(GENSRC_SB)
$(GENSRC_DST)/ext/EUC_TWMapping.java: $(GENSRC_JAVA_SRC)/EUC_TW.java $(GENSRC_SB)
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $(GENSRC_SRC) $(GENSRC_DST)/ext euctw $(GENSRC_JAVA_SRC)/EUC_TW.java
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/ext/EUC_TWMapping.java
###
$(GENSRC_DST)/ext/HKSCSMapping.java
: $(GENSRC_JAVA_SRC)/HKSCS.java $(GENSRC_SB)
$(GENSRC_DST)/ext/HKSCSMapping.java: $(GENSRC_JAVA_SRC)/HKSCS.java $(GENSRC_SB)
$(TOOL_CHARSETMAPPING) $(LOG_INFO) $(GENSRC_SRC) $(GENSRC_DST)/ext hkscs $(GENSRC_JAVA_SRC)/HKSCS.java
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/ext/HKSCSMapping.java
###
$(GENSRC_TMP)/gensrc_the.charsetmapping.extsbcs
: $(GENSRC_SRC)/extsbcs $(GENSRC_TEMPLATES) $(GENSRC_SB)
$(GENSRC_TMP)/gensrc_the.charsetmapping.extsbcs: $(GENSRC_SRC)/extsbcs $(GENSRC_TEMPLATES) $(GENSRC_SB)
$(TOOL_CHARSETMAPPING) $(GENSRC_SRC) $(LOG_INFO) $(GENSRC_DST)/ext extsbcs
$(TOUCH) $@
...
...
@@ -81,7 +81,7 @@ GENSRC_CHARSETMAPPING += $(GENSRC_TMP)/gensrc_the.charsetmapping.extsbcs
###
$(GENSRC_TMP)/gensrc_the.charsetmapping.dbcs
: $(GENSRC_SRC)/dbcs $(GENSRC_TEMPLATES) $(GENSRC_SB)
$(GENSRC_TMP)/gensrc_the.charsetmapping.dbcs: $(GENSRC_SRC)/dbcs $(GENSRC_TEMPLATES) $(GENSRC_SB)
$(TOOL_CHARSETMAPPING) $(GENSRC_SRC) $(LOG_INFO) $(GENSRC_DST)/ext dbcs
$(TOUCH) $@
...
...
@@ -91,10 +91,9 @@ GENSRC_CHARSETMAPPING += $(GENSRC_TMP)/gensrc_the.charsetmapping.dbcs
GENSRC_CHARSET_PROVIDER_CMD := $(JDK_TOPDIR)/makefiles/scripts/genCharsetProvider.sh
$(GENSRC_DST)/StandardCharsets.java
: $(JDK_TOPDIR)/src/share/classes/sun/nio/cs/standard-charsets \
$(GENSRC_DST)/StandardCharsets.java: $(JDK_TOPDIR)/src/share/classes/sun/nio/cs/standard-charsets \
$(GENSRC_CHARSET_PROVIDER_CMD) \
$(GENSRC_TMP)/_the.charsetmapping.dir
NAWK="$(NAWK)" TEMPDIR="$(GENSRC_TMP)" SH="$(SH)" \
HASHER="$(TOOL_HASHER)" \
SCRIPTS="$(JDK_TOPDIR)/makefiles/scripts" \
...
...
@@ -102,4 +101,4 @@ $(GENSRC_DST)/StandardCharsets.java : $(JDK_TOPDIR)/src/share/classes/sun/nio/cs
GENSRC_CHARSETMAPPING += $(GENSRC_DST)/StandardCharsets.java
$(GENSRC_CHARSETMAPPING)
: $(BUILD_TOOLS)
$(GENSRC_CHARSETMAPPING): $(BUILD_TOOLS)
makefiles/GensrcExceptions.gmk
→
makefiles/
gensrc/
GensrcExceptions.gmk
浏览文件 @
eb182394
...
...
@@ -35,7 +35,7 @@ GENSRC_EXCEPTIONS_SRC_DIRS := . charset channels
###
$(GENSRC_EXCEPTIONS_DST)/_the.exceptions.dir
:
$(GENSRC_EXCEPTIONS_DST)/_the.exceptions.dir:
$(ECHO) "Generating exceptions classes"
$(MKDIR) -p $(@D)
$(TOUCH) $@
...
...
@@ -43,7 +43,7 @@ $(GENSRC_EXCEPTIONS_DST)/_the.exceptions.dir :
###
$(GENSRC_EXCEPTIONS_DST)/_the.%
: $(GENSRC_EXCEPTIONS_SRC)/%/exceptions \
$(GENSRC_EXCEPTIONS_DST)/_the.%: $(GENSRC_EXCEPTIONS_SRC)/%/exceptions \
$(GENSRC_EXCEPTIONS_CMD) \
$(GENSRC_EXCEPTIONS_DST)/_the.exceptions.dir
$(MKDIR) -p $(@D)/$*
...
...
@@ -52,4 +52,4 @@ $(GENSRC_EXCEPTIONS_DST)/_the.% : $(GENSRC_EXCEPTIONS_SRC)/%/exceptions \
GENSRC_EXCEPTIONS += $(foreach D,$(GENSRC_EXCEPTIONS_SRC_DIRS),$(GENSRC_EXCEPTIONS_DST)/_the.$(D))
$(GENSRC_EXCEPTIONS)
: $(BUILD_TOOLS)
$(GENSRC_EXCEPTIONS): $(BUILD_TOOLS)
makefiles/GensrcIcons.gmk
→
makefiles/
gensrc/
GensrcIcons.gmk
浏览文件 @
eb182394
...
...
@@ -64,7 +64,7 @@ GENSRC_AWT_ICONS_DST_NAME = AWTIcon$(2)_$(subst .,_,$(subst -,_,$(1)))
###
$(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
:
$(GENSRC_AWT_ICONS_TMP)/_the.icons.dir:
$(ECHO) Generating icon classes
$(MKDIR) -p $(GENSRC_AWT_ICONS_DST)
$(TOUCH) $@
...
...
@@ -80,7 +80,7 @@ define SetupGensrcAWTIcon
$1_NAME64 := $(call GENSRC_AWT_ICONS_DST_NAME,$1,64)
$1_TARGET64 := $(GENSRC_AWT_ICONS_DST)/$$($1_NAME64).java
$$($1_TARGET32)
: $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
$$($1_TARGET32)
: $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
$(RM) $$@ $$@.tmp
$(ECHO) "package sun.awt;" > $$@.tmp
$(ECHO) "public class $$($1_NAME32) {" >> $$@.tmp
...
...
@@ -89,9 +89,9 @@ $$($1_TARGET32) : $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
$(ECHO) "}; }" >> $$@.tmp
$(MV) $$@.tmp $$@
GENSRC_AWT_ICONS += $$($1_TARGET32)
GENSRC_AWT_ICONS += $$($1_TARGET32)
$$($1_TARGET64)
: $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
$$($1_TARGET64)
: $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
$(RM) $$@ $$@.tmp
$(ECHO) "package sun.awt;" > $$@.tmp
$(ECHO) "public class $$($1_NAME64) {" >> $$@.tmp
...
...
@@ -100,14 +100,14 @@ $$($1_TARGET64) : $2/$1 $(GENSRC_AWT_ICONS_TMP)/_the.icons.dir
$(ECHO) "}; }" >> $$@.tmp
$(MV) $$@.tmp $$@
GENSRC_AWT_ICONS += $$($1_TARGET64)
GENSRC_AWT_ICONS += $$($1_TARGET64)
endef
$(foreach I,$(GENSRC_AWT_ICONS_SRC), $(eval $(call SetupGensrcAWTIcon,$(notdir $(I)),$(dir $(I)))))
$(foreach I,
$(GENSRC_AWT_ICONS_SRC), $(eval $(call SetupGensrcAWTIcon,$(notdir $(I)),$(dir $(I)))))
###
ifeq ($(OPENJDK_TARGET_OS),macosx)
ifeq ($(OPENJDK_TARGET_OS),
macosx)
GENSRC_OSX_ICONS_TMP := $(JDK_OUTPUTDIR)/gensrc
GENSRC_OSX_ICONS_DST := $(GENSRC_OSX_ICONS_TMP)/sun/osxapp
...
...
@@ -119,7 +119,7 @@ ifeq ($(OPENJDK_TARGET_OS),macosx)
GENSRC_OSX_ICONS_SRC := $(JDK_TOPDIR)/src/closed/macosx/native/sun/osxapp/resource/icons/JavaApp.icns
endif
$(GENSRC_OSX_ICONS_DST)/AWTIconData.h: $(GENSRC_OSX_ICONS_SRC)
$(GENSRC_OSX_ICONS_DST)/AWTIconData.h: $(GENSRC_OSX_ICONS_SRC)
$(RM) $@ $@.tmp
$(MKDIR) -p $(dir $@)
$(ECHO) "static unsigned char sAWTIconData[] = { " >> $@.tmp
...
...
@@ -128,4 +128,3 @@ $(GENSRC_OSX_ICONS_DST)/AWTIconData.h: $(GENSRC_OSX_ICONS_SRC)
$(MV) $@.tmp $@
endif
makefiles/GensrcJDWP.gmk
→
makefiles/
gensrc/
GensrcJDWP.gmk
浏览文件 @
eb182394
...
...
@@ -26,21 +26,21 @@
# Translate the Java debugger wire protocol (jdwp.spec) file into a JDWP.java file
# and a JDWPCommands.h C-header file.
$(JDK_OUTPUTDIR)/gensrc_jdwp_headers/JDWPCommands.h
: $(JDK_TOPDIR)/makefiles/jpda/jdwp/jdwp.spec
$(JDK_OUTPUTDIR)/gensrc_jdwp_headers/JDWPCommands.h: $(JDK_TOPDIR)/makefiles/jpda/jdwp/jdwp.spec
$(JDK_OUTPUTDIR)/gensrc/com/sun/tools/jdi/JDWP.java
: $(JDK_TOPDIR)/makefiles/jpda/jdwp/jdwp.spec
$(JDK_OUTPUTDIR)/gensrc/com/sun/tools/jdi/JDWP.java: $(JDK_TOPDIR)/makefiles/jpda/jdwp/jdwp.spec
$(MKDIR) -p $(@D)
$(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_jdwp_headers
$(RM) $@ $(JDK_OUTPUTDIR)/gensrc_jdwp_headers/JDWPCommands.h
$(ECHO) $(LOG_INFO) Creating JDWP.java and JDWPCommands.h from jdwp.spec
$(TOOL_JDWPGEN) $< -jdi $@ -include $(JDK_OUTPUTDIR)/gensrc_jdwp_headers/JDWPCommands.h
$(JDK_OUTPUTDIR)/gensrc_jdwp_doc/jdwp-protocol.html
: $(JDK_TOPDIR)/makefiles/jpda/jdwp/jdwp.spec
$(JDK_OUTPUTDIR)/gensrc_jdwp_doc/jdwp-protocol.html: $(JDK_TOPDIR)/makefiles/jpda/jdwp/jdwp.spec
$(MKDIR) -p $(@D)
$(RM) $@
$(ECHO) $(LOG_INFO) Creating $(@F) from jdwp.spec
$(TOOL_JDWPGEN) $< -doc $@
GENSRC_JDWP
:=
$(JDK_OUTPUTDIR)/gensrc/com/sun/tools/jdi/JDWP.java \
GENSRC_JDWP
:=
$(JDK_OUTPUTDIR)/gensrc/com/sun/tools/jdi/JDWP.java \
$(JDK_OUTPUTDIR)/gensrc_jdwp_headers/JDWPCommands.h \
$(JDK_OUTPUTDIR)/gensrc_jdwp_doc/jdwp-protocol.html
makefiles/GensrcJObjC.gmk
→
makefiles/
gensrc/
GensrcJObjC.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/GensrcLocaleDataMetaInfo.gmk
→
makefiles/
gensrc/
GensrcLocaleDataMetaInfo.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/GensrcMisc.gmk
→
makefiles/
gensrc/
GensrcMisc.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/GensrcProperties.gmk
→
makefiles/
gensrc/
GensrcProperties.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/GensrcSwing.gmk
→
makefiles/
gensrc/
GensrcSwing.gmk
浏览文件 @
eb182394
...
...
@@ -83,7 +83,7 @@ $(JDK_OUTPUTDIR)/gensrc_no_srczip/_the.generated_beaninfo: $(BEANS_SRC) \
-t $(DOCLETSRC_DIR)/SwingBeanInfo.template -docletpath $(JDK_OUTPUTDIR)/btclasses \
-XDignore.symbol.file=true \
-classpath $(JDK_OUTPUTDIR)/btclasses $(BEANS_SRC) $(LOG_INFO)
#
Move the JTextComponent into its proper package directory.
#
Move the JTextComponent into its proper package directory.
$(MKDIR) -p $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/text
$(MV) $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/JTextComponentBeanInfo.java $(JDK_OUTPUTDIR)/gensrc_no_srczip/javax/swing/text/JTextComponentBeanInfo.java
$(TOUCH) $@
...
...
makefiles/GensrcX11Wrappers.gmk
→
makefiles/
gensrc/
GensrcX11Wrappers.gmk
浏览文件 @
eb182394
...
...
@@ -58,7 +58,7 @@ else
endif
endif
GENSRC_X11_SIZES_USED := $(addprefix $(GENSRC_X11WRAPPERS_TMP)/sizes.,$(GENSRC_X11_VERSION))
GENSRC_X11_SIZES_USED := $(addprefix $(GENSRC_X11WRAPPERS_TMP)/sizes.,
$(GENSRC_X11_VERSION))
# Copy only the sizes.* files that are actually needed. WrapperGenerator picks up any it finds from the
# file prefix it is given so those not needed need to be hidden.
...
...
@@ -69,30 +69,30 @@ $(GENSRC_X11WRAPPERS_TMP)/sizes.%: $(GENSRC_SIZER_DIR)/sizes.%
# Run the tool on the offset files copied from the source repository to generate several Java classes
# used in awt.
$(JDK_OUTPUTDIR)/gensrc/_the.generated.x11
: $(GENSRC_X11_SIZES_USED) $(BUILD_TOOLS)
$(JDK_OUTPUTDIR)/gensrc/_the.generated.x11: $(GENSRC_X11_SIZES_USED) $(BUILD_TOOLS)
$(MKDIR) -p $(GENSRC_X11WRAPPERS_DST)
$(TOOL_WRAPPERGENERATOR) $(GENSRC_X11WRAPPERS_DST) $(GENSRC_SIZER_DIR)/xlibtypes.txt "gen" $(GENSRC_X11WRAPPERS_TMP)/sizes
$(TOUCH) $@
GENSRC_X11WRAPPERS += $(JDK_OUTPUTDIR)/gensrc/_the.generated.x11
ifneq ($(COMPILE_TYPE),cross)
ifneq ($(COMPILE_TYPE),
cross)
# This is not a cross compile, regenerate the offset file, so that we
# can compare it with the version in the source code repository.
# Generate the C code for the program that will output the offset file.
$(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
: $(GENSRC_SIZER_DIR)/xlibtypes.txt $(BUILD_TOOLS)
$(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
: $(GENSRC_SIZER_DIR)/xlibtypes.txt $(BUILD_TOOLS)
$(ECHO) "Generating X11 wrapper ($*-bit version)"
$(MKDIR) -p $(@D)
$(TOOL_WRAPPERGENERATOR) $(@D) $(GENSRC_SIZER_DIR)/xlibtypes.txt "sizer" $*
# use -m32/-m64 only if the compiler supports it
ifeq ($(COMPILER_SUPPORTS_TARGET_BITS_FLAG),
true)
MEMORY_MODEL_FLAG
=
"-m$*"
ifeq ($(COMPILER_SUPPORTS_TARGET_BITS_FLAG),
true)
MEMORY_MODEL_FLAG
=
"-m$*"
endif
# Compile the C code into an executable.
$(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
$(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.c
$(MKDIR) -p $(@D)
(cd $(@D) && $(CC) $(MEMORY_MODEL_FLAG) -o $@ $< \
$(X_CFLAGS) \
...
...
@@ -110,7 +110,7 @@ ifneq ($(COMPILE_TYPE),cross)
# Run the executable create the offset file and check that it is identical
# to the offset file in the source code repository.
$(GENSRC_X11WRAPPERS_TMP)/sizes.%.verification
: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
$(GENSRC_X11WRAPPERS_TMP)/sizes.%.verification
: $(GENSRC_X11WRAPPERS_TMP)/sizer.%.exe
$(MKDIR) -p $(@D)
$(GENSRC_X11WRAPPERS_TMP)/sizer.$*.exe | $(SORT) > $@.tmp
$(ECHO) Verifying $(GENSRC_X11WRAPPERS_TMP)/sizes.$*.verification.tmp to $(GENSRC_X11WRAPPERS_TMP)/sizes.$*
...
...
@@ -119,4 +119,3 @@ ifneq ($(COMPILE_TYPE),cross)
GENSRC_X11WRAPPERS += $(GENSRC_X11WRAPPERS_TMP)/sizes.$(OPENJDK_TARGET_CPU_BITS).verification
endif
makefiles/jpda/jdwp/jdwp.spec
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/jprt.gmk
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/jprt.properties
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/mapfiles/libawt/mapfile-mawt-vers
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/mapfiles/libawt/mapfile-vers
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/mapfiles/libawt/mapfile-vers-linux
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/mapfiles/libawt_headless/mapfile-vers
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/mapfiles/libawt_xawt/mapfile-vers
浏览文件 @
eb182394
makefiles/mapfiles/libfontmanager/mapfile-vers
浏览文件 @
eb182394
makefiles/mapfiles/libfontmanager/mapfile-vers.openjdk
浏览文件 @
eb182394
makefiles/mapfiles/libj2pcsc/mapfile-vers
浏览文件 @
eb182394
makefiles/mapfiles/libjdga/mapfile-vers
浏览文件 @
eb182394
makefiles/mapfiles/libjli/mapfile-vers
浏览文件 @
eb182394
makefiles/mapfiles/libverify/mapfile-vers
浏览文件 @
eb182394
makefiles/profile-includes.txt
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/profile-rtjar-includes.txt
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/scripts/addNotices.sh
浏览文件 @
eb182394
makefiles/scripts/genCharsetProvider.sh
浏览文件 @
eb182394
makefiles/scripts/genExceptions.sh
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/scripts/localelist.sh
浏览文件 @
eb182394
此差异已折叠。
点击以展开。
makefiles/sun/awt/ToBin.java
浏览文件 @
eb182394
src/solaris/doc/sun/man/man1/ja/javaws.1
已删除
100644 → 0
浏览文件 @
4e827953
此差异已折叠。
点击以展开。
src/solaris/doc/sun/man/man1/javaws.1
已删除
100644 → 0
浏览文件 @
4e827953
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录