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