Kornikopic wrote: > Hello, > > We are two students and we work on creating new alternative interface > for Wengophone-2.1. We will work with GTK+. > > Can somebody help us to compile wengophone-ng with GTK > (src/presentation/gtk) ?
Hi guys,
I have rewritten the FindGTK2.cmake module from scratch for you and
created a patch for the wengophone-2.1 branch. It shows how things need
to be done. The gtk presentation doesn't compile!!! You have to fix the
code or rewrite it ;)
Have you made any progress yet?
>
> Thank you very much.
>
Cheers,
-- andreas
--
http://www.cynapses.org/ - cybernetic synapses
--- /dev/null 2006-11-25 12:43:29.000000000 +0100
+++ libs/3rdparty/gtk2/CMakeLists.txt 2007-02-05 15:29:59.000000000 +0100
@@ -0,0 +1,5 @@
+if (NOT MSVC)
+ include(CMakeLists-unix.txt)
+else (NOT MSVC)
+ include(CMakeLists-msvc.txt)
+endif (NOT MSVC)
--- /dev/null 2006-11-25 12:43:29.000000000 +0100
+++ libs/3rdparty/gtk2/CMakeLists-msvc.txt 2007-03-03 14:55:24.000000000 +0100
@@ -0,0 +1,11 @@
+ow_create_project(gtk2)
+
+ow_add_public_libraries(
+ foo
+)
+
+ow_add_public_include_dirs(
+ ${CMAKE_CURRENT_SOURCE_DIR}/include
+)
+
+ow_copy_dir(${CMAKE_CURRENT_SOURCE_DIR}/binary-lib/msvc/*.dll ${BUILD_DIR})
--- /dev/null 2006-11-25 12:43:29.000000000 +0100
+++ libs/3rdparty/gtk2/CMakeLists-unix.txt 2007-03-03 12:32:19.000000000 +0100
@@ -0,0 +1,9 @@
+if (NOT GTK2_FOUND)
+ find_package(GTK2 REQUIRED)
+endif (NOT GTK2_FOUND)
+
+ow_create_project(gtk2)
+
+ow_use_public_libraries(
+ GTK2
+)
Index: wengophone/src/CMakeLists.txt
===================================================================
--- wengophone/src/CMakeLists.txt (revision 10084)
+++ wengophone/src/CMakeLists.txt (working copy)
@@ -187,7 +187,7 @@
# TODO: test, xpcom, gtk?
subdirs(
- #presentation/gtk
+ presentation/gtk
presentation/qt
#presentation/xpcom
)
--- /dev/null 2006-11-25 12:43:29.000000000 +0100
+++ wengophone/src/presentation/gtk/CMakeLists.txt 2007-03-03 12:39:28.000000000 +0100
@@ -0,0 +1,63 @@
+ow_create_executable(gtkwengophone)
+
+# subdirs(
+# pics/emoticons
+# )
+
+ow_use_private_libraries(
+ owphone
+ owbuildid
+ gtk2
+)
+
+if (MSVC)
+ ow_use_private_libraries(
+ owmemorydump
+ )
+endif (MSVC)
+
+if (SIPWRAPPER_BACKEND_SIPX)
+ ow_add_private_definitions(
+ -DSIPXWRAPPER
+ )
+
+ ow_use_private_libraries(
+ sipxwrapper
+ )
+else (SIPWRAPPER_BACKEND_SIPX)
+if (SIPWRAPPER_BACKEND_PHAPI)
+ ow_add_private_definitions(
+ -DPHAPIWRAPPER
+ )
+
+ ow_use_private_libraries(
+ owphapiwrapper
+ )
+else (SIPWRAPPER_BACKEND_PHAPI)
+if (IMWRAPPER_BACKEND_MULTI)
+ ow_add_private_definitions(
+ -DMULTIIMWRAPPER
+ )
+
+ ow_use_private_libraries(
+ owmultiimwrapper
+ )
+endif (IMWRAPPER_BACKEND_MULTI)
+endif (SIPWRAPPER_BACKEND_PHAPI)
+endif (SIPWRAPPER_BACKEND_SIPX)
+
+ow_add_private_include_dirs(
+ ${CMAKE_CURRENT_BINARY_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}
+)
+
+ow_add_sources(
+ ../main.cpp
+ GtkWengoPhone.cpp
+ GtkWengoPhoneLogger.cpp
+ WidgetFactory.cpp
+ phoneline/GtkPhoneLine.cpp
+)
+
+ow_create_binary(MACOSX_BUNDLE)
+
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Wengophone-devel mailing list [email protected] http://dev.openwengo.com/mailman/listinfo/wengophone-devel
