~shnatsel/slingshot/update-cmake-modules

« back to all changes in this revision

Viewing changes to 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:
54
54
  message ("-- Zeitgeist integration disabled")
55
55
endif ()
56
56
 
57
 
set (CORE_DEPS "gobject-2.0;glib-2.0;gio-2.0;gio-unix-2.0;gee-0.8;libgnome-menu-3.0;${UNITY_DEPS};")
 
57
set (CORE_DEPS "gobject-2.0;glib-2.0;gio-2.0;gio-unix-2.0;libsoup-2.4;gee-0.8;libgnome-menu-3.0;json-glib-1.0;${UNITY_DEPS};")
58
58
set (UI_DEPS "gtk+-3.0>=3.10.0;granite;${ZEITGEIST_DEPS};")
59
59
 
60
60
find_package (PkgConfig)
74
74
    src/Backend/DBusService.vala
75
75
    src/Backend/App.vala
76
76
    src/Backend/RelevancyService.vala
 
77
    src/Backend/SynapseSearch.vala
77
78
    src/Widgets/AppEntry.vala
78
79
    src/Widgets/Grid.vala
 
80
    src/Widgets/LargeSearchEntry.vala
79
81
    src/Widgets/Switcher.vala
80
82
    src/Widgets/SearchView.vala
81
83
    src/Widgets/SearchItem.vala
84
86
PACKAGES
85
87
    ${CORE_DEPS}
86
88
    ${UI_DEPS}
 
89
    synapse-core
 
90
    synapse-plugins
87
91
CUSTOM_VAPIS
88
92
    vapi/config.vapi
89
93
OPTIONS
90
94
    --thread
 
95
    --vapidir=${CMAKE_BINARY_DIR}/lib/synapse-core
 
96
    --vapidir=${CMAKE_BINARY_DIR}/lib/synapse-plugins
91
97
    -g
92
98
    ${UNITY_OPTIONS}
93
99
    ${ZEITGEIST_OPTIONS}
94
100
)
95
101
 
 
102
include_directories(${CMAKE_BINARY_DIR}/lib/synapse-core)
 
103
include_directories(${CMAKE_BINARY_DIR}/lib/synapse-plugins)
 
104
 
 
105
add_subdirectory(lib/synapse-core)
 
106
add_subdirectory(lib/synapse-plugins)
 
107
 
96
108
# Comment this out to enable C compiler warnings
97
109
add_definitions (-w)
98
110
 
101
113
link_directories (${DEPS_LIBRARY_DIRS})
102
114
 
103
115
add_executable (${APPNAME} ${VALA_C})
104
 
target_link_libraries(${APPNAME} m)
 
116
target_link_libraries(${APPNAME} m synapse-core synapse-plugins)
105
117
 
106
118
# Installation
107
119
install (TARGETS ${APPNAME} RUNTIME DESTINATION bin)
114
126
add_schema ("org.pantheon.desktop.slingshot.gschema.xml")
115
127
 
116
128
# Translations
117
 
add_subdirectory (po)
 
 
b'\\ No newline at end of file'
 
129
add_subdirectory (po)
 
130