Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 1 | |
| 2 | COMPILE_DEPS = [ |
| 3 | '//lib:CORE_DEPS', |
| 4 | ':onos-incubator-protobuf-services-nb-proto', |
| 5 | '//incubator/protobuf/models:onos-incubator-protobuf-models-proto', |
| 6 | '//incubator/protobuf/models:onos-incubator-protobuf-models', |
| 7 | '//lib:protobuf-java-3.2.0', |
shivani vaidya | 9632b5f | 2017-06-27 11:00:04 -0700 | [diff] [blame] | 8 | '//lib:GRPC_1.3', |
| 9 | '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0', |
Aaron Kruglikov | ae7e3b8 | 2017-05-03 14:13:53 -0700 | [diff] [blame] | 10 | '//lib:grpc-protobuf-lite-1.3.0', |
| 11 | '//incubator/protobuf/api:onos-grpc-api' |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 12 | ] |
| 13 | |
| 14 | GRPC_DEPS = [ |
| 15 | '//lib:GRPC_1.3', |
shivani vaidya | 9632b5f | 2017-06-27 11:00:04 -0700 | [diff] [blame] | 16 | '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0', |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 17 | '//incubator/protobuf/models:onos-incubator-protobuf-models-proto', |
| 18 | '//lib:protobuf-java-3.2.0', |
Aaron Kruglikov | ae7e3b8 | 2017-05-03 14:13:53 -0700 | [diff] [blame] | 19 | '//lib:guava', |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 20 | ] |
| 21 | |
| 22 | BUNDLES = [ |
| 23 | '//incubator/protobuf/models:onos-incubator-protobuf-models', |
| 24 | '//incubator/protobuf/models:onos-incubator-protobuf-models-proto', |
| 25 | ':onos-incubator-protobuf-services-nb', |
| 26 | ':onos-incubator-protobuf-services-nb-proto', |
| 27 | '//lib:protobuf-java-3.2.0', |
| 28 | '//lib:guava', |
| 29 | '//lib:grpc-core-1.3.0', |
shivani vaidya | 9632b5f | 2017-06-27 11:00:04 -0700 | [diff] [blame] | 30 | '//incubator/grpc-dependencies:grpc-core-repkg-1.3.0', |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 31 | '//lib:grpc-protobuf-1.3.0', |
| 32 | '//lib:grpc-stub-1.3.0', |
| 33 | '//lib:grpc-netty-1.3.0', |
| 34 | '//lib:grpc-auth-1.3.0', |
| 35 | '//lib:grpc-context-1.3.0', |
| 36 | '//lib:google-truth-0.28', |
| 37 | '//core/api:onos-api', |
| 38 | '//lib:netty-transport', |
| 39 | '//lib:netty-buffer', |
| 40 | '//lib:netty-resolver', |
| 41 | '//lib:netty-common', |
| 42 | '//lib:netty-codec', |
| 43 | '//lib:netty-handler', |
| 44 | '//lib:netty-codec-http2', |
| 45 | '//lib:netty-codec-http', |
| 46 | "//lib:google-instrumentation-0.3.0", |
| 47 | ] |
| 48 | |
| 49 | grpc_jar( |
| 50 | name = 'onos-incubator-protobuf-services-nb-proto', |
| 51 | deps = GRPC_DEPS, |
Yuta HIGUCHI | a246224 | 2017-06-29 15:13:47 -0700 | [diff] [blame] | 52 | # FIXME should not be manually building absolute path |
| 53 | # come up with glob(..) equivalent in BUCK which can handle directory |
Aaron Kruglikov | 9f95f99 | 2017-06-23 14:15:25 +0900 | [diff] [blame] | 54 | proto_paths = ["$ONOS_ROOT/incubator/protobuf/services/nb/src/main/proto", |
| 55 | "$ONOS_ROOT/incubator/protobuf/models/src/main/proto"] |
| 56 | ) |
| 57 | |
| 58 | osgi_jar_with_tests( |
| 59 | deps = COMPILE_DEPS, |
| 60 | visibility = ['PUBLIC'], |
Jian Li | 5384c84 | 2017-10-11 02:20:51 +0900 | [diff] [blame] | 61 | ) |
| 62 | |
| 63 | onos_app ( |
| 64 | title = 'Grpc Northbound Service', |
| 65 | app_name = "org.onosproject.grpc.nb.service", |
| 66 | category = 'TODO', |
| 67 | url = 'http://onosproject.org', |
| 68 | included_bundles = ['//incubator/grpc-dependencies:grpc-core-repkg-1.3.0', |
| 69 | '//lib:google-instrumentation-0.3.0'], |
| 70 | description = 'gRPC northbound services used to provide fine-grained access to ONOS native northbound interface from off-platform applications', |
Yuta HIGUCHI | a246224 | 2017-06-29 15:13:47 -0700 | [diff] [blame] | 71 | ) |