Use shared build
This commit is contained in:
parent
11e6ce42ce
commit
0b732f5813
|
@ -20,7 +20,8 @@ include_directories(lib/pffft)
|
|||
|
||||
find_library(libpffft NAMES pffft PATHS ${PROJECT_SOURCE_DIR}/lib/pffft/install/lib NO_DEFAULT_PATH REQUIRED)
|
||||
|
||||
add_library(cgaborator cgaborator.cpp)
|
||||
add_library(cgaborator SHARED cgaborator.cpp)
|
||||
|
||||
target_link_options(cgaborator PRIVATE -static-libgcc -static-libstdc++ "LINKER:--as-needed")
|
||||
target_link_options(cgaborator PRIVATE -static-libgcc -static-libstdc++)
|
||||
message("eeeh ${libpffft}")
|
||||
target_link_libraries(cgaborator "${libpffft}")
|
|
@ -1,8 +1,6 @@
|
|||
#include <iostream>
|
||||
|
||||
extern "C" {
|
||||
#include "cgaborator.h"
|
||||
}
|
||||
#include "gaborator/gaborator.h"
|
||||
#include <unordered_map>
|
||||
#include <math.h>
|
||||
|
|
10
cgaborator.h
10
cgaborator.h
|
@ -1,4 +1,8 @@
|
|||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void* gaborator_initialize(int blockSize, double sampleRate, int bandsPerOctave, double minimumFrequency, double maximumFrequency, double referenceFrequency);
|
||||
long gaborator_get_anal_support(void* ptr);
|
||||
|
||||
|
@ -12,4 +16,8 @@ int gaborator_bandcenters_array_length(void* ptr);
|
|||
|
||||
void gaborator_bandcenters(void* ptr, float* band_centers);
|
||||
|
||||
void gaborator_release(void* ptr);
|
||||
void gaborator_release(void* ptr);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
Loading…
Reference in a new issue