mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Update presence build rules and copybara export to OSS
- updates the build to be compatible with ldt in the open source repo PiperOrigin-RevId: 627415836
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
build --action_env=BAZEL_CXXOPTS=-std=c++17
|
||||
# Definition of --config=memcheck
|
||||
build:memcheck --strip=never --test_timeout=3600
|
||||
build --sandbox_block_path=/usr/local
|
||||
build:memcheck --strip=never --test_timeout=3600
|
||||
@@ -156,11 +156,11 @@ cc_library(
|
||||
] + select({
|
||||
":norust_or_windows_or_android": [":ldt_stub"],
|
||||
":use_rust_decoder": [
|
||||
"//third_party/beto_core/nearby/presence/ldt_np_adv_ffi",
|
||||
"//third_party/beto_core/nearby/presence/np_c_ffi:np_c_ffi_types",
|
||||
"//third_party/beto_core/nearby/presence/np_cpp_ffi",
|
||||
"@beto-core//:ldt_np_adv_ffi",
|
||||
"@beto-core//:np_cpp_ffi",
|
||||
],
|
||||
"//conditions:default": ["//third_party/beto_core/nearby/presence/ldt_np_adv_ffi"],
|
||||
"//conditions:default": ["@beto-core//:ldt_np_adv_ffi"],
|
||||
}),
|
||||
)
|
||||
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#include "absl/status/statusor.h"
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "third_party/beto-core/src/nearby/presence/np_c_ffi/include/cpp/np_cpp_ffi_types.h"
|
||||
#include "third_party/beto-core/src/nearby/presence/np_cpp_ffi/include/nearby_protocol.h"
|
||||
#include "third_party/beto_core/nearby/presence/np_c_ffi/include/cpp/np_cpp_ffi_types.h"
|
||||
#include "third_party/beto_core/nearby/presence/np_cpp_ffi/include/nearby_protocol.h"
|
||||
#include "internal/proto/credential.proto.h"
|
||||
#include "presence/data_element.h"
|
||||
#include "presence/implementation/action_factory.h"
|
||||
|
||||
@@ -21,8 +21,7 @@
|
||||
#include "absl/container/flat_hash_map.h"
|
||||
#include "absl/status/statusor.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "third_party/beto-core/src/nearby/presence/np_cpp_ffi/include/nearby_protocol.h"
|
||||
#include "internal/proto/credential.pb.h"
|
||||
#include "third_party/beto_core/nearby/presence/np_cpp_ffi/include/nearby_protocol.h"
|
||||
#include "presence/implementation/advertisement_decoder.h"
|
||||
|
||||
namespace nearby {
|
||||
|
||||
@@ -15,15 +15,16 @@
|
||||
#include "presence/implementation/ldt.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <optional>
|
||||
#include <cstdint>
|
||||
#include <string>
|
||||
|
||||
#include "absl/status/status.h"
|
||||
#include "absl/status/statusor.h"
|
||||
#include "absl/strings/str_format.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#ifdef USE_RUST_LDT
|
||||
#include "third_party/beto-core/src/nearby/presence/ldt_np_adv_ffi/c/include/np_ldt.h"
|
||||
|
||||
#if defined(USE_RUST_LDT) || defined(USE_RUST_DECODER)
|
||||
#include "third_party/beto_core/nearby/presence/ldt_np_adv_ffi/c/include/np_ldt.h"
|
||||
#else
|
||||
#include "presence/implementation/np_ldt.h"
|
||||
#endif /* USE_RUST_LDT */
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
|
||||
#include "absl/status/statusor.h"
|
||||
#include "absl/strings/string_view.h"
|
||||
#ifdef USE_RUST_LDT
|
||||
#include "third_party/beto-core/src/nearby/presence/ldt_np_adv_ffi/c/include/np_ldt.h"
|
||||
#if defined(USE_RUST_LDT) || defined(USE_RUST_DECODER)
|
||||
#include "third_party/beto_core/nearby/presence/ldt_np_adv_ffi/c/include/np_ldt.h"
|
||||
#else
|
||||
#include "presence/implementation/np_ldt.h"
|
||||
#endif /* USE_RUST_LDT */
|
||||
|
||||
Reference in New Issue
Block a user