endif
endif
-if conf.get('ENABLE_PORTABLED') == 1
- if get_option('link-portabled-shared')
- portabled_link_with = [libshared]
- else
- portabled_link_with = [libsystemd_static,
- libshared_static]
- endif
-
- dbus_programs += executable(
- 'systemd-portabled',
- systemd_portabled_sources,
- include_directories : includes,
- link_with : [portabled_link_with],
- dependencies : [libselinux,
- threads,
- userspace],
- install_rpath : pkglibdir,
- install : true,
- install_dir : libexecdir)
-
- public_programs += executable(
- 'portablectl',
- 'src/portable/portablectl.c',
- include_directories : includes,
- link_with : [portabled_link_with],
- dependencies : [threads,
- userspace],
- install_rpath : pkglibdir,
- install : true)
-endif
-
if conf.get('ENABLE_SYSEXT') == 1
public_programs += executable(
'systemd-sysext',
'portabled.c',
)
+if get_option('link-portabled-shared')
+ portabled_link_with = [libshared]
+else
+ portabled_link_with = [
+ libshared_static,
+ libsystemd_static,
+ ]
+endif
+
+executables += [
+ libexec_template + {
+ 'name' : 'systemd-portabled',
+ 'dbus' : true,
+ 'conditions' : ['ENABLE_PORTABLED'],
+ 'sources' : systemd_portabled_sources,
+ 'link_with' : portabled_link_with,
+ 'dependencies' : [
+ libselinux,
+ threads,
+ ],
+ },
+ executable_template + {
+ 'name' : 'portablectl',
+ 'public' : true,
+ 'conditions' : ['ENABLE_PORTABLED'],
+ 'sources' : files('portablectl.c'),
+ 'link_with' : portabled_link_with,
+ 'dependencies' : threads,
+ },
+]
+
if conf.get('ENABLE_PORTABLED') == 1
install_data('org.freedesktop.portable1.conf',
install_dir : dbuspolicydir)