jdk/make/UnpackSecurity.gmk
author simonis
Tue, 09 Sep 2014 17:42:07 +0100
changeset 26400 4d6c6f2df610
parent 25859 3317bb8137f4
child 27565 729f9700483a
permissions -rw-r--r--
8057538: Build the freetype library during configure on Windows Reviewed-by: erikj, ihse
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
25859
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     1
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     2
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     4
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    10
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    15
# accompanied this code).
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    16
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    20
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    23
# questions.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    24
#
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    25
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    26
default: all
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    27
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    28
include $(SPEC)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    29
include MakeBase.gmk
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    30
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    31
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    32
# Unpack the binary distributions of the crypto classes if they exist.
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    33
SEC_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/sec-bin.zip
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    34
SEC_FILES_WIN_ZIP := $(JDK_TOPDIR)/make/tools/crypto/sec-windows-bin.zip
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    35
JGSS_WIN32_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/jgss-windows-i586-bin.zip
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    36
JGSS_WIN64_FILES_ZIP := $(JDK_TOPDIR)/make/tools/crypto/jgss-windows-x64-bin.zip
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    37
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    38
define unzip-sec-file
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    39
	$(ECHO) Unzipping $(<F)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    40
	$(MKDIR) -p $(@D)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    41
	$(RM) $@
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    42
	($(CD) $(JDK_OUTPUTDIR) && $(UNZIP) -q -o $< > $@.tmp)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    43
	$(MV) $@.tmp $@
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    44
endef
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    45
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    46
$(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped: $(SEC_FILES_ZIP)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    47
	$(call unzip-sec-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    48
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    49
$(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped: $(SEC_FILES_WIN_ZIP)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    50
	$(call unzip-sec-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    51
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    52
$(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped: $(JGSS_WIN32_FILES_ZIP)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    53
	$(call unzip-sec-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    54
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    55
$(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped: $(JGSS_WIN64_FILES_ZIP)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    56
	$(call unzip-sec-file)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    57
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    58
ifneq ($(wildcard $(SEC_FILES_ZIP)), )
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    59
  IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-bin.unzipped
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    60
  ifeq ($(OPENJDK_TARGET_OS), windows)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    61
    IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.sec-windows-bin.unzipped
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    62
    ifeq ($(OPENJDK_TARGET_CPU), x86)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    63
      IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-i586-bin.unzipped
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    64
    endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    65
    ifeq ($(OPENJDK_TARGET_CPU), x86_64)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    66
      IMPORT_TARGET_FILES += $(JDK_OUTPUTDIR)/classes/_the.jgss-windows-x64-bin.unzipped
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    67
    endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    68
  endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    69
endif
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    70
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    71
################################################################################
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    72
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    73
sec: $(IMPORT_TARGET_FILES)
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    74
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    75
all: sec
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    76
3317bb8137f4 8054834: Modular Source Code
chegar
parents:
diff changeset
    77
.PHONY: sec all