1 workspace(name = "nugget_test_systemtestharness") 2 3 new_http_archive( 4 name = "gtest", 5 url = "https://github.com/google/googletest/archive/release-1.8.0.zip", 6 build_file = "../../core/nugget/BUILD.gtest", 7 sha256 = "f3ed3b58511efd272eb074a3a6d6fb79d7c2e6a0e374323d1e6bcbcc1ef141bf", 8 strip_prefix = "googletest-release-1.8.0", 9 ) 10 11 http_archive( 12 name = "com_google_protobuf", 13 url = "https://github.com/google/protobuf/archive/v3.5.0.zip", 14 strip_prefix = "protobuf-3.5.0", 15 sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30", 16 ) 17 18 http_archive( 19 name = "com_google_protobuf_cc", 20 url = "https://github.com/google/protobuf/archive/v3.5.0.zip", 21 strip_prefix = "protobuf-3.5.0", 22 sha256 = "cef7f1b5a7c5fba672bec2a319246e8feba471f04dcebfe362d55930ee7c1c30", 23 ) 24 25 http_archive( 26 name = "com_github_gflags_gflags", 27 url = "https://github.com/gflags/gflags/archive/v2.2.1.zip", 28 strip_prefix = "gflags-2.2.1", 29 sha256 = "4e44b69e709c826734dbbbd5208f61888a2faf63f239d73d8ba0011b2dccc97a", 30 ) 31 32 http_archive( 33 name = "boringssl", 34 url = "https://boringssl.googlesource.com/boringssl/+archive/74ffd81aa7ec3d0aa3d3d820dbeda934958ca81a.tar.gz", 35 # branch master-with-bazel 36 ) 37 38 new_local_repository( 39 name = "nugget_thirdparty_libmpsse", 40 path = "../../third_party/libmpsse/src", 41 build_file_content = """ 42 cc_library( 43 name = "libmpsse", 44 srcs = [ 45 "fast.c", 46 "mpsse.c", 47 "support.c", 48 ], 49 hdrs = [ 50 "config.h", 51 "mpsse.h", 52 "support.h", 53 ], 54 copts = [ 55 "-Wall", 56 "-fPIC", 57 "-fno-strict-aliasing", 58 "-g", 59 "-O2", 60 ], 61 defines = [ 62 "LIBFTDI1=0", 63 ], 64 linkopts = [ 65 "-lftdi", 66 ], 67 visibility = ["//visibility:public"], 68 ) 69 """, 70 ) 71 72 ## This is the rule for when this repository is outside of repo. 73 # new_git_repository( 74 # name = "ahdlc", 75 # remote = "https://nugget-os.googlesource.com/third_party/ahdlc", 76 # ) 77 78 ## Use this when a subproject of repo. 79 new_local_repository( 80 name = "nugget_thirdparty_ahdlc", 81 path = "../../third_party/ahdlc", 82 build_file_content = """ 83 cc_library( 84 name = "ahdlc", 85 srcs = [ 86 "src/lib/crc_16.c", 87 "src/lib/frame_layer.c", 88 ], 89 hdrs = [ 90 "src/lib/inc/crc_16.h", 91 "src/lib/inc/frame_layer.h", 92 "src/lib/inc/frame_layer_types.h", 93 ], 94 visibility = ["//visibility:public"], 95 ) 96 """, 97 ) 98 99 local_repository( 100 name = "nugget_core_nugget", 101 path = "../../core/nugget", 102 ) 103 104 local_repository( 105 name = "nugget_host_generic", 106 path = "../../host/generic", 107 ) 108 109 local_repository( 110 name = "nugget_host_generic_libnos", 111 path = "../../host/generic/libnos", 112 ) 113 114 local_repository( 115 name = "nugget_host_generic_libnos_datagram", 116 path = "../../host/generic/libnos_datagram", 117 ) 118 119 local_repository( 120 name = "nugget_host_generic_libnos_transport", 121 path = "../../host/generic/libnos_transport", 122 ) 123 124 local_repository( 125 name = "nugget_host_generic_libnos_generator", 126 path = "../../host/generic/libnos/generator", 127 ) 128 129 local_repository( 130 name = "nugget_host_generic_nugget_proto", 131 path = "../../host/generic/nugget/proto", 132 ) 133 134 local_repository( 135 name = "nugget_host_linux_citadel_libnos_datagram", 136 path = "../../host/linux/citadel/libnos_datagram", 137 ) 138 139 local_repository( 140 name = "nugget_test_systemtestharness_tools", 141 path = "tools", 142 ) 143