# HG changeset patch # User Doug Simon # Date 1435171869 -7200 # Node ID 4ce725f06a27ac3ccee98e1fa81002fcfd651650 # Parent c30b055ed79a4a7c918d3dba0373afb3d0b4d3c4 jvmci.make intermediate output is now flattened into build/jvmci.make diff -r c30b055ed79a -r 4ce725f06a27 make/Makefile --- a/make/Makefile Wed Jun 24 15:01:32 2015 +0200 +++ b/make/Makefile Wed Jun 24 20:51:09 2015 +0200 @@ -312,7 +312,7 @@ buildshared: cd .. && \ $(MAKE) -f make/jvmci.make \ - TARGET=build/make \ + TARGET=build/jvmci.make \ HS_COMMON_SRC=$(HS_COMMON_SRC) \ ABS_BOOTDIR=$(ABS_BOOTDIR) \ SHARED_DIR=$(SHARED_DIR) \ diff -r c30b055ed79a -r 4ce725f06a27 make/jvmci.make --- a/make/jvmci.make Wed Jun 24 15:01:32 2015 +0200 +++ b/make/jvmci.make Wed Jun 24 20:51:09 2015 +0200 @@ -125,18 +125,18 @@ JDK_INTERNAL_JVMCI_OPTIONS_PROCESSOR_SRC = $(shell find jvmci/jdk.internal.jvmci.options/src -type f 2> /dev/null) JDK_INTERNAL_JVMCI_OPTIONS_PROCESSOR_SRC += $(shell find jvmci/jdk.internal.jvmci.options.processor/src -type f 2> /dev/null) -JDK_INTERNAL_JVMCI_OPTIONS_PROCESSOR_JAR = $(TARGET)/jvmci/jdk.internal.jvmci.options.processor/ap/jdk.internal.jvmci.options.processor.jar +JDK_INTERNAL_JVMCI_OPTIONS_PROCESSOR_JAR = $(TARGET)/jdk.internal.jvmci.options.processor.jar JDK_INTERNAL_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC = $(shell find jvmci/jdk.internal.jvmci.hotspotvmconfig/src -type f 2> /dev/null) JDK_INTERNAL_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC += $(shell find jvmci/jdk.internal.jvmci.common/src -type f 2> /dev/null) JDK_INTERNAL_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_SRC += $(shell find jvmci/jdk.internal.jvmci.hotspotvmconfig.processor/src -type f 2> /dev/null) -JDK_INTERNAL_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR = $(TARGET)/jvmci/jdk.internal.jvmci.hotspotvmconfig.processor/ap/jdk.internal.jvmci.hotspotvmconfig.processor.jar +JDK_INTERNAL_JVMCI_HOTSPOTVMCONFIG_PROCESSOR_JAR = $(TARGET)/jdk.internal.jvmci.hotspotvmconfig.processor.jar JDK_INTERNAL_JVMCI_SERVICE_PROCESSOR_SRC = $(shell find jvmci/jdk.internal.jvmci.service/src -type f 2> /dev/null) JDK_INTERNAL_JVMCI_SERVICE_PROCESSOR_SRC += $(shell find jvmci/jdk.internal.jvmci.service.processor/src -type f 2> /dev/null) -JDK_INTERNAL_JVMCI_SERVICE_PROCESSOR_JAR = $(TARGET)/jvmci/jdk.internal.jvmci.service.processor/ap/jdk.internal.jvmci.service.processor.jar +JDK_INTERNAL_JVMCI_SERVICE_PROCESSOR_JAR = $(TARGET)/jdk.internal.jvmci.service.processor.jar JVMCI_API_SRC = $(shell find jvmci/jdk.internal.jvmci.meta/src -type f 2> /dev/null) JVMCI_API_SRC += $(shell find jvmci/jdk.internal.jvmci.code/src -type f 2> /dev/null) @@ -145,15 +145,15 @@ JVMCI_API_SRC += $(shell find jvmci/jdk.internal.jvmci.common/src -type f 2> /dev/null) JVMCI_API_SRC += $(shell find jvmci/jdk.internal.jvmci.debug/src -type f 2> /dev/null) -JVMCI_API_JAR = $(TARGET)/build/jvmci-api.jar +JVMCI_API_JAR = $(TARGET)/jvmci-api.jar -JVMCI_API_DEP_JARS = $(TARGET)/build/jvmci-service.jar jvmci/findbugs-SuppressFBWarnings.jar +JVMCI_API_DEP_JARS = $(TARGET)/jvmci-service.jar jvmci/findbugs-SuppressFBWarnings.jar EXPORTED_FILES += $(JVMCI_API_JAR) JVMCI_SERVICE_SRC = $(shell find jvmci/jdk.internal.jvmci.service/src -type f 2> /dev/null) -JVMCI_SERVICE_JAR = $(TARGET)/build/jvmci-service.jar +JVMCI_SERVICE_JAR = $(TARGET)/jvmci-service.jar JVMCI_SERVICE_DEP_JARS = jvmci/findbugs-SuppressFBWarnings.jar @@ -168,9 +168,9 @@ JVMCI_HOTSPOT_SRC += $(shell find jvmci/jdk.internal.jvmci.hotspot.sparc/src -type f 2> /dev/null) JVMCI_HOTSPOT_SRC += $(shell find jvmci/jdk.internal.jvmci.hotspot.jfr/src -type f 2> /dev/null) -JVMCI_HOTSPOT_JAR = $(TARGET)/build/jvmci-hotspot.jar +JVMCI_HOTSPOT_JAR = $(TARGET)/jvmci-hotspot.jar -JVMCI_HOTSPOT_DEP_JARS = $(TARGET)/build/jvmci-api.jar $(TARGET)/build/jvmci-service.jar jvmci/findbugs-SuppressFBWarnings.jar +JVMCI_HOTSPOT_DEP_JARS = $(TARGET)/jvmci-api.jar $(TARGET)/jvmci-service.jar jvmci/findbugs-SuppressFBWarnings.jar EXPORTED_FILES += $(JVMCI_HOTSPOT_JAR) diff -r c30b055ed79a -r 4ce725f06a27 mx.graal/mx_graal_makefile.py --- a/mx.graal/mx_graal_makefile.py Wed Jun 24 15:01:32 2015 +0200 +++ b/mx.graal/mx_graal_makefile.py Wed Jun 24 20:51:09 2015 +0200 @@ -88,14 +88,14 @@ return os.path.relpath(p, dist.suite.dir) shortName = short_dist_name(dist.name) jdkDeployedDists = get_jdk_deployed_dists() - jarPath = path_dist_relative(dist.path) + jarName = os.path.basename(dist.path) sourcesVariableName = shortName + "_SRC" depJarVariableName = shortName + "_DEP_JARS" sources = [] resources = [] sortedDeps = dist.sorted_deps(True, transitive=False, includeAnnotationProcessors=True) projects = filter_projects(sortedDeps, mx.Project) - targetPathPrefix = "$(TARGET)" + os.path.sep + targetPathPrefix = "$(TARGET)/" libraryDeps = [path_dist_relative(l.get_path(False)) for l in filter_projects(sortedDeps, mx.Library)] annotationProcessorDeps = [] @@ -104,7 +104,7 @@ for d in distDeps: update_list(distDepProjects, d.sorted_deps(includeLibs=False, transitive=True)) - classPath = [targetPathPrefix + path_dist_relative(d.path) for d in distDeps] + libraryDeps \ + classPath = [targetPathPrefix + os.path.basename(d.path) for d in distDeps] + libraryDeps \ + [path_dist_relative(mx.dependency(name).path) for name in dist.excludedDependencies] for p in projects: if p.definedAnnotationProcessors != None and p.definedAnnotationProcessorsDist != dist: @@ -112,9 +112,9 @@ for p in projects: projectDir = path_dist_relative(p.dir) if p not in distDepProjects and p not in annotationProcessorDeps: - for src in [projectDir + os.path.sep + d for d in p.srcDirs]: + for src in [projectDir + '/' + d for d in p.srcDirs]: sources.append("$(shell find {} -type f 2> /dev/null)".format(src)) - metaInf = src + os.path.sep + "META-INF" + metaInf = src + "/META-INF" if os.path.exists(metaInf): resources.append(metaInf) @@ -131,7 +131,7 @@ shouldExport = dist.name in jdkDeployedDists props = { "name": shortName, - "jarPath": targetPathPrefix + jarPath, + "jarName": targetPathPrefix + jarName, "depJarsVariableAccess": "$(" + depJarVariableName + ")" if len(classPath) > 0 else "", "depJarsVariable": depJarVariableName, "sourceLines": sourceLines, @@ -143,7 +143,7 @@ } mf.add_definition(sourceLines) - mf.add_definition("{name}_JAR = {jarPath}".format(**props)) + mf.add_definition("{name}_JAR = {jarName}".format(**props)) if len(classPath) > 0: mf.add_definition("{depJarsVariable} = {jarDeps}".format(**props)) if shouldExport: mf.add_definition("EXPORTED_FILES += $({name}_JAR)".format(**props)) mf.add_rule("""$({name}_JAR): $({sourcesVariableName}) {annotationProcessors} {depJarsVariableAccess}