11 # This code is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # version 2 for more details (a copy is included in the LICENSE file that 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 include CopyCommon.gmk 27 28 $(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk)) 29 30 ################################################################################ 31 # 32 # Copy exported header files to outputdir. 33 # 34 TARGETS += \ 35 $(INCLUDE_DST_DIR)/jni.h \ 36 $(INCLUDE_DST_DIR)/jvmticmlr.h \ 37 $(INCLUDE_DST_DIR)/classfile_constants.h \ 38 $(INCLUDE_DST_OS_DIR)/jni_md.h \ 39 # 40 41 $(INCLUDE_DST_DIR)/%.h: $(TOPDIR)/src/java.base/share/native/include/%.h 42 $(call install-file) 43 44 $(INCLUDE_DST_OS_DIR)/%.h: \ 45 $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS_TYPE)/native/include/%.h 46 $(call install-file) 47 48 ################################################################################ 49 50 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),) 51 52 TZMAPPINGS_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf 53 54 $(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings 55 $(call install-file) 56 57 TARGETS += $(LIB_DST_DIR)/tzmappings 58 59 endif 60 61 ################################################################################ 62 # Copy the microsoft runtime libraries on windows 63 ifeq ($(OPENJDK_TARGET_OS), windows) 64 65 # Chmod to avoid permission issues if bundles are unpacked on unix platforms. 66 define copy-and-chmod 67 $(install-file) 68 $(CHMOD) a+rx $@ | 11 # This code is distributed in the hope that it will be useful, but WITHOUT 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 # version 2 for more details (a copy is included in the LICENSE file that 15 # accompanied this code). 16 # 17 # You should have received a copy of the GNU General Public License version 18 # 2 along with this work; if not, write to the Free Software Foundation, 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 # 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 # or visit www.oracle.com if you need additional information or have any 23 # questions. 24 # 25 26 include CopyCommon.gmk 27 28 $(eval $(call IncludeCustomExtension, copy/Copy-java.base.gmk)) 29 30 ################################################################################ 31 32 ifneq ($(findstring $(OPENJDK_TARGET_OS), windows aix),) 33 34 TZMAPPINGS_SRC := $(TOPDIR)/src/java.base/$(OPENJDK_TARGET_OS)/conf 35 36 $(LIB_DST_DIR)/tzmappings: $(TZMAPPINGS_SRC)/tzmappings 37 $(call install-file) 38 39 TARGETS += $(LIB_DST_DIR)/tzmappings 40 41 endif 42 43 ################################################################################ 44 # Copy the microsoft runtime libraries on windows 45 ifeq ($(OPENJDK_TARGET_OS), windows) 46 47 # Chmod to avoid permission issues if bundles are unpacked on unix platforms. 48 define copy-and-chmod 49 $(install-file) 50 $(CHMOD) a+rx $@ |