[build] Add the nautilus extension to the build
If nautilus-python is present, the extension will be installed in the proper directory.
This commit is contained in:
parent
e91c4e73ea
commit
4f8f64e5fa
27
SparkleShare/Makefile.am
Normal file
27
SparkleShare/Makefile.am
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
SUBDIRS = \
|
||||||
|
Nautilus
|
||||||
|
|
||||||
|
ASSEMBLY = SparkleShare
|
||||||
|
TARGET = exe
|
||||||
|
|
||||||
|
LINK = $(REF_SPARKLESHARE)
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES = \
|
||||||
|
Defines.cs \
|
||||||
|
SparkleBubble.cs \
|
||||||
|
SparkleDialog.cs \
|
||||||
|
SparkleHelpers.cs \
|
||||||
|
SparklePaths.cs \
|
||||||
|
SparklePlatform.cs \
|
||||||
|
SparkleRepo.cs \
|
||||||
|
SparkleShare.cs \
|
||||||
|
SparkleSpinner.cs \
|
||||||
|
SparkleStatusIcon.cs \
|
||||||
|
SparkleUI.cs \
|
||||||
|
SparkleWindow.cs
|
||||||
|
|
||||||
|
include $(top_srcdir)/build/build.mk
|
||||||
|
|
||||||
|
bin_SCRIPTS = sparkleshare
|
||||||
|
|
10
SparkleShare/Nautilus/Makefile.am
Normal file
10
SparkleShare/Nautilus/Makefile.am
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
SOURCES = \
|
||||||
|
sparkleshare-nautilus-extension.py
|
||||||
|
|
||||||
|
if NAUTILUS_EXTENSION_ENABLED
|
||||||
|
NAUTILUS_PYTHON_INSTALL_DIR=$(subst $(NAUTILUS_LIBDIR),${libdir},$(NAUTILUS_PYTHON_DIR))
|
||||||
|
extensiondir = $(NAUTILUS_PYTHON_INSTALL_DIR)
|
||||||
|
extension_SCRIPTS = $(addprefix $(srcdir)/, $(SOURCES))
|
||||||
|
else
|
||||||
|
EXTRA_DIST = $(SOURCES)
|
||||||
|
endif
|
14
build/m4/sparkleshare/nautilus-python.m4
Normal file
14
build/m4/sparkleshare/nautilus-python.m4
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
AC_DEFUN([SPARKLESHARE_NAUTILUS_PYTHON],
|
||||||
|
[
|
||||||
|
PKG_CHECK_MODULES(NAUTILUS_PYTHON, nautilus-python, have_nautilus_python=yes, have_nautilus_python=no)
|
||||||
|
if test "x$have_nautilus_python" = "xyes"; then
|
||||||
|
NAUTILUS_LIBDIR="`$PKG_CONFIG --variable=libdir nautilus-python`"
|
||||||
|
AC_SUBST(NAUTILUS_LIBDIR)
|
||||||
|
NAUTILUS_PYTHON_DIR="`$PKG_CONFIG --variable=pythondir nautilus-python`"
|
||||||
|
AC_SUBST(NAUTILUS_PYTHON_DIR)
|
||||||
|
AM_CONDITIONAL(NAUTILUS_EXTENSION_ENABLED, true)
|
||||||
|
else
|
||||||
|
AM_CONDITIONAL(NAUTILUS_EXTENSION_ENABLED, false)
|
||||||
|
fi
|
||||||
|
])
|
||||||
|
|
|
@ -75,6 +75,9 @@ SHAMROCK_CHECK_MONO_2_0_GAC_ASSEMBLIES([
|
||||||
Mono.Posix
|
Mono.Posix
|
||||||
])
|
])
|
||||||
|
|
||||||
|
dnl Get nautilus extensions directory
|
||||||
|
SPARKLESHARE_NAUTILUS_PYTHON
|
||||||
|
|
||||||
SHAVE_INIT([build/m4/shave], [enable])
|
SHAVE_INIT([build/m4/shave], [enable])
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,6 +93,7 @@ SparkleShare/sparkleshare
|
||||||
SparkleShare/Defines.cs
|
SparkleShare/Defines.cs
|
||||||
SparkleShare/AssemblyInfo.cs
|
SparkleShare/AssemblyInfo.cs
|
||||||
SparkleShare/Makefile
|
SparkleShare/Makefile
|
||||||
|
SparkleShare/Nautilus/Makefile
|
||||||
po/Makefile.in
|
po/Makefile.in
|
||||||
Makefile
|
Makefile
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in a new issue