Skip to content

Commit

Permalink
move ppc-front and ppc-gateway to wedpr-transport (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
cyjseagull authored Sep 4, 2024
1 parent 58a61ac commit 0f9b0f6
Show file tree
Hide file tree
Showing 557 changed files with 23 additions and 18 deletions.
23 changes: 13 additions & 10 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,28 +64,31 @@ include(TargetSettings)
include(Dependencies)

########### set the sources ###########
set(JNI_SOURCE_PATH wedpr-component-sdk/bindings/java/src/main/c)
set(SDK_SOURCE_LIST ppc-homo ppc-crypto-core wedpr-component-sdk ${JNI_SOURCE_PATH})
set(JNI_SOURCE_PATH wedpr-crypto/sdk/bindings/java/src/main/c)
set(SDK_SOURCE_LIST wedpr-crypto/ppc-homo wedpr-crypto/ppc-crypto-core wedpr-crypto/sdk ${JNI_SOURCE_PATH})
# Note: the udf depends on mysql, not enabled in the full node mode
set(UDF_SOURCE_LIST ${SDK_SOURCE_LIST} ppc-udf)
set(UDF_SOURCE_LIST ${SDK_SOURCE_LIST} wedpr-crypto/ppc-udf)
set(CEM_SOURCE "")
if(BUILD_CEM)
set(CEM_SOURCE "ppc-cem")
set(CEM_SOURCE "wedpr-computing/ppc-cem")
endif()
#set(ALL_SOURCE_LIST
# ${SDK_SOURCE_LIST} ppc-crypto
# libhelper libinitializer ppc-io ppc-protocol
# ppc-gateway ppc-front ppc-tars-protocol
# ppc-tools ppc-storage ppc-psi ppc-rpc
# wedpr-helper/ppc-tools ppc-storage ppc-psi ppc-rpc
# ppc-http ppc-mpc ppc-pir
# ${CEM_SOURCE} ppc-main)

set(ALL_SOURCE_LIST
${SDK_SOURCE_LIST} ppc-crypto
libhelper ppc-io wedpr-protocol
ppc-gateway ppc-front
ppc-tools ppc-storage ppc-psi ppc-rpc
ppc-http ppc-mpc ppc-pir ${CEM_SOURCE})
${SDK_SOURCE_LIST}
wedpr-crypto/ppc-crypto
wedpr-protocol
wedpr-helper/libhelper wedpr-helper/ppc-tools
wedpr-storage/ppc-io wedpr-storage/ppc-storage
wedpr-transport/ppc-gateway wedpr-transport/ppc-front
wedpr-transport/ppc-http wedpr-transport/ppc-rpc
wedpr-computing/ppc-psi wedpr-computing/ppc-mpc wedpr-computing/ppc-pir ${CEM_SOURCE})

if(BUILD_WEDPR_TOOLKIT)
# fetch the python dependencies
Expand Down
11 changes: 8 additions & 3 deletions cpp/cmake/IncludeDirectories.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_BINARY_DIR}/generated/)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-protocol)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ppc-front)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/ppc-gateway)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-component-sdk)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-transport)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-computing)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-crypto)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-storage)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-helper)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-crypto/sdk)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-transport/ppc-front)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/wedpr-transport/ppc-gateway)
include_directories(${PROTO_OUTPUT_PATH})

set(VCPKG_INCLUDE_PATH "${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include")
Expand Down
4 changes: 2 additions & 2 deletions cpp/cmake/TargetSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ if (ENABLE_CPU_FEATURES)
set(CPU_FEATURES_LIB CpuFeatures::cpu_features)
endif ()

#====== wedpr-component-sdk ===========
#====== wedpr-crypto-sdk ===========
set(PPC_CRYPTO_C_SDK_STATIC_TARGET ppc-crypto-c-sdk-static)
set(PPC_CRYPTO_C_SDK_TARGET ppc-crypto-c-sdk)

Expand All @@ -107,7 +107,7 @@ if(ARCH_NATIVE)
set(PPC_CRYPTO_C_SDK_STATIC_TARGET "ppc-crypto-c-sdk-aarch64")
set(PPC_CRYPTO_C_SDK_TARGET "ppc-crypto-c-sdk-static-aarch64")
endif()
#====== wedpr-component-sdk ===========
#====== wedpr-crypto-sdk ===========


#====== ppc-crypto-sdk-jni ===========
Expand Down
3 changes: 0 additions & 3 deletions cpp/ppc-pir/tests/data/AysPreDataset.csv

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 0f9b0f6

Please sign in to comment.