Browse Source

2024.5.16 测试整体构建

master
Administrator 1 year ago
parent
commit
6bdd510a3f
5 changed files with 8 additions and 5 deletions
  1. +0
    -1
      CMakeLists.txt
  2. +2
    -1
      bin/CMakeLists.txt
  3. +1
    -1
      bin/decoder_main.cc
  4. +1
    -1
      bin/label_checker_main.cc
  5. +4
    -1
      grpc/CMakeLists.txt

+ 0
- 1
CMakeLists.txt

@ -43,7 +43,6 @@ add_subdirectory(kaldi) # kaldi:
add_subdirectory(decoder)
# Connection Option
if(GRPC)
include(grpc)
add_subdirectory(grpc)
endif()

+ 2
- 1
bin/CMakeLists.txt

@ -3,9 +3,10 @@ target_link_libraries(decoder_main PUBLIC decoder)
if(IPEX)
target_link_libraries(decoder_main PUBLIC "${TORCH_IPEX_LIBRARIES}")
endif()
message(STATUS "gflags_LIBRARIES: ${gflags_LIBRARIES}")
add_executable(label_checker_main label_checker_main.cc)
target_link_libraries(label_checker_main PUBLIC decoder)
target_link_libraries(label_checker_main PUBLIC decoder gflags_nothreads_static)
if(TORCH)
add_executable(api_main api_main.cc)

+ 1
- 1
bin/decoder_main.cc

@ -18,7 +18,7 @@
#include "decoder/params.h"
#include "frontend/wav.h"
#include "utils/flags.h"
#include <gflags/gflags.h>
#include "utils/wn_string.h"
#include "utils/thread_pool.h"
#include "utils/timer.h"

+ 1
- 1
bin/label_checker_main.cc

@ -19,7 +19,7 @@
#include "decoder/params.h"
#include "frontend/wav.h"
#include "utils/flags.h"
#include <gflags/gflags.h>
#include "utils/wn_string.h"
DEFINE_string(text, "", "kaldi style text input file");

+ 4
- 1
grpc/CMakeLists.txt

@ -1,5 +1,8 @@
# compile wenet.proto
set(PROTO_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
include(../cmake-linux/grpc.cmake)
add_custom_command(
OUTPUT ${PROTO_DIR}/wenet.pb.cc
${PROTO_DIR}/wenet.pb.h
@ -15,7 +18,7 @@ add_custom_command(
# grpc_server/client
link_directories(${protobuf_BINARY_DIR}/lib)
add_library(wenet_grpc STATIC
add_library(wenet_grpc SHARED
grpc_client.cc
grpc_server.cc
wenet.pb.cc

Loading…
Cancel
Save