Don't rebuild fiv-io.c several times

This commit is contained in:
Přemysl Eric Janouch 2023-06-23 16:45:26 +02:00
parent 4f57070e27
commit c2e8b65d0f
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 9 additions and 5 deletions

View File

@ -161,11 +161,14 @@ tiff_tables = custom_target('tiff-tables.h',
) )
desktops = ['fiv.desktop', 'fiv-browse.desktop'] desktops = ['fiv.desktop', 'fiv-browse.desktop']
exe = executable('fiv', 'fiv.c', 'fiv-view.c', 'fiv-io.c', 'fiv-context-menu.c', iolib = static_library('fiv-io', 'fiv-io.c', 'xdg.c', tiff_tables,
dependencies : dependencies).extract_all_objects(recursive : true)
exe = executable('fiv', 'fiv.c', 'fiv-view.c', 'fiv-context-menu.c',
'fiv-browser.c', 'fiv-sidebar.c', 'fiv-thumbnail.c', 'fiv-collection.c', 'fiv-browser.c', 'fiv-sidebar.c', 'fiv-thumbnail.c', 'fiv-collection.c',
'fiv-io-model.c', 'xdg.c', tiff_tables, gresources, rc, config, 'fiv-io-model.c', gresources, rc, config,
install : true, objects : iolib,
dependencies : dependencies, dependencies : dependencies,
install : true,
win_subsystem : 'windows', win_subsystem : 'windows',
) )
@ -193,8 +196,9 @@ if get_option('tools').enabled()
endforeach endforeach
if gdkpixbuf.found() if gdkpixbuf.found()
executable('benchmark-io', 'tools/benchmark-io.c', 'fiv-io.c', 'xdg.c', executable('benchmark-io', 'tools/benchmark-io.c',
tiff_tables, dependencies : [dependencies, gdkpixbuf]) objects : iolib,
dependencies : [dependencies, gdkpixbuf])
endif endif
endif endif