mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-29 06:55:27 +08:00
57 lines
2.8 KiB
CMake
57 lines
2.8 KiB
CMake
#-------------------------------------------------------------------------------
|
|
# Copyright (C) 2019-2020 Zilliz. All rights reserved.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
# is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
# or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
#-------------------------------------------------------------------------------
|
|
|
|
set( GRPC_SERVICE_FILES ${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.grpc.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-milvus/suvlim.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-status/status.grpc.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-status/status.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.grpc.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-milvus/hello.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.grpc.pb.cc
|
|
${MILVUS_ENGINE_SRC}/grpc/gen-milvus/master.pb.cc
|
|
)
|
|
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server SERVER_SERVICE_FILES )
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/init SERVER_INIT_FILES )
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/delivery/request DELIVERY_REQUEST_FILES )
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/delivery/strategy DELIVERY_STRATEGY_FILES )
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/delivery DELIVERY_FILES )
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/tso TSO_FILES)
|
|
|
|
set( SERVER_FILES ${SERVER_INIT_FILES}
|
|
${SERVER_SERVICE_FILES}
|
|
${SERVER_INIT_FILES}
|
|
${DELIVERY_REQUEST_FILES}
|
|
${DELIVERY_STRATEGY_FILES}
|
|
${DELIVERY_FILES}
|
|
${TSO_FILES}
|
|
)
|
|
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/grpc_impl GRPC_IMPL_FILES )
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/grpc_impl/interceptor GRPC_INTERCEPTOR_FILES )
|
|
|
|
set( GRPC_SERVER_FILES ${GRPC_IMPL_FILES}
|
|
${GRPC_INTERCEPTOR_FILES}
|
|
)
|
|
|
|
|
|
aux_source_directory( ${MILVUS_ENGINE_SRC}/server/context SERVER_CONTEXT_FILES )
|
|
|
|
add_library( server STATIC )
|
|
target_sources( server
|
|
PRIVATE ${GRPC_SERVER_FILES}
|
|
${GRPC_SERVICE_FILES}
|
|
${SERVER_FILES}
|
|
${SERVER_CONTEXT_FILES}
|
|
)
|