ICU-21249 Updating double-conversion for ICU 68

This commit is contained in:
Shane F. Carr 2020-08-26 12:44:13 -05:00
parent d070fdddd1
commit 4767be7f4f
4 changed files with 16 additions and 3 deletions

View file

@ -27,3 +27,5 @@ _deps
*.cmake
*.kdev4
DartConfiguration.tcl
bazel-*

View file

@ -1,5 +1,7 @@
# Bazel(http://bazel.io) BUILD file
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
licenses(["notice"])
exports_files(["LICENSE"])
@ -10,12 +12,11 @@ cc_library(
"double-conversion/bignum.cc",
"double-conversion/bignum-dtoa.cc",
"double-conversion/cached-powers.cc",
"double-conversion/diy-fp.cc",
"double-conversion/double-conversion.cc",
"double-conversion/double-to-string.cc",
"double-conversion/fast-dtoa.cc",
"double-conversion/fixed-dtoa.cc",
"double-conversion/string-to-double.cc",
"double-conversion/strtod.cc",
"double-conversion/utils.h",
],
hdrs = [
"double-conversion/bignum.h",
@ -23,10 +24,13 @@ cc_library(
"double-conversion/cached-powers.h",
"double-conversion/diy-fp.h",
"double-conversion/double-conversion.h",
"double-conversion/double-to-string.h",
"double-conversion/fast-dtoa.h",
"double-conversion/fixed-dtoa.h",
"double-conversion/ieee.h",
"double-conversion/string-to-double.h",
"double-conversion/strtod.h",
"double-conversion/utils.h",
],
linkopts = [
"-lm",

View file

@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.0)
project(double-conversion VERSION 3.1.5)
if(BUILD_SHARED_LIBS AND MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
set(headers
double-conversion/bignum.h
double-conversion/cached-powers.h

View file

@ -18,6 +18,9 @@ set(CCTEST_SRC
add_executable(cctest ${CCTEST_SRC})
target_link_libraries(cctest double-conversion)
if(MSVC)
target_compile_options(cctest PRIVATE /bigobj)
endif()
add_test(NAME test_bignum
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}