Skip to content

Commit

Permalink
include libev in source
Browse files Browse the repository at this point in the history
Signed-off-by: xiehuc <[email protected]>
  • Loading branch information
xiehuc committed Jul 11, 2013
1 parent d79bbf2 commit 92d4b8f
Show file tree
Hide file tree
Showing 15 changed files with 6,766 additions and 8 deletions.
Empty file modified cmake/FindEV.cmake
100755 → 100644
Empty file.
Empty file modified cmake/FindSqlite3.cmake
100755 → 100644
Empty file.
6 changes: 2 additions & 4 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ set(LWQQ_HEADER
type.h
utility.h
)
set(OTHER_LIB
)
add_definitions(-Wall )

include_directories(
Expand All @@ -53,10 +51,10 @@ if(UNIX)
endif(UNIX)

if(WIN32)
set(LWQQ_LIST ${LWQQ_LIST} win32.c libev/ev.c libev/event.c)
set(LWQQ_LIST ${LWQQ_LIST} win32.c ../libev/ev.c ../libev/event.c)
set(LWQQ_OTHER_LIBS ${LWQQ_OTHER_LIBS} ws2_32)
add_definitions(-DEV_STANDALONE)
include_directories(libev)
include_directories(../libev)
endif(WIN32)

add_library(lwqq SHARED
Expand Down
3 changes: 3 additions & 0 deletions lib/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
#define LWQQ_INTERNAL_H_H
#include "type.h"
#include "json.h"
#ifdef WIN32
#include "win32.h"
#endif

#ifndef LWQQ_ENABLE_SSL
#define LWQQ_ENABLE_SSL 0
Expand Down
1 change: 1 addition & 0 deletions lib/lwdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include "logger.h"
#include "swsqlite.h"
#include "lwdb.h"
#include "internal.h"

#define DB_PATH "/tmp/lwqq"

Expand Down
6 changes: 2 additions & 4 deletions lib/type.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/**
/**
* @file type.h
* @author mathslinux <[email protected]>
* @date Sun May 20 22:24:30 2012
Expand All @@ -15,9 +15,7 @@
#include <stdarg.h>
#include "queue.h"
#include "vplist.h"
#ifdef WIN32
#include "win32.h"
#endif

#define LWQQ_MAGIC 0x4153

#define USE_MSG_THREAD 1
Expand Down
2 changes: 2 additions & 0 deletions lib/win32.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ double drand48(void);

int pipe (int filedes [2]);

#define mkdir(a,b) mkdir(a)

#endif
Loading

0 comments on commit 92d4b8f

Please sign in to comment.