~shnatsel/slingshot/update-cmake-modules

« back to all changes in this revision

Viewing changes to lib/synapse-plugins/CMakeLists.txt

  • Committer: RabbitBot
  • Author(s): Tom Beckmann
  • Date: 2014-06-28 05:00:49 UTC
  • mfrom: (421.1.19 slingshot)
  • Revision ID: rabbitbot-20140628050049-pi540b7grh00lzcv
Copy the sources of Synapse over and implements a new searchview using libsynapse

Copying is currently necessary as synapse's library is internal. I hope we can change this soon, although I don't consider it very urgent, as synapse is almost unmaintained at the moment, so we most likely won't miss out on important updates.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
set(PLUGINS_LIB_VERSION 0.1)
 
2
set(PLUGINS_LIB_SOVERSION 0)
 
3
set(PLUGINS_LIBRARY_NAME synapse-plugins)
 
4
set(PLUGINS_PKG
 
5
    glib-2.0
 
6
    gio-unix-2.0
 
7
    gee-0.8
 
8
    gtk+-3.0
 
9
)
 
10
 
 
11
pkg_check_modules(PLUGINS_DEPS REQUIRED ${PLUGINS_PKG})
 
12
 
 
13
set(PLUGINS_SOURCE
 
14
    command-plugin.vala
 
15
    desktop-file-plugin.vala
 
16
)
 
17
 
 
18
set(LINK_MODE STATIC)
 
19
 
 
20
vala_precompile(PLUGINS_VALA_C ${PLUGINS_LIBRARY_NAME}
 
21
    ${PLUGINS_SOURCE}
 
22
PACKAGES
 
23
    ${PLUGINS_PKG}
 
24
    synapse-core
 
25
OPTIONS
 
26
    --vapidir=${CMAKE_BINARY_DIR}/lib/synapse-core
 
27
GENERATE_VAPI
 
28
    ${PLUGINS_LIBRARY_NAME}
 
29
GENERATE_HEADER
 
30
    ${PLUGINS_LIBRARY_NAME}
 
31
)
 
32
 
 
33
add_definitions(${PLUGINS_DEPS_CFLAGS} -include config.h -w)
 
34
link_directories(${PLUGINS_DEPS_LIBRARY_DIRS})
 
35
include_directories(${CMAKE_BINARY_DIR}/lib/synapse-core)
 
36
 
 
37
add_library(${PLUGINS_LIBRARY_NAME} STATIC ${PLUGINS_VALA_C})
 
38
 
 
39
set_target_properties(${PLUGINS_LIBRARY_NAME} PROPERTIES
 
40
    OUTPUT_NAME ${PLUGINS_LIBRARY_NAME}
 
41
    VERSION ${PLUGINS_LIB_VERSION}
 
42
    SOVERSION ${PLUGINS_LIB_SOVERSION}
 
43
)
 
44
 
 
45
target_link_libraries (${PLUGINS_LIBRARY_NAME} ${PLUGINS_DEPS_LIBRARIES} synapse-core)
 
46