@@ -34,8 +34,6 @@ xapp_sources = [
3434 ' xapp-status-icon-monitor.c'
3535]
3636
37- codegen = find_program (' g-codegen.py' )
38-
3937dbus_headers = []
4038
4139# FIXME: Ugly workaround that simulates the generation of
@@ -61,48 +59,15 @@ xapp_statusicon_interface_sources = custom_target(
6159dbus_headers += xapp_statusicon_interface_sources[0 ]
6260xapp_sources += xapp_statusicon_interface_sources[1 ]
6361
64- fdo_sn_watcher_interface_sources = custom_target (
65- ' fdo-sn-watcher-interface' ,
66- input : ' sn-watcher.xml' ,
67- output : [' fdo-sn-watcher-interface.h' , ' fdo-sn-watcher-interface.c' ],
68- command : [
69- codegen,
70- ' org.kde.StatusNotifierWatcher' ,
71- ' fdo-sn-watcher-interface' ,
72- ' FdoSnWatcher' ,
73- meson .current_build_dir(),
74- ' @INPUT@' , ' @OUTPUT@'
75- ]
76- )
77-
78- dbus_headers += fdo_sn_watcher_interface_sources[0 ]
79- xapp_sources += fdo_sn_watcher_interface_sources[1 ]
80-
81- fdo_sn_item_interface_sources = custom_target (
82- ' fdo-sn-item-interface' ,
83- input : ' sn-item.xml' ,
84- output : [' fdo-sn-item-interface.h' , ' fdo-sn-item-interface.c' ],
85- command : [
86- codegen,
87- ' org.kde.StatusNotifierItem' ,
88- ' fdo-sn-item-interface' ,
89- ' FdoSnItem' ,
90- meson .current_build_dir(),
91- ' @INPUT@' , ' @OUTPUT@'
92- ]
93- )
94-
95- dbus_headers += fdo_sn_item_interface_sources[0 ]
96- xapp_sources += fdo_sn_item_interface_sources[1 ]
97-
9862# You can't actually access the generated header udring the install_header command below,
9963# because the command is evaluated prior to the files being generated. So we need to manually
10064# install the dbus header file (custom install scripts really *do* get evaluated after build,
10165# during the install phase.)
102- meson .add_install_script( ' install_generated_header.py ' , ' xapp-statusicon-interface.h ' )
66+ codegen = find_program ( join_paths ( meson .source_root(), ' meson-scripts ' , ' g-codegen.py ' ) )
10367
104- # dbus_headers += generated_sources[0]
105- # xapp_sources += generated_sources[1]
68+ meson .add_install_script(join_paths (meson .source_root(), ' meson-scripts' , ' install_generated_header.py' ),
69+ ' xapp-statusicon-interface.h'
70+ )
10671
10772xapp_enums = gnome.mkenums(' xapp-enums' ,
10873 sources : xapp_headers,
0 commit comments