make/gensrc/Gensrc-jdk.internal.vm.compiler.gmk
author dlong
Thu, 08 Nov 2018 15:19:14 -0800
changeset 52464 c139884bd80e
parent 51404 c5461fe16efb
child 54380 e297c7bb6469
permissions -rw-r--r--
8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor 8211781: re-building fails after changing Graal sources Reviewed-by: erikj, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     1
#
52464
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
     2
# Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved.
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     4
#
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     7
# published by the Free Software Foundation.  Oracle designates this
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     8
# particular file as subject to the "Classpath" exception as provided
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
     9
# by Oracle in the LICENSE file that accompanied this code.
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    10
#
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    11
# This code is distributed in the hope that it will be useful, but WITHOUT
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    12
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    13
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    14
# version 2 for more details (a copy is included in the LICENSE file that
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    15
# accompanied this code).
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    16
#
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    17
# You should have received a copy of the GNU General Public License version
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    18
# 2 along with this work; if not, write to the Free Software Foundation,
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    19
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    20
#
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    21
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    22
# or visit www.oracle.com if you need additional information or have any
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    23
# questions.
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    24
#
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    25
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    26
default: all
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    27
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    28
include $(SPEC)
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    29
include MakeBase.gmk
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    30
47314
743814386712 8188814: Simplify IncludeCustomExtension
ihse
parents: 47217
diff changeset
    31
$(eval $(call IncludeCustomExtension, gensrc/Gensrc-jdk.internal.vm.compiler.gmk))
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    32
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    33
GENSRC_DIR := $(SUPPORT_OUTPUTDIR)/gensrc/$(MODULE)
47217
72e3ae9a25eb 8187444: Forest Consolidation: Make build work
erikj
parents: 47216
diff changeset
    34
SRC_DIR := $(TOPDIR)/src/$(MODULE)/share/classes
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    35
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    36
################################################################################
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    37
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    38
PROC_SRC_SUBDIRS := \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    39
    org.graalvm.compiler.code \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    40
    org.graalvm.compiler.core \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    41
    org.graalvm.compiler.core.aarch64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    42
    org.graalvm.compiler.core.amd64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    43
    org.graalvm.compiler.core.common \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    44
    org.graalvm.compiler.core.sparc \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    45
    org.graalvm.compiler.debug \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    46
    org.graalvm.compiler.hotspot \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    47
    org.graalvm.compiler.hotspot.aarch64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    48
    org.graalvm.compiler.hotspot.amd64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    49
    org.graalvm.compiler.hotspot.sparc \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    50
    org.graalvm.compiler.graph \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    51
    org.graalvm.compiler.java \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    52
    org.graalvm.compiler.lir \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    53
    org.graalvm.compiler.lir.amd64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    54
    org.graalvm.compiler.loop \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    55
    org.graalvm.compiler.loop.phases \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    56
    org.graalvm.compiler.nodes \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    57
    org.graalvm.compiler.replacements \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    58
    org.graalvm.compiler.replacements.aarch64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    59
    org.graalvm.compiler.replacements.amd64 \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    60
    org.graalvm.compiler.phases \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    61
    org.graalvm.compiler.phases.common \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    62
    org.graalvm.compiler.printer \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    63
    org.graalvm.compiler.virtual \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    64
    #
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    65
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    66
PROC_SRC_DIRS := $(patsubst %, $(SRC_DIR)/%/src, $(PROC_SRC_SUBDIRS))
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    67
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    68
PROC_SRCS := $(filter %.java, $(call CacheFind, $(PROC_SRC_DIRS)))
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    69
52464
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    70
ALL_SRC_DIRS := $(SRC_DIR) $(wildcard $(SRC_DIR)/*/src)
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    71
SOURCEPATH := $(call PathList, $(ALL_SRC_DIRS))
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    72
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    73
PROCESSOR_JARS := \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    74
    $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.match.processor.jar \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    75
    $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.nodeinfo.processor.jar \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    76
    $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.options.processor.jar \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    77
    $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.replacements.verifier.jar \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    78
    $(BUILDTOOLS_OUTPUTDIR)/jdk.vm.compiler.serviceprovider.processor.jar \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    79
    #
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    80
PROCESSOR_PATH := $(call PathList, $(PROCESSOR_JARS))
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    81
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
    82
ADD_EXPORTS := \
44242
6a0ee4ac7852 8176238: [AOT] failure to build jdk.vm.compier with --with-jobs=1 configure flag
kvn
parents: 43972
diff changeset
    83
    --add-modules jdk.internal.vm.ci \
52464
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    84
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.aarch64=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    85
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.amd64=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    86
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.code=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    87
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.site=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    88
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.code.stack=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    89
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.common=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    90
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    91
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.aarch64=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    92
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.amd64=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    93
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.events=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    94
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspot.sparc=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    95
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.hotspotvmconfig=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    96
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.inittimer=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    97
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.meta=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    98
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.runtime=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
    99
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.services=jdk.internal.vm.compiler \
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
   100
    --add-exports jdk.internal.vm.ci/jdk.vm.ci.sparc=jdk.internal.vm.compiler \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   101
    #
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   102
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   103
$(GENSRC_DIR)/_gensrc_proc_done: $(PROC_SRCS) $(PROCESSOR_JARS)
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   104
	$(call MakeDir, $(@D))
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   105
	$(eval $(call ListPathsSafely,PROC_SRCS,$(@D)/_gensrc_proc_files))
50377
1d476feca3c9 8203924: Zero: bootcycle-images build fails on x86_64
sgehwolf
parents: 48923
diff changeset
   106
	$(JAVA) $(NEW_JAVAC) \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   107
	    -XDignore.symbol.file \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   108
	    --upgrade-module-path $(JDK_OUTPUTDIR)/modules --system none \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   109
	    $(ADD_EXPORTS) \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   110
	    -sourcepath $(SOURCEPATH) \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   111
	    -implicit:none \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   112
	    -proc:only \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   113
	    -processorpath $(PROCESSOR_PATH) \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   114
	    -d $(GENSRC_DIR) \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   115
	    -s $(GENSRC_DIR) \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   116
	    @$(@D)/_gensrc_proc_files
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   117
	$(TOUCH) $@
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   118
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   119
TARGETS += $(GENSRC_DIR)/_gensrc_proc_done
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   120
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   121
################################################################################
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   122
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   123
$(GENSRC_DIR)/module-info.java.extra: $(GENSRC_DIR)/_gensrc_proc_done
52464
c139884bd80e 8213348: jdk.internal.vm.compiler.management service providers missing in module descriptor
dlong
parents: 51404
diff changeset
   124
	$(ECHO) "" > $@;
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   125
	($(CD) $(GENSRC_DIR)/META-INF/providers && \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   126
	    p=""; \
51339
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   127
	    impl=""; \
51404
c5461fe16efb 8208463: jdk.internal.vm.compiler's module-info.java.extra contains duplicated provides of the same service interface
kvn
parents: 51339
diff changeset
   128
	    for i in $$($(GREP) '^' * | $(SORT) -t ':' -k 2 | $(SED) 's/:.*//'); do \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   129
	      c=$$($(CAT) $$i | $(TR) -d '\n\r'); \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   130
	      if test x$$p != x$$c; then \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   131
                if test x$$p != x; then \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   132
	          $(ECHO) "    ;" >> $@; \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   133
	        fi; \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   134
	        $(ECHO) "provides $$c with" >> $@; \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   135
                p=$$c; \
51339
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   136
	        impl=""; \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   137
	      fi; \
51339
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   138
              if test x$$impl != x; then \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   139
	        $(ECHO) "  , $$i" >> $@; \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   140
              else \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   141
	        $(ECHO) "    $$i" >> $@; \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   142
              fi; \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   143
              impl=$$i; \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   144
	    done); \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   145
            $(ECHO) "    ;" >> $@; \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   146
	$(ECHO) "uses org.graalvm.compiler.options.OptionDescriptors;" >> $@; \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   147
	$(ECHO) "provides org.graalvm.compiler.options.OptionDescriptors with" >> $@; \
51339
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   148
        impl=""; \
48923
b75c9e2e3b1f 8198450: Make jdk.internal.vm.compiler/module-info.java.extra reproducable
ihse
parents: 47314
diff changeset
   149
	for i in $$($(FIND) $(GENSRC_DIR) -name '*_OptionDescriptors.java' | $(SORT)); do \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   150
	    c=$$($(ECHO) $$i | $(SED) 's:.*/jdk\.internal\.vm\.compiler/\(.*\)\.java:\1:' | $(TR) '/' '.'); \
51339
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   151
            if test x$$impl != x; then \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   152
	      $(ECHO) "  , $$c" >> $@; \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   153
            else \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   154
	      $(ECHO) "    $$c" >> $@; \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   155
            fi; \
554bb4e2d10d 8202941: GenModuleInfoSource build tool does not detect missing semicolons
mchung
parents: 50377
diff changeset
   156
            impl=$$c; \
43972
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   157
	done; \
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   158
	$(ECHO) "    ;" >> $@;
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   159
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   160
TARGETS += $(GENSRC_DIR)/module-info.java.extra
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   161
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   162
################################################################################
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   163
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   164
all: $(TARGETS)
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   165
1ade39b8381b 8174879: Rename jdk.vm.ci to jdk.internal.vm.ci
kvn
parents:
diff changeset
   166
.PHONY: default all