11gob2 = gob2_proj.get_variable (' gob2_exe' )
2+ pymod = import (' python' )
23
4+ python = pymod.find_installation()
35giv_widget_src = custom_target (' gen-output' ,
46 output : [' giv-widget.h' ,' giv-widget-private.h' ,' giv-widget.cc' ],
57 input : ' giv-widget.gob' ,
@@ -24,7 +26,6 @@ giv_widget_sources = [
2426]
2527
2628subdir (' agg' )
27- #subdir('plis')
2829subdir (' glib-jsonrpc' )
2930subdir (' gtkimageviewer' )
3031
@@ -35,7 +36,6 @@ gtk_dep = dependency('gtk+-3.0')
3536fmt_dep = dependency (' fmt' )
3637spdlog_dep = dependency (' spdlog' )
3738gmodule_dep = dependency (' gmodule-2.0' )
38- libplis_dep = dependency (' libplis' )
3939
4040libgivwidget = shared_library (
4141 ' giv-widget' ,
@@ -100,6 +100,33 @@ foreach basename : [
100100 )[2 ]
101101endforeach
102102
103+ file2c = find_program (' file2c.py' )
104+
105+ foreach src_trg : [
106+ [' menu-top-xml.i' ,' menu-top.xml' ],
107+ [' menu-popup-xml.i' ,' menu-popup.xml' ],
108+ [' copyright.i' ,' copyright.markup' ]]
109+
110+ target = src_trg[0 ]
111+ source = src_trg[1 ]
112+ giv_src += custom_target (
113+ target,
114+ output : [target],
115+ input : source,
116+ command : [file2c, ' --source' , ' @INPUT@' , ' --target' , ' @OUTPUT@' ],
117+ )
118+ endforeach
119+
120+ gdk_pixbuf_csource = find_program (' gdk-pixbuf-csource' )
121+
122+ giv_src += custom_target (
123+ ' giv-logo.i' ,
124+ output : [' giv-logo.i' ],
125+ input : [' ../doc/giv-logo.png' ],
126+ capture : true ,
127+ command : [gdk_pixbuf_csource, ' --name=image_giv_icon_inline' , ' @INPUT@' ]
128+ )
129+
103130glib_dep = dependency (' glib-2.0' )
104131gobject_dep = dependency (' gobject-2.0' )
105132gio_dep = dependency (' gio-2.0' )
0 commit comments