-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #166 from TeamOpenSmartGlasses/dev
Dev
- Loading branch information
Showing
188 changed files
with
35,815 additions
and
2,096 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
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
32 changes: 5 additions & 27 deletions
32
SmartGlassesManager/SGM_android/SmartGlassesManager/src/main/cpp/CMakeLists.txt
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 |
---|---|---|
@@ -1,30 +1,8 @@ | ||
# Builds the ogg and opus encoder library which used third party module. | ||
cmake_minimum_required(VERSION 3.22.1) | ||
cmake_minimum_required(VERSION 3.18.1) | ||
|
||
# set related path of third party libraries. | ||
set(third_party_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party) | ||
# Include Project 1 | ||
#add_subdirectory(${CMAKE_SOURCE_DIR}/google_opus_stuff) | ||
|
||
# libogg library refer from https://github.com/xiph/ogg. | ||
set(libogg_INCLUDE ${third_party_DIR}/libogg/include) | ||
set(libogg_LIB ${third_party_DIR}/libogg/lib/${ANDROID_ABI}) | ||
add_library(lib_ogg STATIC IMPORTED) | ||
set_target_properties(lib_ogg PROPERTIES IMPORTED_LOCATION ${libogg_LIB}/libogg.a) | ||
# Include Project 2 | ||
add_subdirectory(${CMAKE_SOURCE_DIR}/liblc3) | ||
|
||
# libopus library refer from https://github.com/xiph/opus. | ||
set(libopus_INCLUDE ${third_party_DIR}/libopus/include) | ||
set(libopus_LIB ${third_party_DIR}/libopus/lib/${ANDROID_ABI}) | ||
add_library(lib_opus STATIC IMPORTED) | ||
set_target_properties(lib_opus PROPERTIES IMPORTED_LOCATION ${libopus_LIB}/libopus.a) | ||
|
||
# opus-tools https://github.com/xiph/opus-tools. | ||
set(opus_tools_INCLUDE ${third_party_DIR}/opus_tools/include) | ||
set(opus_tools_LIB ${third_party_DIR}/opus_tools/lib/${ANDROID_ABI}) | ||
add_library(lib_opus_header STATIC IMPORTED) | ||
set_target_properties(lib_opus_header PROPERTIES IMPORTED_LOCATION | ||
${opus_tools_LIB}/libopus_header.a) | ||
|
||
# Build ogg_opus_encoder_tool shared lib. | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") | ||
add_library(ogg_opus_encoder_tool SHARED ogg_opus_encoder.cc) | ||
target_include_directories(ogg_opus_encoder_tool PRIVATE ${libogg_INCLUDE}) | ||
target_link_libraries(ogg_opus_encoder_tool lib_opus lib_ogg lib_opus_header) |
30 changes: 30 additions & 0 deletions
30
...ssesManager/SGM_android/SmartGlassesManager/src/main/cpp/google_opus_stuff/CMakeLists.txt
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,30 @@ | ||
# Builds the ogg and opus encoder library which used third party module. | ||
cmake_minimum_required(VERSION 3.22.1) | ||
|
||
# set related path of third party libraries. | ||
set(third_party_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../third_party) | ||
|
||
# libogg library refer from https://github.com/xiph/ogg. | ||
set(libogg_INCLUDE ${third_party_DIR}/libogg/include) | ||
set(libogg_LIB ${third_party_DIR}/libogg/lib/${ANDROID_ABI}) | ||
add_library(lib_ogg STATIC IMPORTED) | ||
set_target_properties(lib_ogg PROPERTIES IMPORTED_LOCATION ${libogg_LIB}/libogg.a) | ||
|
||
# libopus library refer from https://github.com/xiph/opus. | ||
set(libopus_INCLUDE ${third_party_DIR}/libopus/include) | ||
set(libopus_LIB ${third_party_DIR}/libopus/lib/${ANDROID_ABI}) | ||
add_library(lib_opus STATIC IMPORTED) | ||
set_target_properties(lib_opus PROPERTIES IMPORTED_LOCATION ${libopus_LIB}/libopus.a) | ||
|
||
# opus-tools https://github.com/xiph/opus-tools. | ||
set(opus_tools_INCLUDE ${third_party_DIR}/opus_tools/include) | ||
set(opus_tools_LIB ${third_party_DIR}/opus_tools/lib/${ANDROID_ABI}) | ||
add_library(lib_opus_header STATIC IMPORTED) | ||
set_target_properties(lib_opus_header PROPERTIES IMPORTED_LOCATION | ||
${opus_tools_LIB}/libopus_header.a) | ||
|
||
# Build ogg_opus_encoder_tool shared lib. | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") | ||
add_library(ogg_opus_encoder_tool SHARED ogg_opus_encoder.cc) | ||
target_include_directories(ogg_opus_encoder_tool PRIVATE ${libogg_INCLUDE}) | ||
target_link_libraries(ogg_opus_encoder_tool lib_opus lib_ogg lib_opus_header) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 38 additions & 0 deletions
38
SmartGlassesManager/SGM_android/SmartGlassesManager/src/main/cpp/liblc3/CMakeLists.txt
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,38 @@ | ||
|
||
cmake_minimum_required(VERSION 3.22.1) | ||
|
||
project("lc3") | ||
|
||
include_directories(include) | ||
#add_subdirectory(liblc3) | ||
add_library(${CMAKE_PROJECT_NAME} SHARED | ||
# List C/C++ source files with relative paths to this CMakeLists.txt. | ||
liblc3.cpp | ||
|
||
liblc3/attdet.c | ||
liblc3/bits.c | ||
liblc3/bwdet.c | ||
liblc3/energy.c | ||
liblc3/lc3.c | ||
liblc3/ltpf.c | ||
liblc3/mdct.c | ||
liblc3/plc.c | ||
liblc3/sns.c | ||
liblc3/spec.c | ||
liblc3/tables.c | ||
liblc3/tns.c | ||
|
||
rnnoise/celt_lpc.c | ||
rnnoise/denoise.c | ||
rnnoise/kiss_fft.c | ||
rnnoise/pitch.c | ||
rnnoise/rnn.c | ||
rnnoise/rnn_data.c | ||
rnnoise/rnn_reader.c | ||
|
||
) | ||
|
||
target_link_libraries(${CMAKE_PROJECT_NAME} | ||
# List libraries link to the target library | ||
android | ||
log) |
Oops, something went wrong.