Ray Milkey | 28d77f3 | 2018-07-27 09:21:49 -0700 | [diff] [blame] | 1 | COMPILE_DEPS = CORE_DEPS + KRYO + ATOMIX + [ |
Ray Milkey | 324af93 | 2018-06-20 19:50:31 -0700 | [diff] [blame] | 2 | "//core/common:onos-core-common", |
| 3 | "//core/store/serializers:onos-core-serializers", |
Ray Milkey | 324af93 | 2018-06-20 19:50:31 -0700 | [diff] [blame] | 4 | ] |
| 5 | |
| 6 | TEST_DEPS = TEST + [ |
| 7 | "@commons_math3//jar", |
Carmelo Cascone | 72893b7 | 2018-08-09 00:59:06 -0700 | [diff] [blame] | 8 | "@io_netty_netty_handler//jar", |
| 9 | "@io_netty_netty_buffer//jar", |
| 10 | "@io_netty_netty_codec//jar", |
| 11 | "@io_netty_netty_resolver//jar", |
Ray Milkey | 324af93 | 2018-06-20 19:50:31 -0700 | [diff] [blame] | 12 | "//core/api:onos-api-tests", |
| 13 | ] |
| 14 | |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 15 | _primitive_package_names = [ |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 16 | "barrier", |
| 17 | "collection", |
| 18 | "counter", |
| 19 | "election", |
| 20 | "idgenerator", |
| 21 | "iterator", |
| 22 | "list", |
| 23 | "lock", |
| 24 | "map", |
| 25 | "multimap", |
| 26 | "multiset", |
| 27 | "queue", |
| 28 | "semaphore", |
| 29 | "set", |
| 30 | "transaction", |
| 31 | "tree", |
| 32 | "value", |
| 33 | "workqueue", |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 34 | ] |
| 35 | |
| 36 | # A list of all core primitive packages for dynamic class loading |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 37 | PRIMITIVE_PACKAGES = ",".join(["io.atomix.primitive.session.impl"] + ["io.atomix.core.{primitive},io.atomix.core.{primitive}.impl".format(primitive = primitive) for primitive in _primitive_package_names]) |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 38 | |
| 39 | # Base package names for core Atomix protocols |
| 40 | _protocol_package_names = [ |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 41 | "raft", |
| 42 | "backup", |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 43 | ] |
| 44 | |
| 45 | # A list of all core protocol packages for dynamic class loading |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 46 | PROTOCOL_PACKAGES = ",".join(["io.atomix.primitive.partition.impl"] + ["io.atomix.protocols.{protocol},io.atomix.protocols.{protocol}.partition".format(protocol = protocol) for protocol in _protocol_package_names] + ["io.atomix.protocols.gossip"]) |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 47 | |
| 48 | # A list of all additional core packages used in dynamic class loading |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 49 | CORE_PACKAGES = ",".join([ |
| 50 | "io.atomix.core.profile", |
| 51 | "io.atomix.core.profile.impl", |
| 52 | ]) |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 53 | |
| 54 | # A list of all dynamically loadable Atomix packages |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 55 | INCLUDE_PACKAGES = ",".join([ |
| 56 | PRIMITIVE_PACKAGES, |
| 57 | PROTOCOL_PACKAGES, |
| 58 | CORE_PACKAGES, |
| 59 | ]) |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 60 | |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 61 | ALL_PACKAGES = "*" |
Ray Milkey | 644fdbf | 2018-07-27 15:24:31 -0700 | [diff] [blame] | 62 | |
Ray Milkey | 324af93 | 2018-06-20 19:50:31 -0700 | [diff] [blame] | 63 | osgi_jar_with_tests( |
| 64 | name = "onos-core-primitives", |
Jian Li | d486a73 | 2018-08-03 00:32:11 +0900 | [diff] [blame] | 65 | import_packages = INCLUDE_PACKAGES + "," + ALL_PACKAGES, |
Ray Milkey | 324af93 | 2018-06-20 19:50:31 -0700 | [diff] [blame] | 66 | test_deps = TEST_DEPS, |
| 67 | visibility = ["//visibility:public"], |
| 68 | deps = COMPILE_DEPS, |
Ray Milkey | 324af93 | 2018-06-20 19:50:31 -0700 | [diff] [blame] | 69 | ) |