Some attempt to compile it with new vala, failed
[gregoa/zavai.git] / src / CMakeLists.txt
index e89883298fca434756391d8adea9c0a2529feb1e..882e2f331c203d3347fa68713e94c08f77c96459 100644 (file)
@@ -3,24 +3,24 @@ include(../vala.cmake)
 
 set(zavai_version 0.1)
 
-set(packages gtk+-2.0 dbus-glib-1>=0.80 libwnck-1.0>=2.26.0 lua5.1 libomhacks x11 gdk-x11-2.0 libgps gstreamer-0.10)
+set(packages gtk+-2.0 gdk-pixbuf-2.0 dbus-glib-1>=0.80 libwnck-1.0>=2.26.0 libomhacks x11 gdk-x11-2.0 libgps gstreamer-0.10)
 add_packages(ZAVAI ${packages})
 
-set(VALA_PACKAGES ${packages} posix linux-input dbus-extra gtkfisheyelist)
+set(VALA_PACKAGES x11 ${packages} posix linux-input dbus-extra gtkfisheyelist lua)
 set(VFLAGS --vapidir=${zavai_SOURCE_DIR} --vapidir=${gtkfisheyelist_BINARY_DIR})
 add_definitions(-Wall)
 # -Werror 
 
-pkg_check_modules(DKP devkit-power-gobject>=010)
-if (DKP_VERSION)
-  message("-- Using devkit-power-gobject version ${DKP_VERSION}")
-  set(VFLAGS ${VFLAGS} --define=USE_DKP)
-  set(VALA_PACKAGES ${VALA_PACKAGES} devkit-power-gobject)
-  add_definitions(-DUSE_DKP ${DKP_CFLAGS})
-  link_libraries(${DKP_LDFLAGS})
-else()
-  message("-- Not using devkit-power-gobject")
-endif ()
+#pkg_check_modules(DKP upower-glib>=0.9.9)
+#if (DKP_VERSION)
+#  message("-- Using upower-glib version ${DKP_VERSION}")
+#  set(VFLAGS ${VFLAGS} --define=USE_DKP)
+#  set(VALA_PACKAGES ${VALA_PACKAGES} upower-glib)
+#  add_definitions(-DUSE_DKP ${DKP_CFLAGS})
+#  link_libraries(${DKP_LDFLAGS})
+#else()
+#  message("-- Not using upower-glib")
+#endif ()
 
 add_definitions(-DWNCK_I_KNOW_THIS_IS_UNSTABLE -DI_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE -I${gtkfisheyelist_BINARY_DIR} -I${zavai_BINARY_DIR})
 link_libraries(gtkfisheyelist-static)