| # External dependencies for the java_* rules. |
| |
| new_local_repository( |
| name = "local_jdk", |
| path = DEFAULT_SYSTEM_JAVABASE, |
| build_file = __embedded_dir__ + "/jdk.BUILD", |
| ) |
| |
| new_local_repository( |
| name = "embedded_jdk", |
| path = DEFAULT_SERVER_JAVABASE, |
| build_file = __embedded_dir__ + "/jdk.BUILD", |
| ) |
| |
| bind( |
| name = "bootclasspath", |
| actual = "@local_jdk//:bootclasspath", |
| ) |
| # TODO(cushon): migrate to extclasspath and delete |
| bind( |
| name = "extdir", |
| actual = "@local_jdk//:extdir", |
| ) |
| bind( |
| name = "extclasspath", |
| actual = "@local_jdk//:extdir", |
| ) |
| bind( |
| name = "jni_header", |
| actual = "@local_jdk//:jni_header", |
| ) |
| |
| bind( |
| name = "jni_md_header-darwin", |
| actual = "@local_jdk//:jni_md_header-darwin", |
| ) |
| |
| bind( |
| name = "jni_md_header-linux", |
| actual = "@local_jdk//:jni_md_header-linux", |
| ) |
| |
| bind( |
| name = "jni_md_header-freebsd", |
| actual = "@local_jdk//:jni_md_header-freebsd", |
| ) |
| |
| bind( |
| name = "java", |
| actual = "@local_jdk//:java", |
| ) |
| |
| bind( |
| name = "jar", |
| actual = "@local_jdk//:jar", |
| ) |
| |
| bind( |
| name = "javac", |
| actual = "@local_jdk//:javac", |
| ) |
| |
| bind( |
| name = "jre", |
| actual = "@local_jdk//:jre", |
| ) |
| |
| bind( |
| name = "jdk", |
| actual = "@local_jdk//:jdk", |
| ) |
| |
| # TODO: Remove these two rules after we've migrated. In order to properly look |
| # up Jdks/Jres for cross-platform builds, the lookup needs to happen in the Jdk |
| # repository. For now, use an alias rule that redirects to //external:{jre,jdk}. |
| bind( |
| name = "jre-default", |
| actual = "@local_jdk//:jre", |
| ) |
| |
| bind( |
| name = "jdk-default", |
| actual = "@local_jdk//:jdk", |
| ) |