Update to Prolog Cafe 1.4
Prolog Cafe is now built with Buck and has a slightly smaller runtime. Many features not required for Gerrit Code Review were stripped out of the fork. Package names were reorganized to make the runtime smaller to read by pulling exceptions out to their own package. This is a breaking change for any plugins that contribute a predicate. Change-Id: Icb50d306dfda146497814c65e2c03fae416ec5e1
This commit is contained in:
@@ -1,15 +1,53 @@
|
||||
include_defs('//lib/maven.defs')
|
||||
|
||||
VERSION = '1.4'
|
||||
REPO = GERRIT
|
||||
|
||||
maven_jar(
|
||||
name = 'prolog-cafe',
|
||||
id = 'com.googlecode.prolog-cafe:PrologCafe:1.3',
|
||||
sha1 = '5e0fbf18e8c98c4113f9acc978306884a1152870',
|
||||
name = 'runtime',
|
||||
id = 'com.googlecode.prolog-cafe:prolog-runtime:' + VERSION,
|
||||
sha1 = 'a99cde464f7ff75371751493ab821edd7a225bc3',
|
||||
license = 'prologcafe',
|
||||
repository = GERRIT,
|
||||
repository = REPO,
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = 'compiler',
|
||||
id = 'com.googlecode.prolog-cafe:prolog-compiler:' + VERSION,
|
||||
sha1 = 'ced8f50f635486bc96fca6315cacb8b18a8ef68b',
|
||||
license = 'prologcafe',
|
||||
repository = REPO,
|
||||
deps = [
|
||||
':io',
|
||||
':runtime',
|
||||
],
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = 'io',
|
||||
id = 'com.googlecode.prolog-cafe:prolog-io:' + VERSION,
|
||||
sha1 = 'a4f71e4f7b80dd7a2ee5138d31f2c131ec672d15',
|
||||
license = 'prologcafe',
|
||||
repository = REPO,
|
||||
deps = [':runtime'],
|
||||
visibility = [],
|
||||
)
|
||||
|
||||
maven_jar(
|
||||
name = 'cafeteria',
|
||||
id = 'com.googlecode.prolog-cafe:prolog-cafeteria:' + VERSION,
|
||||
sha1 = '9d71fbbc1e4cb9280c5a5d68836a904f7abfd9f9',
|
||||
license = 'prologcafe',
|
||||
repository = REPO,
|
||||
deps = [
|
||||
':io',
|
||||
':runtime',
|
||||
],
|
||||
visibility = ['//gerrit-pgm:'],
|
||||
)
|
||||
|
||||
java_binary(
|
||||
name = 'compiler',
|
||||
name = 'compiler_bin',
|
||||
main_class = 'BuckPrologCompiler',
|
||||
deps = [':compiler_lib'],
|
||||
visibility = ['PUBLIC'],
|
||||
@@ -18,6 +56,9 @@ java_binary(
|
||||
java_library(
|
||||
name = 'compiler_lib',
|
||||
srcs = ['java/BuckPrologCompiler.java'],
|
||||
deps = [':prolog-cafe'],
|
||||
deps = [
|
||||
':compiler',
|
||||
':runtime',
|
||||
],
|
||||
visibility = ['//tools/eclipse:classpath'],
|
||||
)
|
||||
|
@@ -12,8 +12,8 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import com.googlecode.prolog_cafe.compiler.CompileException;
|
||||
import com.googlecode.prolog_cafe.compiler.Compiler;
|
||||
import com.googlecode.prolog_cafe.exceptions.CompileException;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
|
@@ -19,7 +19,7 @@ def prolog_cafe_library(
|
||||
visibility = []):
|
||||
genrule(
|
||||
name = name + '__pl2j',
|
||||
cmd = '$(exe //lib/prolog:compiler)' +
|
||||
cmd = '$(exe //lib/prolog:compiler_bin)' +
|
||||
' $TMP $OUT ' +
|
||||
' '.join(srcs),
|
||||
srcs = srcs,
|
||||
@@ -28,7 +28,7 @@ def prolog_cafe_library(
|
||||
java_library(
|
||||
name = name + '__lib',
|
||||
srcs = [':' + name + '__pl2j'],
|
||||
deps = ['//lib/prolog:prolog-cafe'] + deps,
|
||||
deps = ['//lib/prolog:runtime'] + deps,
|
||||
)
|
||||
genrule(
|
||||
name = name + '__ln',
|
||||
|
Reference in New Issue
Block a user