mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
Change smhasher path
Changes the smhasher path to "smhasher/src/file" from "smhasher/file" for easier import in Chromium land. Change-Id: Ide6aa844fd8f37c9100e89d6a0bcb945b0860227
This commit is contained in:
committed by
Alexey Polyudov
parent
07c6fcbdf0
commit
59cd56ec82
@@ -3,7 +3,7 @@ project(smhasher CXX)
|
||||
cmake_minimum_required(VERSION 3.13)
|
||||
|
||||
add_library(smhasher_murmur3 STATIC
|
||||
cpp/src/smhasher/MurmurHash3.cpp
|
||||
cpp/src/smhasher/src/MurmurHash3.cpp
|
||||
)
|
||||
|
||||
target_include_directories(smhasher_murmur3
|
||||
|
||||
@@ -2,16 +2,16 @@ set(PKG_STAGE_SRC_ROOT ${TOOLS_ROOT}/src/smhasher)
|
||||
if (NOT EXISTS ${PKG_STAGE_SRC_ROOT}/CMakeLists.txt)
|
||||
set(PKG_SRC_ROOT ${PROJECT_SOURCE_DIR}/third_party/smhasher)
|
||||
execute_process(
|
||||
COMMAND mkdir -p ${PKG_STAGE_SRC_ROOT}/cpp/src/smhasher
|
||||
COMMAND mkdir -p ${PKG_STAGE_SRC_ROOT}/cpp/src/smhasher/src
|
||||
)
|
||||
execute_process(
|
||||
COMMAND mkdir -p ${PKG_STAGE_SRC_ROOT}/cpp/include/smhasher
|
||||
COMMAND mkdir -p ${PKG_STAGE_SRC_ROOT}/cpp/include/smhasher/src
|
||||
)
|
||||
execute_process(
|
||||
COMMAND cp ${PKG_SRC_ROOT}/src/MurmurHash3.cpp ${PKG_STAGE_SRC_ROOT}/cpp/src/smhasher
|
||||
COMMAND cp ${PKG_SRC_ROOT}/src/MurmurHash3.cpp ${PKG_STAGE_SRC_ROOT}/cpp/src/smhasher/src
|
||||
)
|
||||
execute_process(
|
||||
COMMAND cp ${PKG_SRC_ROOT}/src/MurmurHash3.h ${PKG_STAGE_SRC_ROOT}/cpp/include/smhasher
|
||||
COMMAND cp ${PKG_SRC_ROOT}/src/MurmurHash3.h ${PKG_STAGE_SRC_ROOT}/cpp/include/smhasher/src
|
||||
)
|
||||
execute_process(
|
||||
COMMAND cp cmake/CMakeLists-smhasher.txt ${PKG_STAGE_SRC_ROOT}/CMakeLists.txt
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "absl/numeric/int128.h"
|
||||
#include "absl/strings/numbers.h"
|
||||
#include "smhasher/MurmurHash3.h"
|
||||
#include "smhasher/src/MurmurHash3.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "absl/numeric/int128.h"
|
||||
#include "absl/strings/numbers.h"
|
||||
#include "smhasher/MurmurHash3.h"
|
||||
#include "smhasher/src/MurmurHash3.h"
|
||||
|
||||
namespace location {
|
||||
namespace nearby {
|
||||
|
||||
@@ -135,6 +135,7 @@ def post_process_oss_files(path, args):
|
||||
("location/nearby/connections/proto", "proto/connections"),
|
||||
("_portable_proto.pb.h", ".pb.h"),
|
||||
(".proto.h", ".pb.h"),
|
||||
("smhasher/MurmurHash3.h", "smhasher/src/MurmurHash3.h"),
|
||||
)
|
||||
|
||||
for root, dirs, files in os.walk(path):
|
||||
|
||||
Reference in New Issue
Block a user