grim/guifications2

Parents bd5172c22a03
Children db8d74094c83
The start of moving this to cmake. There's a bunch of build errors with gtk3 so moving to those next
--- a/.hgignore Wed Jan 16 23:35:40 2013 -0600
+++ b/.hgignore Mon May 13 23:34:56 2013 -0500
@@ -2,38 +2,10 @@
*.bz2
*.dll
*.gz
-*.la
-*.lo
-*.loT
-*.o
-*.spec
*.xz
*.zip
.*.swp
-autogen.args
-autom4te.cache
-intltool-*
-aclocal.m4
-configure
-depcomp
-install-sh
-libtool
-local.mak
-ltmain.sh
-Makefile
-Makefile.in
-missing
-mkinstalldirs
-po/*.pot
-po/*.gmo
-po/Makefile.in.in
-po/POTFILES
-po/stamp-it
-stamp-h1
syntax: regexp
-(pre|gf)_config.h(\.in)?$
-config.(guess|log|status|sub)
-^pre_config\.h\.in~?$
-\.deps\/
-\.libs\/
+^build.*\/
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CMakeLists.txt Mon May 13 23:34:56 2013 -0500
@@ -0,0 +1,50 @@
+cmake_minimum_required(VERSION 2.8)
+
+project(guifications2 C)
+
+
+set(GUIFICATIONS_MAJOR_VERSION 2)
+set(GUIFICATIONS_MINOR_VERSION 17)
+set(GUIFICATIONS_MICRO_VERSION 0)
+set(GUIFICATIONS_EXTRA_VERSION dev)
+
+set(GUIFICATIONS_VERSION ${GUIFICATIONS_MAJOR_VERSION}.${GUIFICATIONS_MINOR_VERSION}.${GUIFICATIONS_MICRO_VERSION}${GUIFICATIONS_EXTRA_VERSION})
+
+###############################################################################
+# Dependencies
+###############################################################################
+include(FindPkgConfig)
+
+pkg_check_modules(GLIB REQUIRED glib-2.0>=2.28.0)
+pkg_check_modules(GTK3 REQUIRED gtk+-3.0)
+pkg_check_modules(PURPLE REQUIRED purple-3)
+pkg_check_modules(PIDGIN REQUIRED pidgin-3)
+pkg_check_modules(CAIRO REQUIRED cairo)
+pkg_check_modules(PANGOFT2 REQUIRED pangoft2>=1.1.0)
+
+###############################################################################
+# Build Info
+###############################################################################
+include_directories(
+ ${CMAKE_SOURCE_DIR}
+ ${CMAKE_BINARY_DIR}
+ ${GLIB_INCLUDE_DIRS}
+ ${GTK3_INCLUDE_DIRS}
+ ${PURPLE_INCLUDE_DIRS}
+ ${PIDGIN_INCLUDE_DIRS}
+ ${CAIRO_INCLUDE_DIRS}
+ ${PANGOFT2_INCLUDE_DIRS}
+)
+
+link_directories(
+ ${GLIB_LIBRARY_DIRS}
+ ${GTK3_LIBRARY_DIRS}
+ ${PURPLE_LIBRARY_DIRS}
+ ${PIDGIN_LIBRARY_DIRS}
+ ${CAIRO_LIBRARY_DIRS}
+ ${PANGOFT2_LIBRARY_DIRS}
+)
+
+
+add_subdirectory(src)
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/CMakeLists.txt Mon May 13 23:34:56 2013 -0500
@@ -0,0 +1,69 @@
+set(HEADERS
+ gf_action.h
+ gf_blist.h
+ gf_display.h
+ gf_event.h
+ gf_event_info.h
+ gf_file.h
+ gf_gtk_utils.h
+ gf_internal.h
+ gf_item.h
+ gf_item_icon.h
+ gf_item_image.h
+ gf_item_offset.h
+ gf_item_text.h
+ gf_menu.h
+ gf_notification.h
+ gf_preferences.h
+ gf_stock.h
+ gf_theme.h
+ gf_theme_editor.h
+ gf_theme_info.h
+ gf_theme_ops.h
+ gf_utils.h
+)
+
+set(SOURCES
+ gf_action.c
+ gf_blist.c
+ gf_display.c
+ gf_event.c
+ gf_event_info.c
+ gf_file.c
+ gf_gtk_utils.c
+ gf_item.c
+ gf_item_icon.c
+ gf_item_image.c
+ gf_item_offset.c
+ gf_item_text.c
+ gf_menu.c
+ gf_notification.c
+ gf_preferences.c
+ gf_stock.c
+ gf_theme.c
+ gf_theme_editor.c
+ gf_theme_info.c
+ gf_theme_ops.c
+ gf_utils.c
+ guifications.c
+)
+
+add_library(guifications MODULE
+ ${HEADERS}
+ ${SOURCES}
+)
+set_target_properties(guifications PROPERTIES PREFIX "")
+
+add_definitions(
+ -DGETTEXT_PACKAGE=\"guifications\"
+)
+
+target_link_libraries(guifications
+ ${GLIB_LIBRARIES}
+ ${GTK3_LIBRARIES}
+ ${PURPLE_LIBRARIES}
+ ${PIDGIN_LIBRARIES}
+ ${CAIRO_LIBRARIES}
+ ${PANGOFT2_LIBRARIES}
+)
+