Commit 8f088ecf authored by guinux's avatar guinux

add enable-fake-gnome-software build option

parent a58258e1
......@@ -6,8 +6,9 @@ install_data('pamac-manager.desktop', install_dir: join_paths(get_option('datadi
install_data('org.manjaro.pamac.manager.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
# for gnome integration
install_data('org.gnome.Software.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
if get_option('enable-fake-gnome-software')
install_data('org.gnome.Software.desktop', install_dir: join_paths(get_option('datadir'), 'applications'))
endif
install_data('pamac-tray.desktop', install_dir: join_paths(get_option('sysconfdir'), 'xdg', 'autostart'))
......
......@@ -2,28 +2,29 @@ dbusconf = configuration_data()
dbusconf.set('bindir', join_paths(get_option('prefix'), get_option('bindir')))
configure_file(
input: 'org.manjaro.pamac.manager.service.in',
output: 'org.manjaro.pamac.manager.service',
configuration: dbusconf,
install: true,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services'),
input: 'org.manjaro.pamac.manager.service.in',
output: 'org.manjaro.pamac.manager.service',
configuration: dbusconf,
install: true,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services'),
)
# for gnome integration
configure_file(
input: 'org.gnome.Software.service.in',
output: 'org.gnome.Software.service',
configuration: dbusconf,
install: true,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services'),
)
if get_option('enable-fake-gnome-software')
configure_file(
input: 'org.gnome.Software.service.in',
output: 'org.gnome.Software.service',
configuration: dbusconf,
install: true,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'services'),
)
endif
configure_file(
input: 'org.manjaro.pamac.daemon.service.in',
output: 'org.manjaro.pamac.daemon.service',
configuration: dbusconf,
install: true,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'system-services'),
input: 'org.manjaro.pamac.daemon.service.in',
output: 'org.manjaro.pamac.daemon.service',
configuration: dbusconf,
install: true,
install_dir: join_paths(get_option('datadir'), 'dbus-1', 'system-services'),
)
install_data('org.manjaro.pamac.daemon.conf', install_dir: join_paths(get_option('sysconfdir'), 'dbus-1', 'system.d'))
option('enable-appindicator', type : 'boolean', value : false, description : 'tray icon using appindicator')
option('enable-snap', type : 'boolean', value : false, description : 'support snap packages')
option('enable-flatpak', type : 'boolean', value : false, description : 'support flatpak packages')
option('enable-fake-gnome-software', type : 'boolean', value : false, description : 'simulate gnome-software')
......@@ -161,11 +161,12 @@ executable('pamac-manager',
c_args: common_c_args,
install: true)
# for gnome integration
executable('gnome-software',
sources: ['fake_gnome_software.vala'],
dependencies: [gio],
install: true)
if get_option('enable-fake-gnome-software')
executable('gnome-software',
sources: ['fake_gnome_software.vala'],
dependencies: [gio],
install: true)
endif
executable('pamac-installer',
sources: ['progress_dialog.vala', 'installer.vala', installer_resources],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment