JrtfsJar.gmk revision 1961:f900d5afd9c8
11553Srgrimes# 21553Srgrimes# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved. 31553Srgrimes# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 41553Srgrimes# 51553Srgrimes# This code is free software; you can redistribute it and/or modify it 61553Srgrimes# under the terms of the GNU General Public License version 2 only, as 71553Srgrimes# published by the Free Software Foundation. Oracle designates this 81553Srgrimes# particular file as subject to the "Classpath" exception as provided 91553Srgrimes# by Oracle in the LICENSE file that accompanied this code. 101553Srgrimes# 111553Srgrimes# This code is distributed in the hope that it will be useful, but WITHOUT 121553Srgrimes# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 131553Srgrimes# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 141553Srgrimes# version 2 for more details (a copy is included in the LICENSE file that 151553Srgrimes# accompanied this code). 161553Srgrimes# 171553Srgrimes# You should have received a copy of the GNU General Public License version 181553Srgrimes# 2 along with this work; if not, write to the Free Software Foundation, 191553Srgrimes# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 201553Srgrimes# 211553Srgrimes# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 221553Srgrimes# or visit www.oracle.com if you need additional information or have any 231553Srgrimes# questions. 241553Srgrimes# 251553Srgrimes 261553Srgrimesdefault: all 271553Srgrimes 281553Srgrimesinclude $(SPEC) 2950479Speterinclude MakeBase.gmk 301553Srgrimesinclude JarArchive.gmk 31241473Seadlerinclude SetupJavaCompilers.gmk 321553Srgrimesinclude TextFileProcessing.gmk 331553Srgrimes 341553Srgrimes# This rule will be depended on due to the MANIFEST line 351553Srgrimes$(eval $(call SetupTextFileProcessing, BUILD_JAVA_MANIFEST, \ 361553Srgrimes SOURCE_FILES := $(JDK_TOPDIR)/make/data/mainmanifest/manifest.mf, \ 371553Srgrimes OUTPUT_FILE := $(SUPPORT_OUTPUTDIR)/java-main-manifest.mf, \ 381553Srgrimes REPLACEMENTS := \ 391553Srgrimes @@VERSION_SPECIFICATION@@ => $(VERSION_SPECIFICATION) ; \ 401553Srgrimes @@VERSION_SHORT@@ => $(VERSION_SHORT) ; \ 4125276Sjmg @@COMPANY_NAME@@ => $(COMPANY_NAME) , \ 421553Srgrimes)) 431553Srgrimes 441553SrgrimesJIMAGE_PKGS := \ 455367Sjkh jdk/internal/jimage \ 465367Sjkh jdk/internal/jrtfs \ 475367Sjkh # 4863795Sdwmalone 4963795Sdwmalone$(eval $(call SetupJavaCompilation,BUILD_JRTFS, \ 50155954Sjulian SETUP := GENERATE_OLDBYTECODE, \ 515367Sjkh SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ 521553Srgrimes EXCLUDE_FILES := module-info.java, \ 531553Srgrimes INCLUDES := $(JIMAGE_PKGS), \ 541553Srgrimes BIN := $(SUPPORT_OUTPUTDIR)/jrtfs_classes)) 551553Srgrimes 561553Srgrimes# Because of the explicit INCLUDES in the compilation setup above, the service provider 5756485Scharnier# file will not be copied unless META-INF/services would also be added to the INCLUDES. 581553Srgrimes# Adding META-INF/services would include all files in that directory when only the one 591553Srgrimes# is needed, which is why this explicit copy is defined instead. 601553Srgrimes$(eval $(call SetupCopyFiles,COPY_JIMAGE_SERVICE_PROVIDER, \ 611553Srgrimes SRC := $(JDK_TOPDIR)/src/java.base/share/classes, \ 621553Srgrimes DEST := $(SUPPORT_OUTPUTDIR)/jrtfs_classes, \ 6375169Sru FILES := META-INF/services/java.nio.file.spi.FileSystemProvider)) 641553Srgrimes 6579755Sdd$(eval $(call SetupJarArchive,BUILD_JRTFS_JAR, \ 6682470Scjc DEPENDENCIES := $(BUILD_JRTFS) $(COPY_JIMAGE_SERVICE_PROVIDER), \ 6741498Sjkh SRCS := $(SUPPORT_OUTPUTDIR)/jrtfs_classes, \ 68108247Strhodes JAR := $(SUPPORT_OUTPUTDIR)/jrt-fs.jar, \ 69131500Sru MANIFEST := $(SUPPORT_OUTPUTDIR)/java-main-manifest.mf, \ 7082470Scjc)) 7157673Ssheldonh 7279755Sddall: $(BUILD_JRTFS_JAR) 73108247Strhodes