-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,6 @@ bin | |
|
||
*.DS_Store | ||
|
||
.classpath | ||
.project | ||
.settings/ | ||
build/ | ||
|
||
*.o |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Fri Jan 13 21:06:59 CET 2023 | ||
gradle.version=7.6 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
plugins { | ||
id 'java' | ||
id 'com.github.johnrengelman.shadow' version '7.1.2' | ||
} | ||
|
||
group 'be.ugent.jgaborator' | ||
version '0.7' | ||
|
||
repositories { | ||
maven { | ||
name = "TarsosDSP repository" | ||
url = "https://mvn.0110.be/releases" | ||
} | ||
} | ||
|
||
dependencies { | ||
implementation 'be.tarsos.dsp:core:2.5' | ||
implementation 'be.tarsos.dsp:jvm:2.5' | ||
|
||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,35 @@ | ||
|
||
|
||
JNI_INCLUDES=-I"$(JAVA_HOME)/include" -I"$(JAVA_HOME)/include/darwin" -I"$(JAVA_HOME)/include/linux" -I"$(JAVA_HOME)/include/win32" -I"$(JAVA_HOME)/include/win64" | ||
|
||
|
||
all: | ||
# Performance can be significantly improved by using a faster FFT library. | ||
# On macOS, you can use the FFT from Apple's vDSP library by defining GABORATOR_USE_VDSP and linking with the Accelerate framework | ||
# On Linux and NetBSD, you can use the PFFFT (Pretty Fast FFT) library which is what is done below: | ||
cc -c -O3 -ffast-math -fPIC pffft/pffft.c -o pffft/pffft.o | ||
cc -c -O3 -ffast-math -fPIC -DFFTPACK_DOUBLE_PRECISION pffft/fftpack.c -o pffft/fftpack.o | ||
c++ -std=c++11 -I"gaborator-1.2" -I"pffft" -I"$(JAVA_HOME)/include" -I"$(JAVA_HOME)/include/linux" -fPIC -shared -O3 -ffast-math -DGABORATOR_USE_PFFFT -o ../build/precompiled/libjgaborator.so jgaborator.cc pffft/pffft.o pffft/fftpack.o | ||
c++ -std=c++11 -I"gaborator-1.7" -I"pffft" $(JNI_INCLUDES) -fPIC -shared -O3 -ffast-math -DGABORATOR_USE_PFFFT -o ../build/precompiled/libjgaborator.so jgaborator.cc pffft/pffft.o pffft/fftpack.o | ||
|
||
mac: | ||
c++ -std=c++11 -I"gaborator-1.2" -I"$(JAVA_HOME)/include" -I"$(JAVA_HOME)/include/darwin" -O3 -ffast-math -DGABORATOR_USE_VDSP -o ../build/precompiled/libjgaborator.dylib jgaborator.cc -framework Accelerate | ||
c++ -std=c++11 -I"gaborator-1.7" $(JNI_INCLUDES) -O3 -ffast-math -DGABORATOR_USE_VDSP -o ../build/precompiled/libjgaborator.dylib jgaborator.cc -framework Accelerate | ||
|
||
mac_dummy: | ||
c++ -std=c++11 -I"gaborator-1.2" -I"$(JAVA_HOME)/include" -I"$(JAVA_HOME)/include/darwin" -O3 -ffast-math -DGABORATOR_USE_VDSP -o ../build/precompiled/libjgaborator.dylib jgaborator_dummy.cc -framework Accelerate | ||
c++ -std=c++11 -I"gaborator-1.7" $(JNI_INCLUDES) -O3 -ffast-math -DGABORATOR_USE_VDSP -o ../build/precompiled/libjgaborator.dylib jgaborator_dummy.cc -framework Accelerate | ||
|
||
clean: | ||
rm *.so *.class pfft/*o | ||
|
||
zig_windows_example: | ||
echo $(JNI_INCLUDES) | ||
zig cc -target x86_64-windows-gnu -c -O3 -ffast-math -fPIC pffft/pffft.c -o pffft/pffft.o | ||
zig cc -target x86_64-windows-gnu -c -O3 -ffast-math -fPIC -DFFTPACK_DOUBLE_PRECISION pffft/fftpack.c -o pffft/fftpack.o | ||
zig c++ -target x86_64-windows-gnu -I"pffft" -I"gaborator-1.7" $(JNI_INCLUDES) -O3 -ffast-math -DGABORATOR_USE_PFFFT -o libjgaborator.dll jgaborator.cc pffft/pffft.o pffft/fftpack.o | ||
|
||
zig: | ||
zig cc -target $(ZIG_TARGET_PLATFORM) -c -O3 -ffast-math -fPIC pffft/pffft.c -o pffft/pffft.o | ||
zig cc -target $(ZIG_TARGET_PLATFORM) -c -O3 -ffast-math -fPIC -DFFTPACK_DOUBLE_PRECISION pffft/fftpack.c -o pffft/fftpack.o | ||
zig c++ -target $(ZIG_TARGET_PLATFORM) -I"pffft" -I"gaborator-1.7" $(JNI_INCLUDES) -O3 -ffast-math -DGABORATOR_USE_PFFFT -o $(ZIG_OUTPUT_FILE) jgaborator.cc pffft/pffft.o pffft/fftpack.o | ||
|
||
|
||
|
||
clean: | ||
rm *.so *.class |
This file was deleted.