2017-11-01 21:27:13 +08:00
|
|
|
plugin_name = 'file-jpeg'
|
|
|
|
|
|
|
|
plugin_sources = [
|
|
|
|
'jpeg-icc.c',
|
|
|
|
'jpeg-load.c',
|
|
|
|
'jpeg-quality.c',
|
2024-04-21 22:36:01 +08:00
|
|
|
'jpeg-export.c',
|
2017-11-01 21:27:13 +08:00
|
|
|
'jpeg-settings.c',
|
|
|
|
'jpeg.c',
|
|
|
|
]
|
|
|
|
|
|
|
|
if platform_windows
|
|
|
|
plugin_sources += windows.compile_resources(
|
|
|
|
gimp_plugins_rc,
|
|
|
|
args: [
|
|
|
|
'--define', 'ORIGINALFILENAME_STR="@0@"'.format(plugin_name+'.exe'),
|
|
|
|
'--define', 'INTERNALNAME_STR="@0@"' .format(plugin_name),
|
2022-08-31 07:07:27 +08:00
|
|
|
'--define', 'TOP_SRCDIR="@0@"' .format(meson.project_source_root()),
|
2017-11-01 21:27:13 +08:00
|
|
|
],
|
|
|
|
include_directories: [
|
|
|
|
rootInclude, appInclude,
|
|
|
|
],
|
|
|
|
)
|
|
|
|
endif
|
|
|
|
|
2024-04-09 03:29:19 +08:00
|
|
|
plugin_exe = executable(plugin_name,
|
|
|
|
plugin_sources,
|
|
|
|
dependencies: [
|
|
|
|
libgimpui_dep,
|
|
|
|
libjpeg,
|
|
|
|
lcms,
|
|
|
|
gexiv2,
|
|
|
|
],
|
|
|
|
install: true,
|
|
|
|
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
|
|
|
|
plugin_executables += [plugin_exe.full_path()]
|