@@ -16,14 +16,15 @@ let package = Package(
16
16
] ,
17
17
dependencies: [
18
18
// Dependencies declare other packages that this package depends on.
19
- . package ( url: " https://github.com/SDWebImage/libde265-Xcode.git " , from: " 1.0.9-beta " )
19
+ . package ( url: " https://github.com/SDWebImage/libde265-Xcode.git " , from: " 1.0.9 " ) ,
20
+ . package ( url: " https://github.com/SDWebImage/libx265-Xcode.git " , from: " 3.4.0 " )
20
21
] ,
21
22
targets: [
22
23
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
23
24
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
24
25
. target(
25
26
name: " libheif " ,
26
- dependencies: [ " libde265 " ] ,
27
+ dependencies: [ " libde265 " , " libx265 " ] ,
27
28
path: " . " ,
28
29
exclude: [ " libheif/libheif/plugins_unix.h " ,
29
30
" libheif/libheif/plugins_unix.cc " ,
@@ -33,17 +34,31 @@ let package = Package(
33
34
" libheif/libheif/plugins/encoder_aom.cc " ,
34
35
" libheif/libheif/plugins/decoder_aom.h " ,
35
36
" libheif/libheif/plugins/decoder_aom.cc " ,
36
- " libheif/libheif/plugins/encoder_x265.h " ,
37
- " libheif/libheif/plugins/encoder_x265.cc " ,
38
37
" libheif/libheif/plugins/decoder_dav1d.h " ,
39
38
" libheif/libheif/plugins/decoder_dav1d.cc " ,
40
39
" libheif/libheif/plugins/encoder_rav1e.h " ,
41
40
" libheif/libheif/plugins/encoder_rav1e.cc " ,
42
41
" libheif/libheif/plugins/encoder_svt.h " ,
42
+ " libheif/libheif/plugins/encoder_svt.cc " ,
43
+ " libheif/libheif/plugins/encoder_openjpeg.h " ,
44
+ " libheif/libheif/plugins/encoder_openjpeg.cc " ,
45
+ " libheif/libheif/plugins/decoder_openjpeg.h " ,
46
+ " libheif/libheif/plugins/decoder_openjpeg.cc " ,
47
+ " libheif/libheif/plugins/encoder_jpeg.h " ,
48
+ " libheif/libheif/plugins/encoder_jpeg.cc " ,
49
+ " libheif/libheif/plugins/decoder_jpeg.h " ,
50
+ " libheif/libheif/plugins/decoder_jpeg.cc " ,
51
+ " libheif/libheif/plugins/encoder_ffmpeg.h " ,
52
+ " libheif/libheif/plugins/encoder_ffmpeg.cc " ,
53
+ " libheif/libheif/plugins/decoder_ffmpeg.h " ,
54
+ " libheif/libheif/plugins/decoder_ffmpeg.cc " ,
55
+ " libheif/libheif/plugins/encoder_kvazaar.h " ,
56
+ " libheif/libheif/plugins/encoder_kvazaar.cc " ,
57
+ " libheif/libheif/plugins/encoder_svt.h " ,
43
58
" libheif/libheif/plugins/encoder_svt.cc " ] ,
44
59
sources: [ " libheif/libheif " ] ,
45
60
publicHeadersPath: " include " ,
46
- cSettings: [ . headerSearchPath( " libheif " ) , . define( " HAVE_UNISTD_H " ) , . define( " HAVE_LIBDE265 " ) ]
61
+ cSettings: [ . headerSearchPath( " libheif " ) , . define( " HAVE_UNISTD_H " ) , . define( " HAVE_LIBDE265 " ) , . define ( " HAVE_X265 " ) ]
47
62
)
48
63
] ,
49
64
cLanguageStandard: . gnu11,
0 commit comments