Debian Codegraph @

debian/patches/debian-source-package

raw symbols SCIP
1 Descriptionscip-debian debian codec2 1.2.0-5 codec2/patches/debian-source-package#Description.: The Debian source contains the lpcnet tar source,
2 So this patch uses that feature and avoids fetching content.
3 Authorscip-debian debian codec2 1.2.0-5 codec2/patches/debian-source-package#Author.: A. Maitland Bottoms <[email protected]scip-debian . . . identity/`[email protected]`.>
4 Forwardedscip-debian debian codec2 1.2.0-5 codec2/patches/debian-source-package#Forwarded.: not-needed
5
6 --- a/LPCNet/CMakeLists.txtscip-debian debian codec2 1.2.0-5 codec2/upstream/`LPCNet/CMakeLists.txt`:
7 +++ b/LPCNet/CMakeLists.txtscip-debian debian codec2 1.2.0-5 codec2/upstream/`LPCNet/CMakeLists.txt`:
8 @@ -85,7 +85,7 @@
9 endif()
10
11 # Set default flags
12 -set(CMAKE_C_FLAGS "-Wall -W -Wextra -Wno-unused-function -O3 -g -I. -MD ${CMAKE_C_FLAGS} -DENABLE_ASSERTIONS")
13 +set(CMAKE_C_FLAGS "-Wall -W -Wextra -Wno-unused-function -fPIC -O3 -g -I. -MD ${CMAKE_C_FLAGS} -DENABLE_ASSERTIONS")
14
15 # Arch specific stuff here
16 message(STATUS "Host system arch is: ${CMAKE_SYSTEM_PROCESSOR}")
17 @@ -164,6 +164,9 @@
18 set(LPCNET_C_PROC_FLAGS -mfpu=neon -march=armv8-a -mtune=cortex-a53)
19 endif()
20
21 +if(LPCNET_191005_DIR)
22 +set(lpcnet_SOURCE_DIR ${LPCNET_191005_DIR})
23 +else()
24 # grab latest NN model (or substitute your own)
25 set(LPCNET_ROOT http://rowetel.com/downloads/deep/)
26 set(LPCNET_FILE lpcnet_191005_v1.0.tgz)
27 @@ -195,6 +198,7 @@
28 FetchContent_Populate(lpcnet)
29 endif()
30 endif()
31 +endif()
32
33 add_subdirectory(src)
34
35 --- a/LPCNet/src/CMakeLists.txtscip-debian debian codec2 1.2.0-5 codec2/upstream/`LPCNet/src/CMakeLists.txt`:
36 +++ b/LPCNet/src/CMakeLists.txtscip-debian debian codec2 1.2.0-5 codec2/upstream/`LPCNet/src/CMakeLists.txt`:
37 @@ -40,7 +40,7 @@
38 endforeach()
39 endif(LPCNET_C_PROC_FLAGS)
40
41 -add_library(lpcnetfreedv SHARED ${lpcnet_freedv_srcs} ${codec2_import_srcs})
42 +add_library(lpcnetfreedv STATIC ${lpcnet_freedv_srcs} ${codec2_import_srcs})
43
44 set_target_properties(lpcnetfreedv PROPERTIES
45 PUBLIC_HEADER lpcnet_freedv.h
46 --- a/src/CMakeLists.txtscip-debian debian codec2 1.2.0-5 codec2/upstream/`src/CMakeLists.txt`:
47 +++ b/src/CMakeLists.txtscip-debian debian codec2 1.2.0-5 codec2/upstream/`src/CMakeLists.txt`:
48 @@ -249,6 +249,7 @@
49 endif(UNIX)
50 if(LPCNET AND lpcnetfreedv_FOUND)
51 target_link_libraries(codec2 PRIVATE lpcnetfreedv)
52 + list(APPEND CODEC2_PUBLIC_HEADERS ${CMAKE_SOURCE_DIR}/LPCNet/src/lpcnet_freedv.h)
53 endif()
54 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
55 set_target_properties(codec2 PROPERTIES