2012-05-20 17:20:38 +04:00
|
|
|
# Check http://webdev.elementaryos.org/docs/developer-guide/cmake for documentation
|
|
|
|
|
|
|
|
project (gala)
|
|
|
|
cmake_minimum_required (VERSION 2.8)
|
|
|
|
cmake_policy (VERSION 2.6)
|
|
|
|
|
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/vala)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Base bits
|
|
|
|
#
|
|
|
|
|
|
|
|
enable_testing ()
|
|
|
|
|
|
|
|
set (DATADIR "${CMAKE_INSTALL_PREFIX}/share")
|
|
|
|
set (PKGDATADIR "${DATADIR}/gala")
|
|
|
|
set (GETTEXT_PACKAGE "gala")
|
|
|
|
set (RELEASE_NAME "")
|
2012-09-23 01:09:39 +04:00
|
|
|
set (VERSION "0.1.0")
|
2012-05-20 17:20:38 +04:00
|
|
|
set (VERSION_INFO "Release")
|
|
|
|
set (CMAKE_C_FLAGS "-ggdb")
|
|
|
|
set (PREFIX ${CMAKE_INSTALL_PREFIX})
|
|
|
|
set (DOLLAR "$")
|
2012-06-09 00:38:08 +04:00
|
|
|
set (GALAVALAFLAGS "")
|
2012-05-20 17:20:38 +04:00
|
|
|
|
2012-09-23 01:09:39 +04:00
|
|
|
set(CPACK_SOURCE_GENERATOR "TBZ2")
|
|
|
|
set(CPACK_SOURCE_PACKAGE_FILE_NAME "${CMAKE_PROJECT_NAME}-${VERSION}")
|
|
|
|
set(CPACK_SOURCE_IGNORE_FILES "/build/;/.bzr/;~$;.bzrignore;${CPACK_SOURCE_IGNORE_FILES}")
|
|
|
|
include(CPack)
|
|
|
|
add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source)
|
|
|
|
|
2012-05-20 17:20:38 +04:00
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
|
|
|
|
|
|
|
configure_file (${CMAKE_SOURCE_DIR}/src/Config.vala.cmake ${CMAKE_BINARY_DIR}/src/Config.vala)
|
|
|
|
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
|
|
|
|
|
|
|
|
find_package(PkgConfig)
|
2012-07-29 04:08:45 +04:00
|
|
|
pkg_check_modules(DEPS REQUIRED libmutter granite clutter-1.0 clutter-gtk-1.0 libbamf3 xfixes gee-1.0 libplank)
|
2012-05-20 17:20:38 +04:00
|
|
|
|
2012-08-23 14:03:20 +04:00
|
|
|
pkg_check_modules(MUTTER36 QUIET libmutter>=3.5.3)
|
2012-06-09 00:38:08 +04:00
|
|
|
if (MUTTER36_FOUND)
|
|
|
|
set (GALAVALAFLAGS "--define=HAS_MUTTER36")
|
|
|
|
endif (MUTTER36_FOUND)
|
|
|
|
|
2012-05-20 17:20:38 +04:00
|
|
|
add_definitions(${DEPS_CFLAGS})
|
|
|
|
|
|
|
|
link_libraries(${DEPS_LIBRARIES})
|
|
|
|
link_directories(${DEPS_LIBRARY_DIRS})
|
|
|
|
|
|
|
|
find_package(Vala REQUIRED)
|
|
|
|
include(ValaVersion)
|
2012-08-30 22:11:29 +04:00
|
|
|
ensure_vala_version("0.16.1" MINIMUM)
|
2012-05-20 17:20:38 +04:00
|
|
|
|
|
|
|
include(ValaPrecompile)
|
|
|
|
vala_precompile(VALA_C
|
2012-07-29 21:46:55 +04:00
|
|
|
src/DBus.vala
|
2012-06-01 01:17:10 +04:00
|
|
|
src/Main.vala
|
2012-07-23 19:51:59 +04:00
|
|
|
src/Plugin.vala
|
2012-06-01 01:17:10 +04:00
|
|
|
src/Settings.vala
|
|
|
|
src/TextShadowEffect.vala
|
2012-07-23 19:51:59 +04:00
|
|
|
src/Utils.vala
|
2012-08-07 01:03:11 +04:00
|
|
|
src/Zooming.vala
|
2012-07-23 19:51:59 +04:00
|
|
|
src/Widgets/AppIcon.vala
|
2012-08-25 11:31:15 +04:00
|
|
|
src/Widgets/WindowOverview.vala
|
2012-05-22 18:44:37 +04:00
|
|
|
src/Widgets/WindowSwitcher.vala
|
2012-08-27 01:26:06 +04:00
|
|
|
src/Widgets/WindowThumb.vala
|
2012-06-17 02:55:16 +04:00
|
|
|
src/Widgets/WorkspaceThumb.vala
|
2012-07-23 19:51:59 +04:00
|
|
|
src/Widgets/WorkspaceView.vala
|
2012-05-20 17:20:38 +04:00
|
|
|
${CMAKE_BINARY_DIR}/src/Config.vala
|
|
|
|
PACKAGES
|
|
|
|
granite
|
2012-08-23 14:03:20 +04:00
|
|
|
libbamf3
|
2012-05-20 17:20:38 +04:00
|
|
|
libmutter
|
2012-07-29 04:08:45 +04:00
|
|
|
plank
|
2012-05-22 18:44:37 +04:00
|
|
|
clutter-gtk-1.0
|
2012-05-29 03:15:49 +04:00
|
|
|
gdk-x11-3.0
|
2012-05-29 17:38:49 +04:00
|
|
|
gdesktopenums-3.0
|
|
|
|
xfixes-4.0
|
2012-05-20 17:20:38 +04:00
|
|
|
OPTIONS
|
2012-06-27 15:17:19 +04:00
|
|
|
-g
|
2012-05-20 17:20:38 +04:00
|
|
|
--vapidir=${CMAKE_CURRENT_SOURCE_DIR}/vapi/
|
2012-06-09 00:38:08 +04:00
|
|
|
${GALAVALAFLAGS}
|
2012-05-20 17:20:38 +04:00
|
|
|
)
|
|
|
|
|
|
|
|
#add_subdirectory (po)
|
|
|
|
|
2012-05-31 18:07:43 +04:00
|
|
|
include(GSettings)
|
|
|
|
add_schema ("data/org.pantheon.desktop.gala.gschema.xml")
|
2012-05-20 17:20:38 +04:00
|
|
|
|
|
|
|
add_executable(gala ${VALA_C})#src/main.c)
|
|
|
|
|
|
|
|
install(TARGETS gala RUNTIME DESTINATION bin)
|
2012-06-01 01:17:10 +04:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/gala.desktop DESTINATION share/applications)
|
2012-07-18 15:33:36 +04:00
|
|
|
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/data/gala.css DESTINATION ${PKGDATADIR})
|