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