@fails-components/webtransport 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CMakeLists.txt CHANGED
@@ -19,25 +19,6 @@ set(BUILD_TESTING OFF)
19
19
  set(protobuf_BUILD_PROTOC_BINARIES ON)
20
20
 
21
21
 
22
- IF( NOT WIN32)
23
- IF(APPLE)
24
- IF(DEFINED ENV{LOCALHOMEWBREWICU})
25
- MESSAGE(STATUS "Local homebrew icu detected")
26
- MESSAGE(STATUS $ENV{LOCALHOMEWBREWICU})
27
- SET(ICU_ROOT $ENV{LOCALHOMEWBREWICU})
28
- ELSE()
29
- IF(CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
30
- MESSAGE(STATUS "set icu root local")
31
- SET(ICU_ROOT "/usr/local/opt/icu4c")
32
- ELSE()
33
- MESSAGE(STATUS "set icu root homebrew")
34
- SET(ICU_ROOT "/opt/homebrew/icu4c")
35
- ENDIF()
36
- ENDIF()
37
- set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
38
- ENDIF(APPLE)
39
- find_package(ICU COMPONENTS uc i18n REQUIRED)
40
- ENDIF(NOT WIN32)
41
22
 
42
23
  IF (WIN32)
43
24
  add_compile_definitions(NOMINMAX)
@@ -93,8 +74,6 @@ endif(COMMAND cmake_policy)
93
74
  add_compile_definitions(QUICHE_ENABLE_LIBEVENT)
94
75
 
95
76
 
96
- IF (WIN32)
97
-
98
77
  add_library(icu STATIC
99
78
  #icu
100
79
  third_party/icu/icu4c/source/common/appendable.cpp
@@ -160,10 +139,11 @@ add_library(icu STATIC
160
139
  third_party/icu/icu4c/source/common/utypes.cpp
161
140
  third_party/icu/icu4c/source/common/uvector.cpp
162
141
  third_party/icu/icu4c/source/common/putil.cpp
163
- )
164
- target_include_directories(icu
142
+ )
143
+ target_include_directories(icu
165
144
  PUBLIC third_party/icu/icu4c/source/common
166
- )
145
+ )
146
+ if (WIN32)
167
147
  target_sources(icu PRIVATE
168
148
  third_party/icu/icu4c/source/common/wintz.cpp
169
149
  )
@@ -171,14 +151,18 @@ add_library(icu STATIC
171
151
  #hack since this function is not currently used
172
152
  ICU_DATA_DIR_WINDOWS=""
173
153
  )
174
-
175
- target_compile_definitions(icu
176
- PRIVATE U_DEFINE_FALSE_AND_TRUE=1
177
- U_STATIC_IMPLEMENTATION
178
- U_COMMON_IMPLEMENTATION
154
+ else()
155
+ # fix data problem
156
+ target_sources(icu PRIVATE
157
+ platform/icufix/fakedata.cpp
179
158
  )
159
+ endif()
180
160
 
181
- ENDIF(WIN32)
161
+ target_compile_definitions(icu
162
+ PRIVATE U_DEFINE_FALSE_AND_TRUE=1
163
+ U_STATIC_IMPLEMENTATION
164
+ U_COMMON_IMPLEMENTATION
165
+ )
182
166
 
183
167
  add_library(gquiche STATIC
184
168
  #plattform impl
@@ -989,12 +973,8 @@ PUBLIC ${CMAKE_CURRENT_BINARY_DIR}
989
973
  PUBLIC ${CMAKE_JS_INC}
990
974
  )
991
975
 
992
- IF (WIN32)
993
- target_include_directories(gquiche PUBLIC third_party/icu/icu4c/source/common)
994
- ELSE(WIN32)
995
- include_directories(gquiche PUBLIC ${ICU_INCLUDE_DIRS})
996
- target_link_libraries(gquiche ICU::uc ICU::i18n)
997
- ENDIF(WIN32)
976
+
977
+ target_include_directories(gquiche PUBLIC third_party/icu/icu4c/source/common)
998
978
 
999
979
  target_link_libraries(gquiche
1000
980
  absl::base
@@ -1023,9 +1003,9 @@ if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
1023
1003
  execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
1024
1004
  endif()
1025
1005
 
1026
- IF (WIN32)
1027
- target_link_libraries(gquiche icu)
1028
- ENDIF(WIN32)
1006
+
1007
+ target_link_libraries(gquiche icu)
1008
+
1029
1009
 
1030
1010
  if(APPLE)
1031
1011
  target_compile_definitions (gquiche PRIVATE __APPLE_USE_RFC_3542)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fails-components/webtransport",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A component to add webtransport support (server and client) to node.js using libquiche",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.js",
@@ -0,0 +1,8 @@
1
+ #include "unicode/putil.h"
2
+ #include "unicode/udata.h"
3
+ #include "unicode/uversion.h"
4
+ #include "ucmndata.h"
5
+
6
+ extern "C" const DataHeader U_DATA_API U_ICUDATA_ENTRY_POINT;
7
+
8
+ const DataHeader U_ICUDATA_ENTRY_POINT = { {0,0,0}, {0,0,0,0,0,0,0,0,0}};