Mercurial > hg > graal-jvmci-8
diff mx.jvmci/mx_jvmci_makefile.py @ 22289:26e2a05f8d95
fixed mx_jvmci_makefile to use mx.classpath_entries()
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Thu, 23 Jul 2015 15:43:13 +0200 |
parents | 5cce6c398d70 |
children | f114acdecf70 |
line wrap: on
line diff
--- a/mx.jvmci/mx_jvmci_makefile.py Thu Jul 23 15:21:26 2015 +0200 +++ b/mx.jvmci/mx_jvmci_makefile.py Thu Jul 23 15:43:13 2015 +0200 @@ -80,13 +80,9 @@ resources = [] projects = [p for p in dist.archived_deps() if p.isJavaProject()] targetPathPrefix = "$(TARGET)/" - libraryDeps = [path_dist_relative(l.get_path(False)) for l in [l for l in dist.archived_deps() if l.isLibrary()]] + annotationProcessorDeps = set() - annotationProcessorDeps = set() - distDeps = [dep for dep in dist.deps if dep.isDistribution()] - - classPath = [targetPathPrefix + os.path.basename(d.path) for d in distDeps] + libraryDeps \ - + [path_dist_relative(exclLib.path) for exclLib in dist.excludedLibs] + classPath = [targetPathPrefix + os.path.basename(e.path) for e in mx.classpath_entries(dist, includeSelf=False, preferProjects=False)] for p in projects: projectDir = path_dist_relative(p.dir) annotationProcessorDeps.update(p.declaredAnnotationProcessors) @@ -97,11 +93,9 @@ resources.append(metaInf) sourceLines = sourcesVariableName + " = " + ("\n" + sourcesVariableName + " += ").join(sources) - apPaths = [] apDistNames = [] apDistVariableNames = [] for apd in sorted(annotationProcessorDeps): - apPaths.append(path_dist_relative(apd.path)) apDistNames.append(apd.name) apDistVariableNames.append("$(" + apd.name + "_JAR)") shouldExport = dist in jdkDeployedDists