Browse Source

2024.5.16 测试整体构建

master
Administrator 1 year ago
parent
commit
d0f4dd43c7
6 changed files with 6 additions and 26 deletions
  1. +1
    -0
      CMakeLists.txt
  2. +2
    -0
      utils/CMakeLists.txt
  3. +0
    -23
      utils/wn_log.h
  4. +0
    -1
      utils/wn_string.cc
  5. +0
    -1
      utils/wn_utils.cc
  6. +3
    -1
      utils/wn_utils.h

+ 1
- 0
CMakeLists.txt

@ -31,6 +31,7 @@ endif()
include(openfst)
#wenet
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
# ${CMAKE_CURRENT_SOURCE_DIR}/kaldi
)

+ 2
- 0
utils/CMakeLists.txt

@ -1,3 +1,5 @@
message(-----------------${OPENFST_INCLUDE_DIR}--------------------)
include_directories(${OPENFST_INCLUDE_DIR})
add_library(utils STATIC
wn_string.cc
wn_utils.cc

+ 0
- 23
utils/wn_log.h

@ -1,23 +0,0 @@
// Copyright (c) 2021 Mobvoi Inc (Binbin Zhang)
//
// 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.
#ifndef UTILS_LOG_H_
#define UTILS_LOG_H_
// 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.
#ifndef FST_LOG_H_
#include "fst/wn_log.h"
#endif
#endif // UTILS_LOG_H_

+ 0
- 1
utils/wn_string.cc

@ -18,7 +18,6 @@
#include <string>
#include <vector>
#include "wn_log.h"
#include "wn_utils.h"
namespace wenet {

+ 0
- 1
utils/wn_utils.cc

@ -13,7 +13,6 @@
// limitations under the License.
#include "wn_utils.h"
#include "wn_log.h"
#include <algorithm>
#include <cmath>

+ 3
- 1
utils/wn_utils.h

@ -14,7 +14,9 @@
#ifndef UTILS_UTILS_H_
#define UTILS_UTILS_H_
#ifndef FST_LOG_H_
#include "fst/log.h"
#endif
#include <cstdint>
#include <limits>
#include <vector>

Loading…
Cancel
Save