Skip to content

Commit

Permalink
Format BUILD files
Browse files Browse the repository at this point in the history
Formatting-only change; no substantive changes.
  • Loading branch information
mjansche committed Nov 29, 2017
1 parent 8384dc5 commit a3eb45f
Show file tree
Hide file tree
Showing 18 changed files with 110 additions and 71 deletions.
4 changes: 2 additions & 2 deletions Mymr/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ licenses(["notice"]) # Apache 2.0
android_binary(
name = "MyanmarUnicodeKeyboard",
srcs = [
"src/main/java/com/google/languageresources/mymr/CandidateView.java",
"src/main/java/com/google/languageresources/mymr/MyanmarUnicodeKeyboard.java",
"src/main/java/com/google/languageresources/mymr/CandidateView.java",
"src/main/java/com/google/languageresources/mymr/MyanmarUnicodeKeyboard.java",
],
custom_package = "com.google.languageresources.mymr",
manifest = "AndroidManifest.xml",
Expand Down
9 changes: 5 additions & 4 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,25 @@ android_sdk_repository(
# Protobuf

protobuf_version = "3.5.0"

protobuf_sha256 = "0cc6607e2daa675101e9b7398a436f09167dffb8ca0489b0307ff7260498c13c"

# proto_library and related rules implicitly depend on @com_google_protobuf.
http_archive(
name = "com_google_protobuf",
sha256 = protobuf_sha256,
strip_prefix = "protobuf-%s" % protobuf_version,
urls = ["https://github.com/google/protobuf/archive/v%s.tar.gz"
% protobuf_version],
urls = ["https://github.com/google/protobuf/archive/v%s.tar.gz" %
protobuf_version],
)

# DEPREACTED. For backwards compatibility with older versions of Bazel:
http_archive(
name = "com_google_protobuf_cc",
sha256 = protobuf_sha256,
strip_prefix = "protobuf-%s" % protobuf_version,
urls = ["https://github.com/google/protobuf/archive/v%s.tar.gz"
% protobuf_version],
urls = ["https://github.com/google/protobuf/archive/v%s.tar.gz" %
protobuf_version],
)

new_http_archive(
Expand Down
4 changes: 2 additions & 2 deletions af/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ sh_binary(
name = "prepare-g2p-data",
srcs = ["prepare-g2p-data.sh"],
data = [
"@openfst//:farcompilestrings",
"//festus:lexicon-diagnostics",
"//festus:make-alignable-symbols",
"@openfst//:farcompilestrings",
],
)

Expand Down Expand Up @@ -137,10 +137,10 @@ sh_binary(
name = "train-graphone-model",
srcs = ["train-graphone-model.sh"],
data = [
"//festus:ngramfinalize",
"@opengrm_ngram//:ngramcount",
"@opengrm_ngram//:ngrammake",
"@opengrm_ngram//:ngramshrink",
"//festus:ngramfinalize",
],
)

Expand Down
5 changes: 3 additions & 2 deletions af/festvox/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ load("//festival_utils:festvox.bzl", "json_phonology_test")
Usage
bazel test //af/festvox:phonology_test
"""

json_phonology_test(
phonology="phonology.json"
phonology = "phonology.json",
)

genrule(
Expand All @@ -47,6 +48,6 @@ Usage
"""

make_festvox_prompts(
prompts = "//af/data:prompts.tsv",
lexicon = "//af:lex_full.txt",
prompts = "//af/data:prompts.tsv",
)
6 changes: 3 additions & 3 deletions af/sparrowhawk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ sh_binary(
name = "af_sparrowhawk",
srcs = ["af_sparrowhawk.sh"],
data = [
"//af/textnorm/classifier:tokenize_and_classify_thrax_compile_grm",
"//af/textnorm/verbalizer:verbalize_thrax_compile_grm",
"//utils:sh_utter",
"sparrowhawk_configuration.ascii_proto",
"tokenizer.ascii_proto",
"verbalizer.ascii_proto",
"//af/textnorm/classifier:tokenize_and_classify_thrax_compile_grm",
"//af/textnorm/verbalizer:verbalize_thrax_compile_grm",
"//utils:sh_utter",
],
)
5 changes: 4 additions & 1 deletion festival_utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@
# Copyright 2016 Google, Inc.
# Author: [email protected] (Pasindu De Silva)

exports_files(["prepare_prompts.py", "festvox.bzl"])
exports_files([
"prepare_prompts.py",
"festvox.bzl",
])
26 changes: 13 additions & 13 deletions festus/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ cc_test(
timeout = "short",
srcs = ["real-weight-test.cc"],
deps = [
":gtest",
":real-weight",
":weight-test-lib",
":gtest",
"@openfst//:weight-tester",
],
)
Expand All @@ -85,10 +85,10 @@ cc_test(
timeout = "short",
srcs = ["modular-int-semiring-test.cc"],
deps = [
":gtest_main",
":modular-int-semiring",
":weight",
":weight-test-lib",
":gtest_main",
],
)

Expand All @@ -103,10 +103,10 @@ cc_test(
timeout = "short",
srcs = ["max-times-semiring-test.cc"],
deps = [
":gtest_main",
":max-times-semiring",
":weight",
":weight-test-lib",
":gtest_main",
],
)

Expand All @@ -124,10 +124,10 @@ cc_test(
timeout = "short",
srcs = ["quaternion-semiring-test.cc"],
deps = [
":gtest_main",
":quaternion-semiring",
":real-weight",
":weight-test-lib",
":gtest_main",
"@openfst//:weight",
],
)
Expand All @@ -138,8 +138,8 @@ cc_test(
srcs = ["star-test.cc"],
deps = [
":float-weight-star",
":real-weight",
":gtest_main",
":real-weight",
"@openfst//:weight",
],
)
Expand All @@ -157,9 +157,9 @@ cc_test(
linkopts = ["-lm"],
deps = [
":float-weight-star",
":gtest_main",
":matrix",
":real-weight",
":gtest_main",
"@openfst//:fst",
],
)
Expand All @@ -169,8 +169,8 @@ cc_library(
srcs = ["proto-util.cc"],
hdrs = ["proto-util.h"],
deps = [
"@openfst//:base",
"@com_google_protobuf//:protobuf",
"@openfst//:base",
],
)

Expand All @@ -179,8 +179,8 @@ cc_library(
srcs = ["string-util.cc"],
hdrs = ["string-util.h"],
deps = [
"@openfst//:base",
"@com_google_protobuf//:protobuf_lite",
"@openfst//:base",
],
)

Expand All @@ -189,8 +189,8 @@ cc_test(
timeout = "short",
srcs = ["string-util-test.cc"],
deps = [
":string-util",
":gtest_main",
":string-util",
],
)

Expand Down Expand Up @@ -225,8 +225,8 @@ cc_test(
timeout = "short",
srcs = ["iterator-test.cc"],
deps = [
":iterator",
":gtest_main",
":iterator",
],
)

Expand All @@ -241,9 +241,9 @@ cc_test(
timeout = "short",
srcs = ["topsort-test.cc"],
deps = [
":gtest_main",
":iterator",
":topsort",
":gtest_main",
"@openfst//:fst",
],
)
Expand Down Expand Up @@ -383,10 +383,10 @@ cc_test(
timeout = "short",
srcs = ["term-semiring-test.cc"],
deps = [
":gtest_main",
":term-semiring",
":weight",
":weight-test-lib",
":gtest_main",
"@openfst//:weight",
],
)
Expand All @@ -407,12 +407,12 @@ cc_test(
":algebraic-path",
":arc",
":float-weight-star",
":gtest",
":max-times-semiring",
":modular-int-semiring",
":quaternion-semiring",
":real-weight",
":weight",
":gtest",
"@openfst//:fst",
],
)
Expand Down
8 changes: 4 additions & 4 deletions festus/runtime/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ cc_binary(
name = "g2p-lookup",
srcs = ["g2p-lookup.cc"],
deps = [
"@openfst//:fst",
"@openfst//:ngram",
":compact",
":g2p",
"@openfst//:fst",
"@openfst//:ngram",
],
)

cc_library(
name = "g2p",
hdrs = ["g2p.h"],
deps = [
"@openfst//:fst",
":fst-util",
"@openfst//:fst",
],
)

Expand All @@ -53,9 +53,9 @@ cc_binary(
name = "total-weight",
srcs = ["total-weight.cc"],
deps = [
":fst-util",
"@openfst//:fst",
"@openfst//:ngram",
":fst-util",
],
)

Expand Down
3 changes: 2 additions & 1 deletion jv/festvox/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ load("//festival_utils:festvox.bzl", "json_phonology_test")
Usage
bazel test jv/festvox:phonology_test
"""

json_phonology_test(
phonology="phonology.json"
phonology = "phonology.json",
)
2 changes: 1 addition & 1 deletion re2.BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ cc_library(
"re2/stringpiece.h",
],
includes = ["."],
deps = ["re2-impl"],
visibility = ["//visibility:public"],
deps = ["re2-impl"],
)

cc_library(
Expand Down
4 changes: 2 additions & 2 deletions si/data/BUILD
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exports_files([
"lexicon.tsv",
"prompts.tsv",
"lexicon.tsv",
"prompts.tsv",
])
6 changes: 4 additions & 2 deletions si/festvox/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,16 @@ load("//festival_utils:festvox.bzl", "json_phonology_test")
Usage
bazel test //si/festvox:phonology_test
"""

json_phonology_test(
phonology="ipa_phonology.json"
phonology = "ipa_phonology.json",
)

"""
Usage
bazel build //si/festvox:make_lexicon_scm
"""

genrule(
name = "make_lexicon_scm",
srcs = ["//si/data:lexicon.tsv"],
Expand All @@ -48,6 +50,6 @@ Usage
"""

make_festvox_prompts(
prompts = "//si/data:prompts.tsv",
lexicon = "//si/data:lexicon.tsv",
prompts = "//si/data:prompts.tsv",
)
6 changes: 3 additions & 3 deletions si/sparrowhawk/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ sh_binary(
name = "si_sparrowhawk",
srcs = ["si_sparrowhawk.sh"],
data = [
"//si/textnorm/classifier:tokenize_and_classify_thrax_compile_grm",
"//si/textnorm/verbalizer:verbalize_thrax_compile_grm",
"//utils:sh_utter",
"sparrowhawk_configuration.ascii_proto",
"tokenizer.ascii_proto",
"verbalizer.ascii_proto",
"//si/textnorm/classifier:tokenize_and_classify_thrax_compile_grm",
"//si/textnorm/verbalizer:verbalize_thrax_compile_grm",
"//utils:sh_utter",
],
)
Loading

0 comments on commit a3eb45f

Please sign in to comment.