-
Notifications
You must be signed in to change notification settings - Fork 4
/
Package.swift
78 lines (77 loc) · 2.42 KB
/
Package.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// swift-tools-version: 6.0
import PackageDescription
let package = Package(
name: "ChromaSwift",
platforms: [.macOS(.v12), .iOS(.v15), .tvOS(.v15)],
products: [.library(name: "ChromaSwift", targets: ["ChromaSwift"])],
targets: [
.target(
name: "ChromaSwift",
dependencies: ["CChromaprint"]
),
.target(
name: "CChromaprint",
exclude: [
// fpcalc
"cmd",
// FFMPEG parts
"audio",
"avresample",
// Other FFT Libs
"fft_lib_avfft.cpp",
"fft_lib_fftw3.cpp",
"fft_lib_kissfft.cpp",
// Unused
"chroma_resampler.cpp",
"fingerprint_matcher.cpp",
"image_builder.cpp",
"spectrum.cpp",
// Testlibs
"3rdparty",
// Tests
"fft_test.cpp",
"utils/base64_test.cpp",
"utils/rolling_integral_image_test.cpp",
// Supporting files
"CMakeLists.txt",
"utils/gen_bit_reader.py",
"utils/gen_bit_writer.py",
"utils/update_int_array_utils.sh"
],
sources: [
// Main
"audio_processor.cpp",
"chroma.cpp",
"chromaprint.cpp",
"chroma_filter.cpp",
"fft.cpp",
"fingerprinter.cpp",
"fingerprint_calculator.cpp",
"fingerprint_compressor.cpp",
"fingerprint_decompressor.cpp",
"fingerprinter_configuration.cpp",
"simhash.cpp",
"silence_remover.cpp",
"utils/base64.cpp",
// vDSP
"fft_lib_vdsp.cpp"
],
cxxSettings: [
.define("USE_VDSP"),
.define("HAVE_ROUND"),
.headerSearchPath(".")
],
linkerSettings: [.linkedFramework("Accelerate")]
),
.testTarget(
name: "ChromaSwiftTests",
dependencies: ["ChromaSwift"],
resources: [.copy("Audio")]
),
.testTarget(
name: "CChromaprintTests",
dependencies: ["CChromaprint"]
)
],
cxxLanguageStandard: .cxx11
)