50 lines
1.3 KiB
Meson
50 lines
1.3 KiB
Meson
|
|
file_raw_exes = [
|
|
'file-another-rawtherapee',
|
|
'file-darktable',
|
|
'file-raw-placeholder',
|
|
'file-rawtherapee',
|
|
]
|
|
|
|
foreach plugin_name : file_raw_exes
|
|
|
|
plugin_sourcecode = [
|
|
plugin_name +'.c',
|
|
'file-raw-utils.c',
|
|
]
|
|
plugin_sources = plugin_sourcecode
|
|
|
|
if platform_windows
|
|
plugin_rc = configure_file(
|
|
input : gimp_plugins_rc.full_path(),
|
|
output: plugin_name + '.rc',
|
|
copy: true,
|
|
)
|
|
plugin_sources += windows.compile_resources(
|
|
plugin_rc,
|
|
args: [
|
|
rc_define_flag, rc_define_fmt.format('ORIGINALFILENAME_STR', plugin_name+'.exe'),
|
|
rc_define_flag, rc_define_fmt.format('INTERNALNAME_STR', plugin_name),
|
|
],
|
|
include_directories: [
|
|
rootInclude, appInclude,
|
|
],
|
|
)
|
|
endif
|
|
|
|
|
|
plugin_exe = executable(plugin_name,
|
|
plugin_sources,
|
|
dependencies: libgimpui_dep,
|
|
win_subsystem: 'windows',
|
|
install: true,
|
|
install_dir: gimpplugindir / 'plug-ins' / plugin_name)
|
|
plugin_executables += [plugin_exe.full_path()]
|
|
endforeach
|
|
|
|
install_data([
|
|
'file-darktable-export-on-exit.lua',
|
|
'file-darktable-get-size.lua',
|
|
],
|
|
install_dir: prefix / gimpdatadir / 'file-raw',
|
|
)
|