~cairo-dock-team/ubuntu/oneiric/cairo-dock-plug-ins/2.3.0-2.1

« back to all changes in this revision

Viewing changes to Dbus/interfaces/vala/src/CMakeLists.txt

  • Committer: Bazaar Package Importer
  • Author(s): Matthieu Baerts (matttbe)
  • Date: 2011-04-20 20:46:51 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20110420204651-ftnpzesj6uc7qeul
Tags: 2.3.0~1-0ubuntu1
* New Upstream Version (LP: #723995)
* Upstream short ChangeLog (since 2.3.0~0rc1):
 - Updated translations
 - Updated the integration of the new versions of kwin and compiz
    (Switcher, ShowDesktop, etc.)
 - Removed a lot of useless g_print
 - Updated a few plug-ins to fit with the new version of the API (gldit)
 - Fixed a few bugs
 - Updated MeMenu, MessagingMenu and Status-Notifier to works
    with the latest version of dbusmenu, etc.
* Switch to dpkg-source 3.0 (quilt) format
* debian/cairo-dock-plug-ins.install:
 - Added new files (interfaces for python, ruby, vala and mono)
* debian/control:
 - Added new dependences for new applets (sensors and zeitgeist)
    and new interfaces (python, valac, ruby and mono)
 - Updated the version of cairo-dock build-dependences
* debian/rules:
 - Added a new CMake flag to install python interface in debian/tmp
* Updated debian/watch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# if we have produced new .c, .h, .vapi, .deps in build dir:
 
2
if ("${VALAC_FOUND}" STREQUAL "TRUE" AND NOT "${WITH_VALA_SRC}" STREQUAL "yes")
 
3
        set (VALA_SRC_DIR ${CMAKE_CURRENT_BINARY_DIR})
 
4
else()
 
5
        set (VALA_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR})
 
6
endif()
 
7
 
 
8
# now, compile it as any normal C lib.
 
9
add_library (${CDAPPLET} SHARED ${VALA_SRC_DIR}/${CDAPPLET}.c)
 
10
add_definitions (-fPIC)
 
11
 
 
12
pkg_check_modules ("CDAPPLET_DEPS" "gobject-2.0" "gio-2.0")
 
13
 
 
14
include_directories (
 
15
        ${CDAPPLET_DEPS_INCLUDE_DIRS})
 
16
 
 
17
link_directories (
 
18
        ${CDAPPLET_DEPS_LIBRARY_DIRS})
 
19
 
 
20
target_link_libraries (${CDAPPLET}
 
21
        ${CDAPPLET_DEPS_LIBRARIES})
 
22
 
 
23
 
 
24
# .so goes with other libs (to be found on runtime)
 
25
install (TARGETS ${CDAPPLET} DESTINATION "${libdir}")
 
26
# .h goes in the dbus data dir
 
27
install (FILES ${VALA_SRC_DIR}/${CDAPPLET}.h DESTINATION "${dbusdatadir}")
 
28
 
 
29
# Use the VAPI path from ValaVapiPath.txt file:
 
30
find_program (HEAD_EXECUTABLE head)
 
31
execute_process(COMMAND ${HEAD_EXECUTABLE} -n 1 ${VALA_SRC_DIR}/ValaVapiPath.txt
 
32
        OUTPUT_VARIABLE VALA_VAPI_PATH)
 
33
STRING (REGEX REPLACE "\n" "" VALA_VAPI_PATH ${VALA_VAPI_PATH})
 
34
 
 
35
get_filename_component(VALA_VAPI_PATH "${VALA_SHARE_PATH}/${VALA_VAPI_PATH}" ABSOLUTE)
 
36
install (FILES "${VALA_SRC_DIR}/${CDAPPLET}.vapi" DESTINATION "${VALA_VAPI_PATH}")
 
37
install (FILES "${CMAKE_CURRENT_SOURCE_DIR}/../${CDAPPLET}.deps" DESTINATION "${VALA_VAPI_PATH}")