Permalink
Browse files

add zlib dependent

Signed-off-by: xiehuc <xiehuc@xiehucs-Mac-Pro.local>
  • Loading branch information...
1 parent 15e60de commit 0db5b6aa3a25bce30dff7c3564a5380b9980f9fb xiehuc committed May 25, 2013
Showing with 10 additions and 2 deletions.
  1. +1 −0 CMakeLists.txt
  2. +2 −0 src/CMakeLists.txt
  3. +7 −2 src/qq_types.h
View
1 CMakeLists.txt
@@ -14,6 +14,7 @@ pkg_check_modules(PURPLE REQUIRED purple)
pkg_check_modules(GLIB REQUIRED glib-2.0)
pkg_check_modules(CURL REQUIRED libcurl)
pkg_check_modules(SQLITE REQUIRED sqlite3)
+pkg_check_modules(ZLIB REQUIRED zlib)
#recommand libcurl>=7.22.0
add_definitions(-Wall)
View
2 src/CMakeLists.txt
@@ -36,6 +36,7 @@ ADD_LIBRARY(webqq MODULE
include_directories(
${PURPLE_INCLUDE_DIRS}
${GLIB_INCLUDE_DIRS}
+ ${ZLIB_INCLUDE_DIRS}
liblwqq
${CMAKE_CURRENT_BINARY_DIR}
)
@@ -60,6 +61,7 @@ target_link_libraries(webqq
${PURPLE_LIBRARIES}
${GLIB_LIBRARIES}
${CURL_LIBRARIES}
+ ${ZLIB_LIBRARIES}
)
View
9 src/qq_types.h
@@ -1,8 +1,6 @@
#ifndef QQ_TYPES_H_H
#define QQ_TYPES_H_H
-#include <glib/gi18n.h>
-#include <locale.h>
#include <type.h>
#include <connection.h>
#include "msg.h"
@@ -11,6 +9,13 @@
#include "logger.h"
#include "config.h"
+#ifdef ENABLE_NLS
+#include <glib/gi18n.h>
+#include <locale.h>
+#else
+#define _(s) s
+#endif
+
#define QQ_MAGIC 0x4153
#define QQ_USE_FAST_INDEX 1
#define SUCCESS 0

0 comments on commit 0db5b6a

Please sign in to comment.