jdk/make/gendata/Gendata-jdk.dev.gmk
author chegar
Wed, 03 Dec 2014 14:22:58 +0000
changeset 27565 729f9700483a
parent 26227 aa7ada31eb77
permissions -rw-r--r--
8049367: Modular Run-Time Images Reviewed-by: chegar, dfuchs, ihse, joehw, mullan, psandoz, wetmore Contributed-by: alan.bateman@oracle.com, alex.buckley@oracle.com, bradford.wetmore@oracle.com, chris.hegarty@oracle.com, erik.joelsson@oracle.com, james.laskey@oracle.com, jonathan.gibbons@oracle.com, karen.kinnear@oracle.com, magnus.ihse.bursie@oracle.com, mandy.chung@oracle.com, mark.reinhold@oracle.com, paul.sandoz@oracle.com, sundararajan.athijegannathan@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
26227
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     1
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     2
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     4
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    10
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    15
# accompanied this code).
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    16
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    20
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    23
# questions.
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    24
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    25
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    26
include GendataCommon.gmk
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    27
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    28
$(eval $(call IncludeCustomExtension, jdk, gendata/Gendata-jdk.dev.gmk))
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    29
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26227
diff changeset
    30
JDEPS_MODULES_XML := $(JDK_OUTPUTDIR)/modules/jdk.dev/com/sun/tools/jdeps/resources/jdeps-modules.xml
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26227
diff changeset
    31
MODULES_XML += $(TOPDIR)/modules.xml
26227
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    32
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    33
#
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    34
# Generate modules.xml for jdeps to use
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    35
# It augments $(TOPDIR)/modules.xml to include module membership
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    36
#
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26227
diff changeset
    37
$(JDEPS_MODULES_XML): $(BUILD_TOOLS_JDK) $(MODULES_XML)
26227
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    38
	$(MKDIR) -p $(@D)
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    39
	$(RM) $@
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26227
diff changeset
    40
	$(TOOL_GENMODULESXML) -o $@ -mp $(JDK_OUTPUTDIR)/modules $(MODULES_XML)
26227
aa7ada31eb77 8055856: checkdeps build target doesn't work for cross-compilation builds
mchung
parents:
diff changeset
    41
27565
729f9700483a 8049367: Modular Run-Time Images
chegar
parents: 26227
diff changeset
    42
TARGETS += $(JDEPS_MODULES_XML)