TDengine/cmake/cmake.options

247 lines
3.4 KiB
Text
Raw Normal View History

2021-10-14 09:22:59 +00:00
# =========================================================
# Deps options
# =========================================================
option(
BUILD_TEST
"If build unit tests using googletest"
OFF
)
IF(${TD_WINDOWS})
MESSAGE("build pthread Win32")
option(
BUILD_PTHREAD
"If build pthread on Windows"
ON
)
MESSAGE("build gnu regex for Windows")
option(
BUILD_GNUREGEX
"If build gnu regex on Windows"
ON
)
2022-03-18 05:23:48 +00:00
MESSAGE("build iconv Win32")
option(
BUILD_WITH_ICONV
"If build iconv on Windows"
ON
)
2022-04-22 01:54:27 +00:00
MESSAGE("build msvcregex Win32")
option(
BUILD_MSVCREGEX
"If build msvcregex on Windows"
ON
)
2022-04-22 01:54:27 +00:00
MESSAGE("build wcwidth Win32")
option(
BUILD_WCWIDTH
"If build wcwidth on Windows"
ON
)
MESSAGE("build wingetopt Win32")
option(
BUILD_WINGETOPT
2022-04-22 01:54:27 +00:00
"If build wingetopt on Windows"
ON
)
option(
2022-07-29 08:36:42 +00:00
TDENGINE_3
"TDengine 3.x for taos-tools"
ON
)
Feature/3.0 geometry (#21037) * Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far. * add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling * change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh * Add a function MakePoint() and introduce a lib geometry * implement sql functions GeomFromText() and AsText() * Use GEOS *_r funcions instead for thread safety * Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT. Add geosWrapper to wrap the basic GEOS functions for TDEngine. * refactor AsText and MakePoint functions to be like GeomFromText * Show WKT when print geometry data in screen Dump hex data when dump geometry data in a file * define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues. * set number of decimals of WKT to 6 * Implement SQL function Intersects() * refactor geometry sql functions * Add geosErrMsgeHandler() to get the GEOS error detail * use threadlocal to instantiate SGeosContext call destroyGeosContext() only if the thread exists * remove SGeosContext *context param for all geometry functions since we use thread local one, so that all caller do not need to know the context. * Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance. * rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn * Add prefix "ST_" for all geometry functions * move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util, so that all unit test tools can compile * Add unit test for geometry lib, only test MakePoint so far * refactor and enhance existing cases in geomFuncTest * implement NULL type and NULL value test for geomFuncTest * add test on geomFromText() * add unit test on AsText() in geomFuncTest * combine some makePointFunction test items * add intersectsFunctionTwoColumns test refactor on callGeomFromTextWrapper functions * enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content * add more cases into intersectsFunction test * Add basic test on geometry in system test * Add ST_GeomFromText and ST_AsText function test in system test on geometry * add ST_Intersects function test in system test on geometry * support to check expectedErrno in system test on geometry * adjust geomTest unit test and geometry system test * add geometry data type and functions in doc english version * implement touchesFunction() in geometry lib refactor geometry relation functions model * separate gemFuncTest into several src files * add unit test on touchesFunction * support sql function ST_Touches() add system test on ST_Touches * add docs for ST_Touches() * Add ST_Contains() * Add ST_Covers() * Add ST_Equals() * add swapAllowed param for geomRelationFunction() read geom2 earlier intead of at doGeosRelation() * Add ST_ContainsProperly() * build on windows * Merge from 3.0 to 3.0_geometry * change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility * change '\\NULL' to 'NULL' back in shellDumpFieldToFile() * add /usr/local/include into include directory * add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 07:36:46 +00:00
option(
BUILD_CRASHDUMP
"If build crashdump on Windows"
Feature/3.0 geometry (#21037) * Add GEOMETRY data type and make sql.c able to parse it. The GEMETRY works like BINARY so far. * add GEOMETRY type into gConvertTypes to fix some issues like DELETE calling * change some test cases to make sure no same timestamp is inserted, and add my smoketest.sh * Add a function MakePoint() and introduce a lib geometry * implement sql functions GeomFromText() and AsText() * Use GEOS *_r funcions instead for thread safety * Handle with TSDB_DATA_TYPE_GEOMETRY when INSERT geometry data by converting WKT. Add geosWrapper to wrap the basic GEOS functions for TDEngine. * refactor AsText and MakePoint functions to be like GeomFromText * Show WKT when print geometry data in screen Dump hex data when dump geometry data in a file * define TYPE_BYTES item for TSDB_DATA_TYPE_GEOMETRY, which casued some strange issues. * set number of decimals of WKT to 6 * Implement SQL function Intersects() * refactor geometry sql functions * Add geosErrMsgeHandler() to get the GEOS error detail * use threadlocal to instantiate SGeosContext call destroyGeosContext() only if the thread exists * remove SGeosContext *context param for all geometry functions since we use thread local one, so that all caller do not need to know the context. * Modify Intersects() to call PreparedIntersects() when one of param is a constant, which has higher performance. * rename prepareFn() to initCtxFn() to avoid confusion with PreparedFn * Add prefix "ST_" for all geometry functions * move getThreadLocalGeosCtx() and destroyThreadLocalGeosCtx() into util, so that all unit test tools can compile * Add unit test for geometry lib, only test MakePoint so far * refactor and enhance existing cases in geomFuncTest * implement NULL type and NULL value test for geomFuncTest * add test on geomFromText() * add unit test on AsText() in geomFuncTest * combine some makePointFunction test items * add intersectsFunctionTwoColumns test refactor on callGeomFromTextWrapper functions * enhance intersectsFunction test to add cases like input constant , NULL type, NULL value, or wrong content * add more cases into intersectsFunction test * Add basic test on geometry in system test * Add ST_GeomFromText and ST_AsText function test in system test on geometry * add ST_Intersects function test in system test on geometry * support to check expectedErrno in system test on geometry * adjust geomTest unit test and geometry system test * add geometry data type and functions in doc english version * implement touchesFunction() in geometry lib refactor geometry relation functions model * separate gemFuncTest into several src files * add unit test on touchesFunction * support sql function ST_Touches() add system test on ST_Touches * add docs for ST_Touches() * Add ST_Contains() * Add ST_Covers() * Add ST_Equals() * add swapAllowed param for geomRelationFunction() read geom2 earlier intead of at doGeosRelation() * Add ST_ContainsProperly() * build on windows * Merge from 3.0 to 3.0_geometry * change macro definition TSDB_DATA_TYPE_GEOMETRY as the last one for compatibility * change '\\NULL' to 'NULL' back in shellDumpFieldToFile() * add /usr/local/include into include directory * add /usr/local/inlcude and /usr/local/lib in cmake.platform for DARWIN
2023-05-24 07:36:46 +00:00
ON
)
2022-07-06 12:47:38 +00:00
ELSEIF (TD_DARWIN_64)
IF(${BUILD_TEST})
2022-06-30 07:54:30 +00:00
add_definitions(-DCOMPILER_SUPPORTS_CXX13)
ENDIF ()
2022-04-22 01:54:27 +00:00
ENDIF ()
2023-05-24 10:26:02 +00:00
option(
BUILD_GEOS
"If build with geos"
2023-06-02 03:17:38 +00:00
ON
2023-05-24 10:26:02 +00:00
)
2022-08-25 10:33:33 +00:00
option(
BUILD_SHARED_LIBS
""
OFF
)
2022-07-29 12:12:16 +00:00
option(
RUST_BINDINGS
"If build with rust-bindings"
ON
)
option(
BUILD_PCRE2
"If build with pcre2"
ON
)
2022-07-28 07:48:56 +00:00
option(
JEMALLOC_ENABLED
"If build with jemalloc"
OFF
)
2022-07-08 03:51:35 +00:00
option(
BUILD_SANITIZER
2022-07-14 05:58:23 +00:00
"If build sanitizer"
2022-07-08 03:51:35 +00:00
OFF
)
2022-05-10 17:53:30 +00:00
option(
BUILD_ADDR2LINE
"If build addr2line"
OFF
)
2021-10-14 09:22:59 +00:00
option(
BUILD_WITH_LEVELDB
"If build with leveldb"
2021-10-14 09:22:59 +00:00
OFF
)
option(
BUILD_WITH_ROCKSDB
"If build with rocksdb"
2023-04-26 09:36:12 +00:00
ON
2021-10-14 09:22:59 +00:00
)
2023-08-14 06:38:28 +00:00
IF(${TD_LINUX})
2023-10-11 06:47:26 +00:00
option(
2023-10-24 08:10:46 +00:00
BUILD_S3
2023-10-11 06:47:26 +00:00
"If build with s3"
ON
)
2023-10-24 08:10:46 +00:00
option(
BUILD_WITH_S3
"If build with s3"
ON
)
2023-10-11 06:47:26 +00:00
option(
BUILD_WITH_COS
"If build with cos"
OFF
)
2023-10-24 08:10:46 +00:00
ENDIF ()
IF(NOT TD_ENTERPRISE)
MESSAGE("switch s3 off with community version")
set(BUILD_S3 OFF)
set(BUILD_WITH_S3 OFF)
set(BUILD_WITH_COS OFF)
ENDIF ()
2023-10-24 08:10:46 +00:00
IF(${BUILD_S3})
IF(${BUILD_WITH_S3})
add_definitions(-DUSE_S3)
2023-10-24 08:10:46 +00:00
option(BUILD_WITH_COS "If build with cos" OFF)
2023-10-11 06:47:26 +00:00
ELSE ()
2023-10-24 08:10:46 +00:00
option(BUILD_WITH_COS "If build with cos" ON)
2023-08-04 05:31:00 +00:00
2023-08-14 06:38:28 +00:00
ENDIF ()
2023-10-24 08:10:46 +00:00
ELSE ()
option(BUILD_WITH_S3 "If build with s3" OFF)
option(BUILD_WITH_COS "If build with cos" OFF)
2023-10-11 06:47:26 +00:00
ENDIF ()
2021-12-01 07:02:32 +00:00
option(
BUILD_WITH_SQLITE
"If build with sqlite"
2021-12-08 08:27:56 +00:00
OFF
2021-12-01 07:02:32 +00:00
)
2022-05-14 09:16:57 +00:00
option(
BUILD_WITH_BDB
"If build with BDB"
2022-05-14 09:16:57 +00:00
OFF
)
2021-10-14 09:22:59 +00:00
option(
BUILD_WITH_LUCENE
"If build with lucene"
off
2021-10-15 02:27:42 +00:00
)
2021-12-18 10:16:07 +00:00
2021-11-08 03:43:39 +00:00
option(
BUILD_WITH_NURAFT
"If build with NuRaft"
2021-11-08 03:43:39 +00:00
OFF
)
2021-12-20 07:05:01 +00:00
option(
BUILD_WITH_UV
"If build with libuv"
ON
2021-12-20 07:05:01 +00:00
)
2022-01-26 07:30:43 +00:00
option(
BUILD_WITH_UV_TRANS
"If build with libuv_trans "
ON
2022-01-26 07:30:43 +00:00
)
IF(${TD_LINUX} MATCHES TRUE)
2021-10-15 02:27:42 +00:00
option(
BUILD_DEPENDENCY_TESTS
"If build dependency tests"
2021-12-01 09:10:40 +00:00
ON
2021-11-09 07:20:35 +00:00
)
ENDIF ()
2021-11-09 07:20:35 +00:00
option(
BUILD_DOCS
"If use doxygen build documents"
2021-12-02 06:21:33 +00:00
OFF
2021-11-20 08:43:37 +00:00
)
2021-12-18 10:16:07 +00:00
option(
2021-12-18 15:06:08 +00:00
BUILD_WITH_INVERTEDINDEX
"If use invertedIndex"
ON
2021-12-18 10:16:07 +00:00
)
2022-05-20 15:39:52 +00:00
2023-05-16 10:00:10 +00:00
option(
BUILD_RELEASE
"If build release version"
OFF
)
2023-06-26 10:43:00 +00:00
option(
BUILD_CONTRIB
"If build thirdpart from source"
OFF
)