Skip to content

Commit

Permalink
libjpeg-turbo: update to 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and neheb committed Feb 1, 2024
1 parent 538b198 commit add39f4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
1 change: 1 addition & 0 deletions releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -1482,6 +1482,7 @@
"libturbojpeg"
],
"versions": [
"3.0.2-1",
"3.0.1-1",
"3.0.0-5",
"3.0.0-4",
Expand Down
8 changes: 4 additions & 4 deletions subprojects/libjpeg-turbo.wrap
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[wrap-file]
directory = libjpeg-turbo-3.0.1
source_url = https://sourceforge.net/projects/libjpeg-turbo/files/3.0.1/libjpeg-turbo-3.0.1.tar.gz
source_filename = libjpeg-turbo-3.0.1.tar.gz
source_hash = 22429507714ae147b3acacd299e82099fce5d9f456882fc28e252e4579ba2a75
directory = libjpeg-turbo-3.0.2
source_url = https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.0.2/libjpeg-turbo-3.0.2.tar.gz
source_filename = libjpeg-turbo-3.0.2.tar.gz
source_hash = c2ce515a78d91b09023773ef2770d6b0df77d674e144de80d63e0389b3a15ca6
patch_directory = libjpeg-turbo

[provide]
Expand Down
17 changes: 15 additions & 2 deletions subprojects/packagefiles/libjpeg-turbo/meson.build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
project('libjpeg-turbo', 'c',
version : '3.0.1',
version : '3.0.2',
license : 'bsd-like',
meson_version : '>= 0.64.0')

Expand Down Expand Up @@ -108,6 +108,13 @@ else
cdata.set('THREAD_LOCAL', '__thread')
endif

cdata.set(
'HIDDEN',
cc.has_function_attribute('visibility:hidden')
? '__attribute__((visibility("hidden")))'
: '',
)

if get_option('force_inline')
if cc.get_id() == 'msvc'
cdata.set('INLINE', '__forceinline')
Expand Down Expand Up @@ -160,7 +167,13 @@ sources = [
'jcphuff.c', 'jctrans.c', 'jdapimin.c', 'jdatadst.c', 'jdatasrc.c',
'jdhuff.c', 'jdicc.c', 'jdinput.c', 'jdlhuff.c', 'jdmarker.c',
'jdmaster.c', 'jdphuff.c', 'jdtrans.c', 'jerror.c', 'jfdctflt.c',
'jmemmgr.c', 'jmemnobs.c', 'jaricom.c', 'jcarith.c', 'jdarith.c',
'jmemmgr.c', 'jmemnobs.c', 'jpeg_nbits.c',
# TODO: `with_arith_dec` / `with_arith_enc` only.
'jaricom.c',
# TODO: `with_arith_enc` only
'jcarith.c',
# TODO: `with_arith_dec` only
'jdarith.c',
]

jpeg12 = static_library('jpeg12', jpeg12_sources,
Expand Down

0 comments on commit add39f4

Please sign in to comment.