Browse Source

2024.5.10-去除ITN的依赖构建

master
Administrator 1 year ago
parent
commit
ad76721f1a
13 changed files with 8 additions and 9 deletions
  1. +5
    -4
      post_processor/CMakeLists.txt
  2. +0
    -0
      post_processor/processor/CMakeLists.txt
  3. +1
    -1
      post_processor/processor/processor_main.cc
  4. +0
    -0
      post_processor/processor/wetext_processor.cc
  5. +0
    -0
      post_processor/processor/wetext_processor.h
  6. +0
    -0
      post_processor/processor/wetext_token_parser.cc
  7. +0
    -0
      post_processor/processor/wetext_token_parser.h
  8. +0
    -0
      post_processor/utils/CMakeLists.txt
  9. +1
    -1
      post_processor/utils/wetext_flags.h
  10. +1
    -1
      post_processor/utils/wetext_log.h
  11. +0
    -0
      post_processor/utils/wetext_string.cc
  12. +0
    -0
      post_processor/utils/wetext_string.h
  13. +0
    -2
      post_processor/wetext/bin/CMakeLists.txt

+ 5
- 4
post_processor/CMakeLists.txt

@ -1,14 +1,15 @@
message(STATUS "post_processor dir:${CMAKE_CURRENT_SOURCE_DIR}")
add_library(wetext_utils STATIC ${CMAKE_CURRENT_SOURCE_DIR}/utils/wetext_string.cc)
add_library(wetext_utils STATIC utils/wetext_string.cc)
target_link_libraries(wetext_utils PUBLIC glog)
add_library(wetext_processor STATIC
${CMAKE_CURRENT_SOURCE_DIR}/processor/wetext_processor.cc
${CMAKE_CURRENT_SOURCE_DIR}/processor/wetext_token_parser.cc
processor/wetext_processor.cc
processor/wetext_token_parser.cc
)
target_link_libraries(wetext_processor PUBLIC dl fst wetext_utils)
add_executable(processor_main processor_main.cc)
add_executable(processor_main processor/processor_main.cc)
target_link_libraries(processor_main PUBLIC wetext_processor)
add_library(post_processor STATIC

post_processor/wetext/processor/CMakeLists.txt → post_processor/processor/CMakeLists.txt


post_processor/wetext/bin/processor_main.cc → post_processor/processor/processor_main.cc

@ -16,7 +16,7 @@
#include <iostream>
#include <string>
#include "../processor/wetext_processor.h"
#include "wetext_processor.h"
#include "../utils/wetext_flags.h"
DEFINE_string(text, "", "input string");

post_processor/wetext/processor/wetext_processor.cc → post_processor/processor/wetext_processor.cc


post_processor/wetext/processor/wetext_processor.h → post_processor/processor/wetext_processor.h


post_processor/wetext/processor/wetext_token_parser.cc → post_processor/processor/wetext_token_parser.cc


post_processor/wetext/processor/wetext_token_parser.h → post_processor/processor/wetext_token_parser.h


post_processor/wetext/utils/CMakeLists.txt → post_processor/utils/CMakeLists.txt


post_processor/wetext/utils/wetext_flags.h → post_processor/utils/wetext_flags.h

@ -18,6 +18,6 @@
// Because openfst is a dynamic library compiled with gflags/glog, we must use
// the gflags/glog from openfst to avoid them linked both statically and
// dynamically into the executable.
#include "../../../utils/flags.h"
#include "../../utils/flags.h"
#endif // UTILS_WETEXT_FLAGS_H_

post_processor/wetext/utils/wetext_log.h → post_processor/utils/wetext_log.h

@ -18,6 +18,6 @@
// Because openfst is a dynamic library compiled with gflags/glog, we must use
// the gflags/glog from openfst to avoid them linked both statically and
// dynamically into the executable.
#include "../../../utils/log.h"
#include "../../utils/log.h"
#endif // UTILS_WETEXT_LOG_H_

post_processor/wetext/utils/wetext_string.cc → post_processor/utils/wetext_string.cc


post_processor/wetext/utils/wetext_string.h → post_processor/utils/wetext_string.h


+ 0
- 2
post_processor/wetext/bin/CMakeLists.txt

@ -1,2 +0,0 @@
add_executable(processor_main processor_main.cc)
target_link_libraries(processor_main PUBLIC wetext_processor)

Loading…
Cancel
Save