Permalink
Browse files

Problem: zyre is used in production thus API should be stable

Solution: Promote zyre api to stable.
  • Loading branch information...
1 parent 5c957a1 commit a2c9f17c318b872a683fa22f27686f59aaa86ce6 @sappo sappo committed Oct 31, 2016
Showing with 145 additions and 587 deletions.
  1. +18 −23 CMakeLists.txt
  2. +1 −1 api/zyre.api
  3. +1 −1 api/zyre_event.api
  4. +46 −368 bindings/ruby/lib/zyre/ffi.rb
  5. +15 −2 configure.ac
  6. +22 −40 doc/zyre.doc
  7. +22 −40 doc/zyre.txt
  8. +5 −17 doc/zyre_event.doc
  9. +5 −17 doc/zyre_event.txt
  10. +2 −36 include/zyre.h
  11. +2 −16 include/zyre_event.h
  12. +0 −9 include/zyre_library.h
  13. +4 −13 src/Makemodule.am
  14. +2 −4 src/zyre_selftest.c
View
@@ -22,7 +22,18 @@ set(pkg_config_libs_private "")
########################################################################
# options
########################################################################
-OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
+if (NOT CMAKE_BUILD_TYPE)
+ if (EXISTS "${SOURCE_DIR}/.git")
+ set (CMAKE_BUILD_TYPE Debug)
+ else ()
+ set (CMAKE_BUILD_TYPE Release)
+ endif ()
+endif ()
+if (${CMAKE_BUILD_TYPE} STREQUAL "Debug")
+ OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" ON)
+else ()
+ OPTION (ENABLE_DRAFTS "Build and install draft classes and methods" OFF)
+endif ()
IF (ENABLE_DRAFTS)
ADD_DEFINITIONS (-DZYRE_BUILD_DRAFT_API)
ENDIF (ENABLE_DRAFTS)
@@ -108,19 +119,14 @@ ENDIF (CZMQ_FOUND)
########################################################################
set (zyre_headers
include/zyre_library.h
+ include/zyre.h
+ include/zyre_event.h
src/zre_msg.h
src/zyre_peer.h
src/zyre_group.h
src/zyre_node.h
)
-IF (ENABLE_DRAFTS)
- list(APPEND zyre_headers
- include/zyre.h
- include/zyre_event.h
- )
-ENDIF (ENABLE_DRAFTS)
-
source_group ("Header Files" FILES ${zyre_headers})
install(FILES ${zyre_headers} DESTINATION include)
@@ -129,19 +135,13 @@ install(FILES ${zyre_headers} DESTINATION include)
########################################################################
include_directories("${SOURCE_DIR}/src" "${SOURCE_DIR}/include")
set (zyre_sources
+ src/zyre.c
+ src/zyre_event.c
src/zre_msg.c
src/zyre_peer.c
src/zyre_group.c
src/zyre_node.c
)
-
-IF (ENABLE_DRAFTS)
- list (APPEND zyre_sources
- src/zyre.c
- src/zyre_event.c
- )
-ENDIF (ENABLE_DRAFTS)
-
source_group("Source Files" FILES ${zyre_sources})
if (NOT DEFINED BUILD_SHARED_LIBS)
SET(BUILD_SHARED_LIBS ON)
@@ -294,19 +294,14 @@ if(UNIX)
endif()
set(TEST_CLASSES
+ zyre
+ zyre_event
zre_msg
zyre_peer
zyre_group
zyre_node
)
-IF (ENABLE_DRAFTS)
- list (APPEND TEST_CLASSES
- zyre
- zyre_event
- )
-ENDIF (ENABLE_DRAFTS)
-
foreach(TEST_CLASS ${TEST_CLASSES})
add_test(
NAME ${TEST_CLASS}
View
@@ -1,4 +1,4 @@
-<class name = "zyre">
+<class name = "zyre" state = "stable">
<!--
Copyright (c) the Contributors as noted in the AUTHORS file.
View
@@ -1,4 +1,4 @@
-<class name = "zyre event">
+<class name = "zyre event" state = "stable">
<!--
Copyright (c) the Contributors as noted in the AUTHORS file.
Oops, something went wrong.

0 comments on commit a2c9f17

Please sign in to comment.