diff options
author | Pete Woods <pete.woods@canonical.com> | 2013-08-20 08:41:50 +0000 |
---|---|---|
committer | Tarmac <Unknown> | 2013-08-20 08:41:50 +0000 |
commit | e3c457451effc5e8643fb9caa4563c022a96486b (patch) | |
tree | b9eb225618ee4be1adf81bbf65de091ce53d16d0 /data | |
parent | 4fedffcef1054e4093c4528d40cce809f1e958b3 (diff) | |
parent | 7e63d1c240a6b1e07275189d0af05edd1adbc654 (diff) | |
download | ayatana-indicator-sound-e3c457451effc5e8643fb9caa4563c022a96486b.tar.gz ayatana-indicator-sound-e3c457451effc5e8643fb9caa4563c022a96486b.tar.bz2 ayatana-indicator-sound-e3c457451effc5e8643fb9caa4563c022a96486b.zip |
Re-write build scripts using cmake.
Approved by PS Jenkins bot, Ted Gould.
Diffstat (limited to 'data')
-rw-r--r-- | data/CMakeLists.txt | 43 | ||||
-rw-r--r-- | data/Makefile.am | 20 | ||||
-rw-r--r-- | data/indicator-sound.service.in | 2 |
3 files changed, 44 insertions, 21 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt new file mode 100644 index 0000000..c66ca69 --- /dev/null +++ b/data/CMakeLists.txt @@ -0,0 +1,43 @@ + +include(UseGSettings) + +########################### +# Indicator service +########################### + +set( + INDICATOR_DIR + "${CMAKE_INSTALL_DATADIR}/unity/indicators" + CACHE FILEPATH "Indicator directory" +) + +install( + FILES "com.canonical.indicator.sound" + DESTINATION "${INDICATOR_DIR}" +) + +########################### +# Dbus Service +########################### + +set( + INDICATOR_SOUND_SERVICE + "${CMAKE_CURRENT_BINARY_DIR}/indicator-sound.service" +) + +configure_file( + "indicator-sound.service.in" + ${INDICATOR_SOUND_SERVICE} + @ONLY +) + +install( + FILES "${INDICATOR_SOUND_SERVICE}" + DESTINATION "${CMAKE_INSTALL_DATADIR}/dbus-1/services/" +) + +########################### +# GSettings +########################### + +add_schema ("com.canonical.indicator.sound.gschema.xml") diff --git a/data/Makefile.am b/data/Makefile.am deleted file mode 100644 index 7647d73..0000000 --- a/data/Makefile.am +++ /dev/null @@ -1,20 +0,0 @@ -gsettings_SCHEMAS = \ - com.canonical.indicator.sound.gschema.xml -@GSETTINGS_RULES@ - -dbus_servicesdir = $(datadir)/dbus-1/services -dbus_services_DATA = indicator-sound.service - -%.service: %.service.in - sed -e "s|\@pkglibexecdir\@|$(pkglibexecdir)|" $< > $@ - -indicatordir = $(INDICATOR_DIR) -dist_indicator_DATA = com.canonical.indicator.sound - -EXTRA_DIST = \ - $(gsettings_SCHEMAS) \ - indicator-sound.service.in - -CLEANFILES = \ - $(dbus_services_DATA) - diff --git a/data/indicator-sound.service.in b/data/indicator-sound.service.in index e8b77c6..34309b2 100644 --- a/data/indicator-sound.service.in +++ b/data/indicator-sound.service.in @@ -1,3 +1,3 @@ [D-BUS Service] Name=com.canonical.indicator.sound -Exec=@pkglibexecdir@/indicator-sound-service +Exec=@CMAKE_INSTALL_FULL_LIBEXECDIR@/indicator-sound/indicator-sound-service |