1
find_package(Vala REQUIRED)
3
ensure_vala_version("0.16.0" MINIMUM)
4
include(ValaPrecompile)
5
set(DATADIR "${CMAKE_INSTALL_PREFIX}/share")
6
set(PKG_DATADIR "${CMAKE_INSTALL_PREFIX}/share/beatbox")
7
set(ICON_FOLDER "${CMAKE_INSTALL_PREFIX}/share/beatbox/icons/hicolor")
8
set(GETTEXT_PACKAGE "beatbox")
9
set(RELEASE_NAME "Acolyte")
11
set(VERSION_INFO "Pre-Release")
12
configure_file(${CMAKE_SOURCE_DIR}/src/config.h.cmake ${CMAKE_BINARY_DIR}/src/config.h)
13
add_definitions(-include config.h)
15
vala_precompile(VALA_C
16
${CMAKE_SOURCE_DIR}/src/config.vapi
19
Core/LibraryWindow.vala
20
Core/LibraryManager.vala
21
Core/FileOperator.vala
27
Lastfm/ArtistInfo.vala
28
Lastfm/SimilarMedia.vala
29
Devices/DeviceManager.vala
31
Devices/iPodDevice.vala
32
Devices/AndroidDevice.vala
33
Devices/CDRomDevice.vala
34
Devices/DevicePreferences.vala
35
Objects/TreeViewSetup.vala
36
Objects/SmartQuery.vala
37
Objects/MediaInfo.vala
38
Objects/SmartPlaylist.vala
39
Objects/LyricFetcher.vala
40
Objects/SoundMenuIntegration.vala
43
Objects/MediaKeyListener.vala
46
Objects/PodcastManager.vala
48
Widgets/TopDisplay.vala
49
Widgets/WarningLabel.vala
50
Widgets/SimpleOptionChooser.vala
51
Widgets/PresetList.vala
53
Widgets/RatingWidget.vala
54
Widgets/SpaceWidget.vala
55
Widgets/StatusBar.vala
56
Widgets/SearchSuggester.vala
57
CellRenderers/SmartAlbumRenderer.vala
58
CellRenderers/CellDataFunctionHelper.vala
59
DataBase/DataBaseManager.vala
60
DataBase/DataBaseUpdater.vala
63
Store/SearchResult.vala
66
Store/Widgets/ArtistView.vala
67
Store/Widgets/IconView.vala
68
Store/Widgets/SearchResultsPage.vala
69
Store/Widgets/TrackList.vala
70
Store/Widgets/ReleaseRotator.vala
71
Store/Widgets/TagLabel.vala
72
Store/Widgets/StoreView.vala
73
Store/Widgets/AlbumView.vala
74
Store/Widgets/ObjectList.vala
75
Store/Widgets/SearchList.vala
76
Store/Widgets/HomeView.vala
77
Store/Widgets/TagGroup.vala
86
GStreamer/Equalizer.vala
87
GStreamer/Pipeline.vala
88
GStreamer/CDRipper.vala
89
GStreamer/GStreamerTagger.vala
90
GStreamer/ReplayGain.vala
91
GStreamer/Streamer.vala
93
# Views/ContentView.vala
94
Views/DeviceSummaryWidget.vala
96
Views/SideTreeView.vala
97
Views/SimilarMediaView.vala
98
Wrappers/ViewWrapper.vala
99
Wrappers/MusicViewWrapper.vala
100
Wrappers/PodcastViewWrapper.vala
101
Wrappers/StationViewWrapper.vala
102
Wrappers/DeviceViewWrapper.vala
103
Wrappers/SimilarViewWrapper.vala
105
Lists/FastListModel.vala
106
Lists/GenericList.vala
108
Lists/PodcastList.vala
111
Grids/FastGridModel.vala
112
Grids/GenericGrid.vala
114
Windows/EqualizerWindow.vala
115
Windows/SmartPlaylistEditor.vala
116
Windows/PreferencesWindow.vala
117
Windows/InstallGstreamerPluginsDialog.vala
118
Windows/SongEditor.vala
119
Windows/PodcastEditor.vala
120
Windows/StationEditor.vala
121
Windows/PlaylistNameWindow.vala
122
Windows/FileNotFoundDialog.vala
123
Windows/RemoveFilesDialog.vala
124
Windows/NotImportedWindow.vala
125
Windows/AddPodcastWindow.vala
126
Windows/SetMusicFolderConfirmation.vala
127
Windows/TransferFromDeviceDialog.vala
128
Windows/SyncWarningDialog.vala
135
gstreamer-interfaces-0.10
136
gstreamer-pbutils-0.10
151
--vapidir=${CMAKE_SOURCE_DIR}/vapi
152
--vapidir=${CMAKE_BINARY_DIR}/core/
159
include_directories(${CMAKE_BINARY_DIR}/core)
160
add_executable(beatbox ${VALA_C})
161
link_directories(${ZEITGEIST_LIBRARY_DIRS} ${SQLHEAVY_LIBRARY_DIRS} ${INDICATE_LIBRARY_DIRS} ${DBUS_MENU_LIBRARY_DIRS} ${DEPS_LIBRARY_DIRS})
162
add_definitions(${DEPS_CFLAGS} ${ZEITGEIST_CFLAGS} ${INDICATE_CFLAGS} ${DBUS_MENU_CFLAGS} ${SQLHEAVY_CFLAGS})
163
target_link_libraries(beatbox ${DEPS_LIBRARIES} ${ZEITGEIST_LIBRARIES} ${DBUS_MENU_LIBRARIES} ${SQLHEAVY_LIBRARIES} ${INDICATE_LIBRARIES})
164
target_link_libraries(beatbox beatbox-core)
165
install(TARGETS beatbox RUNTIME DESTINATION bin)