Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
Move private headers into include/uv-private
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Aug 31, 2011
1 parent 1408ac4 commit b47c474
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -24,7 +24,7 @@ ifdef MSVC
uname_S := MINGW
endif

CPPFLAGS += -Iinclude
CPPFLAGS += -Iinclude -Iinclude/uv-private

CARES_OBJS =
CARES_OBJS += src/ares/ares__close_sockets.o
Expand Down
8 changes: 4 additions & 4 deletions config-unix.mk
Expand Up @@ -89,16 +89,16 @@ uv.a: src/uv-unix.o src/unix/fs.o src/uv-common.o src/uv-platform.o src/unix/ev/
$(AR) rcs uv.a src/uv-unix.o src/unix/fs.o src/uv-platform.o src/uv-common.o src/unix/uv-eio.o src/unix/ev/ev.o \
src/unix/eio/eio.o $(CARES_OBJS)

src/uv-platform.o: src/unix/$(UV_OS_FILE) include/uv.h include/uv-unix.h
src/uv-platform.o: src/unix/$(UV_OS_FILE) include/uv.h include/uv-private/uv-unix.h
$(CC) $(CSTDFLAG) $(CPPFLAGS) $(CFLAGS) -c src/unix/$(UV_OS_FILE) -o src/uv-platform.o

src/uv-unix.o: src/uv-unix.c include/uv.h include/uv-unix.h src/unix/internal.h
src/uv-unix.o: src/uv-unix.c include/uv.h include/uv-private/uv-unix.h src/unix/internal.h
$(CC) $(CSTDFLAG) $(CPPFLAGS) -Isrc $(CFLAGS) -c src/uv-unix.c -o src/uv-unix.o

src/unix/fs.o: src/unix/fs.c include/uv.h include/uv-unix.h src/unix/internal.h
src/unix/fs.o: src/unix/fs.c include/uv.h include/uv-private/uv-unix.h src/unix/internal.h
$(CC) $(CSTDFLAG) $(CPPFLAGS) -Isrc/ $(CFLAGS) -c src/unix/fs.c -o src/unix/fs.o

src/uv-common.o: src/uv-common.c include/uv.h include/uv-unix.h
src/uv-common.o: src/uv-common.c include/uv.h include/uv-private/uv-unix.h
$(CC) $(CSTDFLAG) $(CPPFLAGS) $(CFLAGS) -c src/uv-common.c -o src/uv-common.o

src/unix/ev/ev.o: src/unix/ev/ev.c
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions include/uv.h
Expand Up @@ -67,9 +67,9 @@ typedef struct uv_fs_s uv_fs_t;
typedef struct uv_work_s uv_work_t;

#if defined(__unix__) || defined(__POSIX__) || defined(__APPLE__)
# include "uv-unix.h"
# include "uv-private/uv-unix.h"
#else
# include "uv-win.h"
# include "uv-private/uv-win.h"
#endif


Expand Down
13 changes: 7 additions & 6 deletions uv.gyp
Expand Up @@ -5,6 +5,7 @@
'type': '<(library)',
'include_dirs': [
'include',
'include/uv-private',
'src/',
],
'direct_dependent_settings': {
Expand Down Expand Up @@ -94,8 +95,8 @@
'_GNU_SOURCE',
],
'sources': [
'include/tree.h',
'include/uv-win.h',
'include/uv-private/tree.h',
'include/uv-private/uv-win.h',
'src/ares/config_win32/ares_config.h',
'src/win/async.c',
'src/win/cares.c',
Expand Down Expand Up @@ -136,10 +137,10 @@
'-Wno-unused-parameter'
],
'sources': [
'include/eio.h',
'include/ev.h',
'include/ngx-queue.h',
'include/uv-unix.h',
'include/uv-private/eio.h',
'include/uv-private/ev.h',
'include/uv-private/ngx-queue.h',
'include/uv-private/uv-unix.h',
'src/uv-unix.c',
'src/unix/uv-eio.c',
'src/unix/uv-eio.h',
Expand Down

0 comments on commit b47c474

Please sign in to comment.