diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-06-27 08:53:13 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-06-27 08:53:13 -0500 |
commit | a872431f78e5518419c6af5e365db972f362ba9a (patch) | |
tree | db04e0545801ff4a2fabd38d0c90ecb3c84e4acd /data/CMakeLists.txt | |
parent | 8bb09ca0225886c18e351d3c6156521ed479edd1 (diff) | |
download | ayatana-indicator-datetime-a872431f78e5518419c6af5e365db972f362ba9a.tar.gz ayatana-indicator-datetime-a872431f78e5518419c6af5e365db972f362ba9a.tar.bz2 ayatana-indicator-datetime-a872431f78e5518419c6af5e365db972f362ba9a.zip |
use intltool-merge to generate com.canonical.indicator.datetime.gschema.xml
Diffstat (limited to 'data/CMakeLists.txt')
-rw-r--r-- | data/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/data/CMakeLists.txt b/data/CMakeLists.txt index 5d9e545..d66c865 100644 --- a/data/CMakeLists.txt +++ b/data/CMakeLists.txt @@ -4,9 +4,15 @@ include (UseGSettings) set (SCHEMA_NAME "com.canonical.indicator.datetime.gschema.xml") -set (SCHEMA_FILE "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}") -add_schema (${SCHEMA_FILE}) +set (SCHEMA_FILE "${CMAKE_CURRENT_BINARY_DIR}/${SCHEMA_NAME}") +set (SCHEMA_FILE_IN "${CMAKE_CURRENT_SOURCE_DIR}/${SCHEMA_NAME}.in") + +# generate the .xml file using intltool +set (ENV{LC_ALL} "C") +execute_process (COMMAND intltool-merge -quiet --xml-style --utf8 --no-translations "${SCHEMA_FILE_IN}" "${SCHEMA_FILE}") +# let UseGSettings do the rest +add_schema (${SCHEMA_FILE}) ## ## Upstart Job File |