-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
420 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
set(kaldi_native_fbank_unzip_path "${DL_EXTRACTED_PATH}/kaldi-native-fbank_srcs") | ||
set(src_path "${kaldi_native_fbank_unzip_path}") | ||
################# Add include ################# | ||
list(APPEND ADD_INCLUDE "${src_path}/kaldi-native-fbank" | ||
) | ||
# list(APPEND ADD_PRIVATE_INCLUDE "include_private") | ||
############################################### | ||
|
||
############## Add source files ############### | ||
# list(APPEND ADD_SRCS "src/lib1.c" | ||
# ) | ||
append_srcs_dir(ADD_SRCS "${src_path}/kaldi-native-fbank/kaldi-native-fbank/csrc" | ||
) | ||
list(REMOVE_ITEM ADD_SRCS "${src_path}/kaldi-native-fbank/kaldi-native-fbank/csrc/test-log.cc" | ||
"${src_path}/kaldi-native-fbank/kaldi-native-fbank/csrc/test-online-fbank.cc" | ||
"${src_path}/kaldi-native-fbank/kaldi-native-fbank/csrc/test-online-feature.cc" | ||
"${src_path}/kaldi-native-fbank/kaldi-native-fbank/csrc/test-rfft.cc") | ||
|
||
# aux_source_directory("inifile2/src" ADD_SRCS) # collect all source file in src dir, will set var ADD_SRCS | ||
# append_srcs_dir(ADD_SRCS "src") # append source file in src dir to var ADD_SRCS | ||
# list(REMOVE_ITEM COMPONENT_SRCS "src/test.c") | ||
############################################### | ||
|
||
###### Add required/dependent components ###### | ||
# list(APPEND ADD_REQUIREMENTS component1) | ||
############################################### | ||
|
||
###### Add link search path for requirements/libs ###### | ||
# list(APPEND ADD_LINK_SEARCH_PATH "${CONFIG_TOOLCHAIN_PATH}/lib") | ||
# list(APPEND ADD_REQUIREMENTS m) # add system libs, pthread or m(math) lib for example | ||
############################################### | ||
|
||
############ Add static libs ################## | ||
# if(CONFIG_COMPONENT1_INCLUDE_STATIC_LIB) | ||
# list(APPEND ADD_STATIC_LIB "lib/libtest.a") | ||
# endif() | ||
############################################### | ||
|
||
############ Add dynamic libs ################## | ||
# list(APPEND ADD_DYNAMIC_LIB "lib/arch/v831/libmaix_nn.so" | ||
# "lib/arch/v831/libmaix_cam.so" | ||
# ) | ||
############################################### | ||
|
||
#### Add compile option for this component #### | ||
#### Just for this component, won't affect other | ||
#### modules, including component that depend | ||
#### on this component | ||
# list(APPEND ADD_DEFINITIONS_PRIVATE -DAAAAA=1) | ||
|
||
#### Add compile option for this component | ||
#### Add components that depend on this component | ||
# list(APPEND ADD_DEFINITIONS -DAAAAA222=1 | ||
# -DAAAAA333=1) | ||
############################################### | ||
|
||
############ Add static libs ################## | ||
#### Update parent's variables like CMAKE_C_LINK_FLAGS | ||
# set(CMAKE_C_LINK_FLAGS "${CMAKE_C_LINK_FLAGS} -Wl,--start-group libmaix/libtest.a -ltest2 -Wl,--end-group" PARENT_SCOPE) | ||
############################################### | ||
|
||
# register component, DYNAMIC or SHARED flags will make component compiled to dynamic(shared) lib | ||
register_component() | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
def add_file_downloads(confs : dict) -> list: | ||
''' | ||
@param confs kconfig vars, dict type | ||
@return list type, items is dict type | ||
''' | ||
version = "1.20.1" | ||
url = "/~https://github.com/csukuangfj/kaldi-native-fbank/archive/refs/tags/v1.20.1.tar.gz" | ||
if version == "1.20.1": | ||
sha256sum = "170cb8c6b8b96891ebb2e3ddaa427cd5d81e40efc48501ac0bd9b24301c09856" | ||
else: | ||
raise Exception(f"version {version} not support") | ||
sites = ["/~https://github.com/sipeed/MaixCDK/releases/tag/v0.0.0"] | ||
filename = f"kaldi-native-fbank-{version}.tar.gz" | ||
path = "kaldi-native-fbank_srcs" | ||
check_file = f'kaldi-native-fbank' | ||
rename = {f'kaldi-native-fbank-{version}': 'kaldi-native-fbank'} | ||
|
||
return [ | ||
{ | ||
'url': f'{url}', | ||
'urls': [], | ||
'sites': sites, | ||
'sha256sum': sha256sum, | ||
'filename': filename, | ||
'path': path, | ||
'check_files': [ | ||
check_file | ||
], | ||
'rename': rename | ||
} | ||
] | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.