mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-24 00:43:56 +00:00
18 lines
400 B
Meson
18 lines
400 B
Meson
source_file = [
|
|
'tvgJpgLoader.h',
|
|
'tvgJpgLoader.cpp',
|
|
]
|
|
|
|
jpg_dep = dependency('libturbojpeg', required: false)
|
|
|
|
if not jpg_dep.found()
|
|
jpg_dep = cc.find_library('turbojpeg', required: false)
|
|
endif
|
|
|
|
if jpg_dep.found()
|
|
subloader_dep += [declare_dependency(
|
|
include_directories : include_directories('.'),
|
|
dependencies : jpg_dep,
|
|
sources : source_file
|
|
)]
|
|
endif
|