Browse Source

updated changelog, cmake

Vladyslav Hrytsenko 6 years ago
parent
commit
3d85ddbc31
2 changed files with 22 additions and 11 deletions
  1. 10 11
      CMakeLists.txt
  2. 12 0
      misc/ChangeLog

+ 10 - 11
CMakeLists.txt

@@ -7,17 +7,16 @@ else()
 	add_definitions(-Wno-error)
 endif()
 
-if (NOT DEFINED ENET_ONLY_CONFIG)
-    include_directories(${PROJECT_SOURCE_DIR}/include)
-    set(INCLUDE_FILES include/enet.h)
-    source_group(include FILES ${INCLUDE_FILES})
+include_directories(${PROJECT_SOURCE_DIR}/include)
 
-    add_library(enet STATIC
-        ${INCLUDE_FILES}
-        ${SOURCE_FILES}
-    )
+if (DEFINED ENET_STATIC)
+    add_definitions(-DENET_IMPLEMENTATION)
+    add_library(enet_static STATIC include/enet.h)
+    target_link_libraries(enet_static winmm ws2_32)
+endif()
 
-    if (MINGW)
-        target_link_libraries(enet winmm ws2_32)
-    endif()
+if (DEFINED ENET_SHARED)
+    add_definitions(-DENET_IMPLEMENTATION -DENET_DLL)
+    add_library(enet STATIC include/enet.h)
+    target_link_libraries(enet winmm ws2_32)
 endif()

+ 12 - 0
misc/ChangeLog

@@ -2,6 +2,18 @@ ENet 2.0.0 (April 22, 2018):
 * changed library format to single header
 * applied project-wide code style change
 * integrated ipv6 changes from @proller
+* changed packet creation to have one less malloc and free per packet. @boardwalk
+* removed enet_packet_resize
+* added timeout disconnect notification event @airtame
+* added total packets sent and lost to enet_peer @airtame
+* force a connect packet not to have extra bytes @pisto
+* enforce mtu while receiving packets, and don't give up receiving if one too big comes through @pisto
+* add metrics for total data send and received @airtame
+* replaced exp backoff time for rel packet timeout with linear @airtame
+* added monotonic time @airtame
+* removed enet_time_set
+* removed a lot of wide platform support code, might bring a lot of issues on older/non-standart platforms
+* removed range coder compression code
 
 ENet 1.3.13 (April 30, 2015):