1 # |
1 # |
2 # Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. |
2 # Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 # |
4 # |
5 # This code is free software; you can redistribute it and/or modify it |
5 # This code is free software; you can redistribute it and/or modify it |
6 # under the terms of the GNU General Public License version 2 only, as |
6 # under the terms of the GNU General Public License version 2 only, as |
7 # published by the Free Software Foundation. Oracle designates this |
7 # published by the Free Software Foundation. Oracle designates this |
44 JIMAGE_PKGS := \ |
44 JIMAGE_PKGS := \ |
45 jdk/internal/jimage \ |
45 jdk/internal/jimage \ |
46 jdk/internal/jrtfs \ |
46 jdk/internal/jrtfs \ |
47 # |
47 # |
48 |
48 |
49 $(eval $(call SetupJavaCompilation,BUILD_JRTFS, \ |
49 $(eval $(call SetupJavaCompilation, BUILD_JRTFS, \ |
50 SETUP := GENERATE_OLDBYTECODE, \ |
50 SETUP := GENERATE_OLDBYTECODE, \ |
51 SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ |
51 SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ |
52 EXCLUDE_FILES := module-info.java, \ |
52 EXCLUDE_FILES := module-info.java, \ |
53 INCLUDES := $(JIMAGE_PKGS), \ |
53 INCLUDES := $(JIMAGE_PKGS), \ |
54 BIN := $(SUPPORT_OUTPUTDIR)/jrtfs_classes)) |
54 BIN := $(SUPPORT_OUTPUTDIR)/jrtfs_classes)) |
55 |
55 |
56 # Because of the explicit INCLUDES in the compilation setup above, the service provider |
56 # Because of the explicit INCLUDES in the compilation setup above, the service provider |
57 # file will not be copied unless META-INF/services would also be added to the INCLUDES. |
57 # file will not be copied unless META-INF/services would also be added to the INCLUDES. |
58 # Adding META-INF/services would include all files in that directory when only the one |
58 # Adding META-INF/services would include all files in that directory when only the one |
59 # is needed, which is why this explicit copy is defined instead. |
59 # is needed, which is why this explicit copy is defined instead. |
60 $(eval $(call SetupCopyFiles,COPY_JIMAGE_SERVICE_PROVIDER, \ |
60 $(eval $(call SetupCopyFiles, COPY_JIMAGE_SERVICE_PROVIDER, \ |
61 SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ |
61 SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ |
62 DEST := $(SUPPORT_OUTPUTDIR)/jrtfs_classes, \ |
62 DEST := $(SUPPORT_OUTPUTDIR)/jrtfs_classes, \ |
63 FILES := META-INF/services/java.nio.file.spi.FileSystemProvider)) |
63 FILES := META-INF/services/java.nio.file.spi.FileSystemProvider)) |
64 |
64 |
65 $(eval $(call SetupJarArchive,BUILD_JRTFS_JAR, \ |
65 $(eval $(call SetupJarArchive,BUILD_JRTFS_JAR, \ |