-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create build files and compile for android and iOS
- Loading branch information
1 parent
9cd359b
commit 73246da
Showing
8 changed files
with
778 additions
and
0 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,6 @@ | ||
{ | ||
"files.associations": { | ||
"libc_deepspeech.h": "c", | ||
"deepspeech.h": "c" | ||
} | ||
} |
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,14 @@ | ||
CMakeFiles/ | ||
*.cmake | ||
CMakeCache.txt | ||
Makefile | ||
CmakeScripts/ | ||
Project.build | ||
Project.xcodeproj | ||
XCBuildData/ | ||
.ninja* | ||
*.ninja | ||
.DS_Store | ||
build_files/ | ||
|
||
!ios.toolchain.cmake |
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,20 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
# Library source files. | ||
FILE(GLOB SRC ../../*.c) | ||
|
||
# Add our own library, we will call it libcdeepspeech | ||
add_library(deepspeechlibc SHARED ${SRC}) | ||
include_directories(../../) | ||
|
||
# Include DeepSpeech 0.9.3 | ||
add_library(libdeepspeech SHARED IMPORTED) | ||
|
||
# Get absolute path for desired architecture | ||
get_filename_component(ABI_LIB_PATH ../../../libdeepspeech_0.9.3/android/${ANDROID_ABI}/libdeepspeech.so ABSOLUTE) | ||
|
||
set_target_properties( libdeepspeech PROPERTIES IMPORTED_LOCATION ${ABI_LIB_PATH} ) | ||
include_directories( ../../../libdeepspeech_0.9.3/ ) | ||
|
||
# Link our library with deepspeech 0.9.3 library | ||
target_link_libraries( deepspeechlibc libdeepspeech ) |
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.4.1) | ||
|
||
# Library source files. | ||
FILE(GLOB SRC ../../*.c) | ||
|
||
add_library(deepspeechlibc STATIC ${SRC}) | ||
include_directories(../../) | ||
|
||
# Find DeepSpeech 0.9.3 framework | ||
find_library(DEEPSPEECH_LIB NAMES deepspeech_ios HINTS "../../../libdeepspeech_0.9.3") | ||
|
||
# Link our library with DeepSpeech 0.9.3 framework | ||
target_link_libraries(deepspeechlibc ${DEEPSPEECH_LIB}) |
Oops, something went wrong.