blob: 77dba5a99a7e2315bbcd5fddca7a45b9ef3c4e55 [file] [log] [blame]
SRC = 'src/main/java/org/onosproject/**/'
TEST = 'src/test/java/org/onosproject/**/'
COMPILE_DEPS = [
'//lib:CORE_DEPS',
'//lib:netty-buffer',
]
TEST_DEPS = [
'//lib:TEST',
]
java_library(
name = 'onos-isis',
visibility = ['PUBLIC'],
deps = [':onos-isis-api',
':onos-isis-isisio',
],
)
# onos-isis-api
osgi_jar(
name = 'onos-isis-api',
srcs = glob(['api/' + SRC + '*.java']),
deps = COMPILE_DEPS,
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-isis-api-tests',
srcs = glob(['api/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-isis-api'],
source_under_test = [':onos-isis-api'],
)
# onos-isis-isisio
osgi_jar(
name = 'onos-isis-isisio',
srcs = glob(['isisio/' + SRC + '*.java']),
deps = COMPILE_DEPS + [':onos-isis-api'],
visibility = ['PUBLIC'],
)
java_test(
name = 'onos-isis-isisio-tests',
srcs = glob(['isisio/' + TEST + '*.java']),
deps = COMPILE_DEPS +
TEST_DEPS +
[':onos-isis-isisio'],
source_under_test = [':onos-isis-isisio'],
)