Sha256: a9bf5490af7bd72fe9db0c88e101313f9453504ca89cf0f4306bbb741949c518

Contents?: true

Size: 1.16 KB

Versions: 5

Compression:

Stored size: 1.16 KB

Contents

IF(LCB_INSTALL_HEADERS)
  INSTALL(
      FILES
      plugin-libuv.c
      plugin-internal.h
      libuv_compat.h
      DESTINATION
      include/libcouchbase/plugins/io/libuv)

  INSTALL(
      FILES
      libuv_io_opts.h
      DESTINATION
      include/libcouchbase)
ENDIF(LCB_INSTALL_HEADERS)

IF(NOT HAVE_LIBUV OR LCB_NO_PLUGINS OR NOT LCB_BUILD_LIBUV)
    RETURN()
ENDIF()

ADD_LIBRARY(couchbase_libuv SHARED plugin-libuv.c)

# The macros abstracting UV versions dynamically inject special signatures. We
# can't have the compiler whine about that.

# Unfortunately, Older GCC (EL5) barfs at this option.
#IF(CMAKE_COMPILER_IS_GNUCC)
#    SET(_lcbuv_cflags "-Wno-unused-parameters")
#ELSE()
#    SET(_lcbuv_cflags "")
#ENDIF()
SET_TARGET_PROPERTIES(couchbase_libuv
    PROPERTIES
    PREFIX "lib"
    IMPORT_PREFIX "lib"
    COMPILE_FLAGS "${CMAKE_C_FLAGS} ${LCB_CORE_FLAGS} ${_lcbuv_cflags}")

TARGET_LINK_LIBRARIES(couchbase_libuv ${LIBUV_LIBRARIES} couchbase)
INCLUDE_DIRECTORIES(AFTER ${LIBUV_INCLUDE_DIR})
ADD_DEFINITIONS(-DLIBCOUCHBASE_INTERNAL=1)
INSTALL(TARGETS
    couchbase_libuv
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mt-libcouchbase-1.4.03 ext/libcouchbase/plugins/io/libuv/CMakeLists.txt
mt-libcouchbase-1.4.02 ext/libcouchbase/plugins/io/libuv/CMakeLists.txt
mt-libcouchbase-1.4.01 ext/libcouchbase/plugins/io/libuv/CMakeLists.txt
mt-libcouchbase-1.4.0 ext/libcouchbase/plugins/io/libuv/CMakeLists.txt
libcouchbase-1.3.2 ext/libcouchbase/plugins/io/libuv/CMakeLists.txt