summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Spilsbury <sam.spilsbury@canonical.com>2010-12-07 00:47:32 +0800
committerSam Spilsbury <sam.spilsbury@canonical.com>2010-12-07 00:47:32 +0800
commite378acbe31a3e27f813e1e822c152c543069ba08 (patch)
treed5a0117e7df1f6e3d906fce8dd56faac9cd04f41
parentacf74c9a84ddb678d343ea3ca833f0882401eb21 (diff)
downloadunity-window-decorator-e378acbe31a3e27f813e1e822c152c543069ba08.tar.gz
unity-window-decorator-e378acbe31a3e27f813e1e822c152c543069ba08.tar.bz2
Rename to unity-window-decorator
-rw-r--r--CMakeLists.txt10
-rw-r--r--src/CMakeLists.txt45
2 files changed, 25 insertions, 30 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea2aa85..ebfb982 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-project (gtk-window-decorator)
+project (unity-window-decorator)
find_package (Compiz REQUIRED)
@@ -19,20 +19,20 @@ set (COMPIZ_VERSION_MICRO 2)
set (COMPIZ_VERSION_MACRO 1)
set (VERSION ${COMPIZ_VERSION_MAJOR}.${COMPIZ_VERSION_MINOR}.${COMPIZ_VERSION_MICRO}.${COMPIZ_VERSION_MACRO})
-option (BUILD_GTK "Build GTK window decorator" 1)
-option (BUILD_METACITY "Gtk-window-decorator metacity theme support" 1)
+option (BUILD_UNITY "Build Unity window decorator" 1)
+option (BUILD_METACITY "Unity-window-decorator metacity theme support" 1)
compiz_set (USE_METACITY ${BUILD_METACITY})
add_subdirectory (src)
-compiz_print_configure_header ("Compiz GTK Window Decorator")
+compiz_print_configure_header ("Compiz Unity Window Decorator")
compiz_color_message ("\n${_escape}[4mFeatures:${_escape}[0m\n")
compiz_print_result_message ("Metacity Theme Support" USE_METACITY)
compiz_print_configure_footer ()
compiz_add_uninstall ()
-compiz_package_generation ("Compiz GTK Window Decorator")
+compiz_package_generation ("Compiz Unity Window Decorator")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 360b65a..9dca40f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -23,11 +23,11 @@ function (compiz_install_gconf_schema _src _dst)
)
endfunction ()
-set (USE_GCONF_GTK_WINDOW_DECORATOR 1 CACHE BOOL "Install GConf schemas for GTK Window Decorator")
+set (USE_GCONF_UNITY_WINDOW_DECORATOR 1 CACHE BOOL "Install GConf schemas for Unity Window Decorator")
-if (BUILD_GTK)
+if (BUILD_UNITY)
- pkg_check_modules (GTK_WINDOW_DECORATOR
+ pkg_check_modules (UNITY_WINDOW_DECORATOR
libdecoration
gconf-2.0
xrender>=0.8.4
@@ -35,10 +35,10 @@ if (BUILD_GTK)
libwnck-1.0
pangocairo
)
- if (GTK_WINDOW_DECORATOR_FOUND)
+ if (UNITY_WINDOW_DECORATOR_FOUND)
include (CheckFunctionExists)
- set (CMAKE_REQUIRED_FLAGS ${GTK_WINDOW_DECORATOR_CFLAGS})
- set (CMAKE_REQUIRED_LIBRARIES ${GTK_WINDOW_DECORATOR_LIBRARIES})
+ set (CMAKE_REQUIRED_FLAGS ${UNITY_WINDOW_DECORATOR_CFLAGS})
+ set (CMAKE_REQUIRED_LIBRARIES ${UNITY_WINDOW_DECORATOR_LIBRARIES})
list (FIND CMAKE_REQUIRED_FLAGS "-D_REENTRANT" REENTRANT_INDEX)
if (REENTRANT_INDEX)
list (REMOVE_AT CMAKE_REQUIRED_FLAGS REENTRANT_INDEX)
@@ -58,7 +58,6 @@ if (BUILD_GTK)
compiz_pkg_check_modules (HAVE_METACITY_2_17_0 libmetacity-private>=2.17.0)
compiz_pkg_check_modules (HAVE_METACITY_2_23_2 libmetacity-private>=2.23.2)
else (METACITY_FOUND)
- message ("could not find metacity")
compiz_set (USE_METACITY 0)
endif (METACITY_FOUND)
endif (BUILD_METACITY)
@@ -74,7 +73,7 @@ if (BUILD_GTK)
include_directories (
${CMAKE_CURRENT_BINARY_DIR}
- ${GTK_WINDOW_DECORATOR_INCLUDE_DIRS}
+ ${UNITY_WINDOW_DECORATOR_INCLUDE_DIRS}
${METACITY_INCLUDE_DIRS}
${GCONF_INCLUDE_DIRS}
${DBUS_GLIB_INCLUDE_DIRS}
@@ -87,13 +86,11 @@ if (BUILD_GTK)
)
link_directories (
- ${GTK_WINDOW_DECORATOR_LIBRARY_DIRS}
+ ${UNITY_WINDOW_DECORATOR_LIBRARY_DIRS}
${COMPIZ_LINK_DIRS}
)
- if (USE_GCONF_GTK_WINDOW_DECORATOR)
-
- message ("using teh gconfs")
+ if (USE_GCONF_UNITY_WINDOW_DECORATOR)
if (NOT COMPIZ_INSTALL_GCONF_SCHEMA_DIR)
set (SCHEMADIR "${CMAKE_INSTALL_PREFIX}/share/gconf/schemas")
@@ -108,13 +105,11 @@ if (BUILD_GTK)
${gwd_schema}
)
- message ("schemadir is " ${SCHEMADIR})
-
compiz_install_gconf_schema (${CMAKE_CURRENT_BINARY_DIR}/gwd.schemas ${SCHEMADIR})
- endif (USE_GCONF_GTK_WINDOW_DECORATOR)
+ endif (USE_GCONF_UNITY_WINDOW_DECORATOR)
- add_executable (gtk-window-decorator
+ add_executable (unity-window-decorator
gtk-window-decorator.c
blurprops.c
decorprops.c
@@ -139,29 +134,29 @@ if (BUILD_GTK)
endif (USE_METACITY)
set_target_properties (
- gtk-window-decorator PROPERTIES
+ unity-window-decorator PROPERTIES
INSTALL_RPATH_USE_LINK_PATH 0
- COMPILE_FLAGS ${GTK_WINDOW_DECORATOR_CFLAGS}
+ COMPILE_FLAGS ${UNITY_WINDOW_DECORATOR_CFLAGS}
)
- target_link_libraries (gtk-window-decorator
- ${GTK_WINDOW_DECORATOR_LIBRARIES}
+ target_link_libraries (unity-window-decorator
+ ${UNITY_WINDOW_DECORATOR_LIBRARIES}
${GCONF_LIBRARIES}
${DBUS_GLIB_LIBRARIES}
${metacitylibs}
)
install (
- TARGETS gtk-window-decorator
+ TARGETS unity-window-decorator
DESTINATION ${COMPIZ_DESTDIR}${exec_prefix}
RUNTIME DESTINATION bin
)
- else (GTK_WINDOW_DECORATOR_FOUND)
- set (USE_GTK 0)
- endif (GTK_WINDOW_DECORATOR_FOUND)
+ else (UNITY_WINDOW_DECORATOR_FOUND)
+ set (USE_UNITY 0)
+ endif (UNITY_WINDOW_DECORATOR_FOUND)
-endif (BUILD_GTK)
+endif (BUILD_UNITY)