Mercurial
comparison connectors/BUILD @ 279:b3b547563ec7
Add Google connector service and agent wiki
Implement the C/Seobeo Google Drive and Gmail connector with encrypted OAuth storage, Zenbu authentication, browser testing, AI tool discovery, chunked HTTP decoding, and Bazel coverage. Consolidate repository guidance into progressive wiki documentation and enforce arena-first allocation for new first-party C code.
Co-authored-by: Copilot <[email protected]>
Copilot-Session: 84c338fd-0939-4bb3-b7f3-1062eb213e5d
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 22:22:36 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 278:8d560f50ed4c | 279:b3b547563ec7 |
|---|---|
| 1 load("@rules_cc//cc:cc_binary.bzl", "cc_binary") | |
| 2 load("@rules_cc//cc:cc_library.bzl", "cc_library") | |
| 3 load("@rules_cc//cc:cc_test.bzl", "cc_test") | |
| 4 | |
| 5 cc_library( | |
| 6 name = "connector_core", | |
| 7 srcs = ["core.c"], | |
| 8 hdrs = ["connector.h"], | |
| 9 deps = [ | |
| 10 "//deita:deita", | |
| 11 "//dowa:dowa", | |
| 12 "//seobeo:seobeo", | |
| 13 "@openssl//:crypto", | |
| 14 ], | |
| 15 visibility = ["//visibility:public"], | |
| 16 ) | |
| 17 | |
| 18 cc_library( | |
| 19 name = "connector_store", | |
| 20 srcs = ["store.c"], | |
| 21 hdrs = ["connector.h"], | |
| 22 deps = [ | |
| 23 ":connector_core", | |
| 24 "//deita:deita", | |
| 25 "//dowa:dowa", | |
| 26 ], | |
| 27 visibility = ["//visibility:public"], | |
| 28 ) | |
| 29 | |
| 30 cc_library( | |
| 31 name = "connector_auth_http", | |
| 32 srcs = ["auth_http_adapter.c"], | |
| 33 hdrs = ["auth_http_adapter.h"], | |
| 34 deps = [ | |
| 35 ":connector_core", | |
| 36 "//auth:auth_http", | |
| 37 "//dowa:dowa", | |
| 38 "@openssl//:crypto", | |
| 39 ], | |
| 40 visibility = ["//visibility:public"], | |
| 41 ) | |
| 42 | |
| 43 cc_library( | |
| 44 name = "google_provider", | |
| 45 srcs = ["google.c"], | |
| 46 hdrs = ["connector.h"], | |
| 47 deps = [ | |
| 48 ":connector_core", | |
| 49 "//dowa:dowa", | |
| 50 "//seobeo:seobeo", | |
| 51 ], | |
| 52 visibility = ["//visibility:public"], | |
| 53 ) | |
| 54 | |
| 55 cc_library( | |
| 56 name = "connector_service_lib", | |
| 57 srcs = [ | |
| 58 "auth_test_page.c", | |
| 59 "service.c", | |
| 60 ], | |
| 61 hdrs = [ | |
| 62 "auth_test_page.h", | |
| 63 "connector.h", | |
| 64 ], | |
| 65 deps = [ | |
| 66 ":connector_core", | |
| 67 ":connector_store", | |
| 68 ":google_provider", | |
| 69 "//dowa:dowa", | |
| 70 "//seobeo:seobeo", | |
| 71 ], | |
| 72 ) | |
| 73 | |
| 74 cc_binary( | |
| 75 name = "connector_server", | |
| 76 srcs = ["main.c"], | |
| 77 deps = [ | |
| 78 ":connector_core", | |
| 79 ":connector_auth_http", | |
| 80 ":connector_service_lib", | |
| 81 ":connector_store", | |
| 82 ":google_provider", | |
| 83 "//dowa:dowa", | |
| 84 "//seobeo:seobeo", | |
| 85 "@openssl//:crypto", | |
| 86 ], | |
| 87 ) | |
| 88 | |
| 89 cc_test( | |
| 90 name = "core_store_test", | |
| 91 srcs = ["tests/core_store_test.c"], | |
| 92 deps = [ | |
| 93 ":connector_core", | |
| 94 ":connector_store", | |
| 95 ], | |
| 96 ) | |
| 97 | |
| 98 cc_test( | |
| 99 name = "auth_http_adapter_test", | |
| 100 srcs = ["tests/auth_http_adapter_test.c"], | |
| 101 deps = [ | |
| 102 ":connector_auth_http", | |
| 103 "//auth:auth_crypto", | |
| 104 "//auth:auth_http", | |
| 105 "//auth:auth_store", | |
| 106 "//dowa:dowa", | |
| 107 ], | |
| 108 ) | |
| 109 | |
| 110 cc_test( | |
| 111 name = "google_provider_test", | |
| 112 srcs = ["tests/google_provider_test.c"], | |
| 113 deps = [ | |
| 114 ":connector_core", | |
| 115 ":google_provider", | |
| 116 "//dowa:dowa", | |
| 117 ], | |
| 118 ) | |
| 119 | |
| 120 cc_test( | |
| 121 name = "route_test", | |
| 122 srcs = ["tests/route_test.c"], | |
| 123 deps = [ | |
| 124 ":connector_service_lib", | |
| 125 "//dowa:dowa", | |
| 126 "//seobeo:seobeo", | |
| 127 ], | |
| 128 ) | |
| 129 | |
| 130 test_suite( | |
| 131 name = "connector_tests", | |
| 132 tests = [ | |
| 133 ":auth_http_adapter_test", | |
| 134 ":core_store_test", | |
| 135 ":google_provider_test", | |
| 136 ":route_test", | |
| 137 ], | |
| 138 ) |