Implement more of the meson build
This commit is contained in:
parent
1b20e8f31b
commit
fcb1275325
|
@ -2,7 +2,8 @@ image_files = ['tutorial-slide-1.png',
|
||||||
'tutorial-slide-2.png',
|
'tutorial-slide-2.png',
|
||||||
'side-splash.png',
|
'side-splash.png',
|
||||||
'about.png',
|
'about.png',
|
||||||
'text-balloon.png']
|
'text-balloon.png',
|
||||||
|
'user-icon-default.png']
|
||||||
|
|
||||||
install_data(
|
install_data(
|
||||||
sources: image_files,
|
sources: image_files,
|
||||||
|
|
|
@ -18,6 +18,19 @@ sparkleshare_src = ['../Common/SparkleShare.cs',
|
||||||
'UserInterface.cs',
|
'UserInterface.cs',
|
||||||
'UserInterfaceHelpers.cs']
|
'UserInterfaceHelpers.cs']
|
||||||
|
|
||||||
|
# Startup script
|
||||||
|
configure_file(
|
||||||
|
input: 'sparkleshare.in',
|
||||||
|
output: 'sparkleshare',
|
||||||
|
configuration: configuration, install_dir: 'bin/')
|
||||||
|
|
||||||
|
# .desktop and .appdata files
|
||||||
|
install_data(sources: 'org.sparkleshare.SparkleShare.desktop', install_dir: join_paths('share', 'applications'))
|
||||||
|
install_data(sources: 'org.sparkleshare.SparkleShare.Invites.desktop', install_dir: join_paths('share', 'applications'))
|
||||||
|
install_data(sources: 'SparkleShare.Autostart.desktop', install_dir: join_paths('share', 'applications'))
|
||||||
|
install_data(sources: 'org.sparkleshare.SparkleShare.appdata.xml', install_dir: join_paths('share', 'appdata'))
|
||||||
|
|
||||||
|
# Dependencies
|
||||||
gtk = dependency('gtk-sharp-3.0')
|
gtk = dependency('gtk-sharp-3.0')
|
||||||
gdk = dependency('gdk-sharp-3.0')
|
gdk = dependency('gdk-sharp-3.0')
|
||||||
gio = dependency('gio-sharp-3.0')
|
gio = dependency('gio-sharp-3.0')
|
||||||
|
@ -33,23 +46,11 @@ sparkleshare = executable('SparkleShare',
|
||||||
install: true,
|
install: true,
|
||||||
install_dir: install_dir)
|
install_dir: install_dir)
|
||||||
|
|
||||||
# Install the startup script
|
|
||||||
install_data(sources: 'sparkleshare', install_dir: '/bin')
|
|
||||||
|
|
||||||
# Install .desktop and .appdata files
|
|
||||||
install_data(sources: 'org.sparkleshare.SparkleShare.desktop', install_dir: join_paths('share', 'applications'))
|
|
||||||
install_data(sources: 'org.sparkleshare.SparkleShare.Invites.desktop', install_dir: join_paths('share', 'applications'))
|
|
||||||
install_data(sources: 'SparkleShare.Autostart.desktop', install_dir: join_paths('share', 'applications'))
|
|
||||||
install_data(sources: 'org.sparkleshare.SparkleShare.appdata.xml', install_dir: join_paths('share', 'appdata'))
|
|
||||||
|
|
||||||
subdir('Images')
|
subdir('Images')
|
||||||
subdir('Images/icons')
|
subdir('Images/icons')
|
||||||
|
|
||||||
|
|
||||||
# TODO:
|
# TODO:
|
||||||
# - preprocess startup script, and InstallationInfo.Directory.cs.in
|
# - install icons into right structure. Ubuntu icons. custom icons to right location
|
||||||
# - special Ubuntu icons. custom icons to right location
|
|
||||||
# - preprocess InstallationInfo.Directory.cs.in
|
|
||||||
# - Keep around bump version script
|
|
||||||
# - update .desktop file database and icon cache
|
# - update .desktop file database and icon cache
|
||||||
|
|
||||||
|
|
|
@ -10,12 +10,13 @@ case $1 in
|
||||||
invite=`date -u +%N`
|
invite=`date -u +%N`
|
||||||
open=`echo $2 | sed 's/sparkleshare:\/\/addProject\///'`
|
open=`echo $2 | sed 's/sparkleshare:\/\/addProject\///'`
|
||||||
curl --insecure --output ~/SparkleShare/.$invite.xml $open
|
curl --insecure --output ~/SparkleShare/.$invite.xml $open
|
||||||
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe"
|
mono "@ABS_INSTALL_DIR@/SparkleShare.exe"
|
||||||
;;
|
;;
|
||||||
help|--help|version|--version)
|
help|--help|version|--version)
|
||||||
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" help
|
mono "@ABS_INSTALL_DIR@/SparkleShare.exe" help
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
mono "@expanded_libdir@/@PACKAGE@/SparkleShare.exe" $2
|
mono "@ABS_INSTALL_DIR@/SparkleShare.exe" $2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
|
@ -24,6 +24,6 @@ using System.Reflection;
|
||||||
namespace Sparkles {
|
namespace Sparkles {
|
||||||
|
|
||||||
public partial class InstallationInfo {
|
public partial class InstallationInfo {
|
||||||
public const string Directory = "@expanded_datadir@/sparkleshare";
|
public const string Directory = "@ABS_INSTALL_DIR@";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
directory_info_file = configure_file(
|
||||||
|
input: 'InstallationInfo.Directory.cs.in',
|
||||||
|
output: 'InstallationInfo.Directory.cs',
|
||||||
|
configuration: configuration)
|
||||||
|
|
||||||
sparkles_src = ['AuthenticationInfo.cs',
|
sparkles_src = ['AuthenticationInfo.cs',
|
||||||
'BaseFetcher.cs',
|
'BaseFetcher.cs',
|
||||||
'BaseListener.cs',
|
'BaseListener.cs',
|
||||||
|
@ -7,7 +12,7 @@ sparkles_src = ['AuthenticationInfo.cs',
|
||||||
'Configuration.cs',
|
'Configuration.cs',
|
||||||
'Extensions.cs',
|
'Extensions.cs',
|
||||||
'InstallationInfo.cs',
|
'InstallationInfo.cs',
|
||||||
'InstallationInfo.Directory.cs',
|
directory_info_file,
|
||||||
'Invite.cs',
|
'Invite.cs',
|
||||||
'ListenerFactory.cs',
|
'ListenerFactory.cs',
|
||||||
'Logger.cs',
|
'Logger.cs',
|
||||||
|
@ -19,10 +24,6 @@ sparkles_src = ['AuthenticationInfo.cs',
|
||||||
'User.cs',
|
'User.cs',
|
||||||
'Watcher.cs']
|
'Watcher.cs']
|
||||||
|
|
||||||
# generator = custom_target('replace',
|
|
||||||
# input: 'InstallationInfo.Directory.cs.in',
|
|
||||||
# output: 'InstallationInfo.Directory.cs',
|
|
||||||
# command: ['sed', 's/@VERSION@/2.0.1/g @INPUT@', '@OUTPUT@'])
|
|
||||||
|
|
||||||
sparkles = library('Sparkles',
|
sparkles = library('Sparkles',
|
||||||
sources: sparkles_src,
|
sources: sparkles_src,
|
||||||
|
|
|
@ -2,6 +2,10 @@ project('SparkleShare', 'cs')
|
||||||
|
|
||||||
install_dir = 'share/sparkleshare'
|
install_dir = 'share/sparkleshare'
|
||||||
|
|
||||||
|
configuration = configuration_data()
|
||||||
|
configuration.set('ABS_INSTALL_DIR', join_paths(get_option('prefix'), install_dir))
|
||||||
|
configuration.set('VERSION', '2.0.1')
|
||||||
|
|
||||||
subdir('Sparkles')
|
subdir('Sparkles')
|
||||||
subdir('Sparkles/Git')
|
subdir('Sparkles/Git')
|
||||||
subdir('SparkleShare')
|
subdir('SparkleShare')
|
||||||
|
|
Loading…
Reference in a new issue