TDengine/packaging/tools/make_install.bat

224 lines
7.6 KiB
Batchfile
Raw Normal View History

2022-05-19 02:37:11 +00:00
@echo off
for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
if "%1" NEQ "" goto %1
2022-05-19 02:37:11 +00:00
:needAdmin
2022-08-18 09:32:08 +00:00
if exist C:\\TDengine\\data\\dnode\\dnodeCfg.json (
echo The default data directory C:/TDengine/data contains old data of tdengine 2.x, please clear it before installing!
)
rem // stop and delete service
mshta vbscript:createobject("shell.application").shellexecute("%~s0",":stop_delete","","runas",1)(window.close)
if exist %binary_dir%\\build\\bin\\taosadapter.exe (
echo This might take a few moment to accomplish deleting service taosd/taosadapter ...
)
if exist %binary_dir%\\build\\bin\\taoskeeper.exe (
echo This might take a few moment to accomplish deleting service taosd/taoskeeper ...
)
call :check_svc taosd
call :check_svc taosadapter
call :check_svc taoskeeper
2022-08-18 09:32:08 +00:00
set source_dir=%2
set source_dir=%source_dir:/=\\%
set binary_dir=%3
set binary_dir=%binary_dir:/=\\%
set osType=%4
set verNumber=%5
set Enterprise=%6
set target_dir=C:\\TDengine
2022-08-18 09:32:08 +00:00
if not exist %target_dir% (
mkdir %target_dir%
2022-08-18 09:32:08 +00:00
)
if not exist %target_dir%\\cfg (
mkdir %target_dir%\\cfg
2022-08-18 09:32:08 +00:00
)
if not exist %target_dir%\\include (
mkdir %target_dir%\\include
2022-08-18 09:32:08 +00:00
)
if not exist %target_dir%\\driver (
mkdir %target_dir%\\driver
2022-08-18 09:32:08 +00:00
)
if not exist C:\\TDengine\\cfg\\taos.cfg (
copy %source_dir%\\packaging\\cfg\\taos.cfg %target_dir%\\cfg\\taos.cfg > nul
2022-08-18 09:32:08 +00:00
)
if exist %binary_dir%\\test\\cfg\\taosadapter.toml (
if not exist %target_dir%\\cfg\\taosadapter.toml (
copy %binary_dir%\\test\\cfg\\taosadapter.toml %target_dir%\\cfg\\taosadapter.toml > nul
)
)
if exist %binary_dir%\\test\\cfg\\taoskeeper.toml (
if not exist %target_dir%\\cfg\\taoskeeper.toml (
copy %binary_dir%\\test\\cfg\\taoskeeper.toml %target_dir%\\cfg\\taoskeeper.toml > nul
)
)
copy %source_dir%\\include\\client\\taos.h %target_dir%\\include > nul
copy %source_dir%\\include\\util\\taoserror.h %target_dir%\\include > nul
copy %source_dir%\\include\\libs\\function\\taosudf.h %target_dir%\\include > nul
copy %binary_dir%\\build\\lib\\taos.lib %target_dir%\\driver > nul
copy %binary_dir%\\build\\lib\\taos_static.lib %target_dir%\\driver > nul
Freemine.cmake.3.0 (#30663) * chore(ci): with cmake verbose, temporarily * chore(cmake): prefer Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): try adding Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): revert taosd-ci-build.yml * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment, adding dl right after DEP_ext_libuv * fix(cmake): debug building on ubuntu 20.04 for the moment, try full run * fix(cmake): fix building on ubuntu 20.04 * fix(cmake): dl is only valid in non-windows platform * fix(cmake): dl order * refactor(cmake): adjust option/cache variables for external dependencies * refactor(cmake): mv patch files from contrib/ to cmake/ * refactor(cmake): typo * refactor(cmake): adding cache on ci * refactor(cmake): 1. ext_lzma2 is only used by Linux 2. fix bug in taosd-ci-build.yml * enh: adding functionalities of build.sh * fix(ci): `cmake -B` shall maintain consistency * refactor(cmake): LOCAL_REPO/LOCAL_URL as cache variable * refactor(cmake): taosadapter to be built in main build directory rather than .externals * refactor(cmake): adding rpath for taosadapter, linux now * refactor(cmake): adding rpath for taosadapter, macos now * chore(cmake): remove some comments * debug(ci): bypass TD_EXTERNALS_USE_ONLY * debug(ci): bypass .externals caching for the moment * fix(cmake): temporarily use taosadapter/main branch because this branch(freemine.cmake.3.0) has not include taos_fetch_fields_e from upstream * refactor(cmake): clean GIT_TAG/GIT_SHALLOW pairs * enh(ci): use build.sh rather than hard-coded in taosd-ci-build.yml, linux for now * debug(ci): undefined __isoc23_strtoull * debug(ci): benchmarkTest * debug(ci): what if use_only = off * debug(ci): remove .externals to make a refresh build * debug(ci): back to cache, and ls files of gtest * debug(ci): remove find coz {} not escaped * debug(ci): cache key seems missing "matrix.os" * refactor(ci): fixed cache key and reopen macos/windows * chore(ci): literally -j4 * chore(ci): Trigger GitHub Actions re-run * chore(ci): Trigger GitHub Actions re-run * fix(ci): typo * chore(ci): JOBS calculated by build.sh itself * refactor(ci): enable WEBSOCKET in build.sh by default * refactor(ci): enable WEBSOCKET in build.sh by default, macOS * chore(cmake): remove obsoletes * refactor(ci): stop service before running taosd * chore(ci): `./build.sh install` just install TDengine, you will have to start taosd by `./build.sh start` * refactor(cmake): adding source code found on http://emfisis.physics.uiowa.edu/Software/C/libargp/ * refactor(cmake): moving jansson/snappy/avro to .externals, and porting BUILD_TEST/WEBSOCKET on Windows * refactor(cmake): porting linux * refactor(cmake): porting macos 1. check argp.h 2. re-enable building taosdump * refactor(cmake): porting linux 1. adjust CMAKE_C/CXX_FLAGS * refactor(cmake): porting windows, adjust CMAKE_C/CXX_FLAGS * refactor(cmake): use cmake_parse_arguments in macro INIT_EXT * refactor(cmake): format ci cache directives * refactor(cmake): adding comments for ci externals-cache directives * refactor(cmake): adding check_env.cmake to checking libraries installed on the system * refactor(cmake): porting linux, make homebrew-installed-libs available * refactor(cmake): remove BYPRODUCTS from INIT_EXT macro * refactor(cmake): INC_DIR is oneValueArg * refactor(cmake): taosdump depends on ext_xz(LZMA) * refactor(cmake): add copy_pthreadVC3 target on windows * refactor(cmake): mv taosd-ci-build.yml to tdengine-build.yml * chore(ci): try to fix yml syntax error * refactor(cmake): use brew --prefix to get HomeBrew's install path * refactor(cmake): typo * debug(ci): build and cache externals first * debug(ci): adding -Wno-stringop-overread for the moment * debug(ci): make Threads::Threads public from os target * debug(ci): make os public * debug(ci): re-enable start and test * debug(ci): let it go even if taosBenchmark failed * debug(ci): copy logic from TDengine/main * debug(ci): try ./build.sh start/test * debug(ci): revert to original simple test logic in ci, taosBenchark/taos * chore(cmake): code-convention and ci-logic * debug(ci): show versions * debug(ci): forcefully use specific GIT_TAG by commit-id for taos-connector-rust.git and taosadapter.git * refactor(cmake): remove empty lines * debug(ci): typo * debug(ci): set supportVnodes to 256 before starting taosd * debug(ci): fix: sudo and pipe * debug(ci): cat /etc/taos/taos.cfg to check if supportVnodes effective * debug(ci): cat forceReadConfig to taos.cfg * debug(ci): adding taos -s "show dnodes" * debug(ci): print more info * debug(ci): 1. git log .... in an independant step 2. sleep 3 deliberately * build: release ver-3.3.6.0 * chore(ci): comment and remove unnecessary code * refactor(ci): cleanup tools/CMakeLists.txt 1. remove unnecessary or uneffective codes 2. better approach to pass compile flags to go * chore(cmake): remove unnecessary code * merge(cmake): porting linux * merge(cmake): porting macOS * merge(cmake): porting windows * merge(cmake): pitfall fix: use literal format string instead * merge(cmake): ver-3.3.6.0 for both taosadatper and taosws * merge(cmake): adjust ci for debug purposes * merge(cmake): add dependenices to make sure native built * merge(main): link os * merge(main): revert to main * chore(cmake): remove freemine'd comments * chore(cmake): make github ci to run with empty change * refactor(cmake): remove unnecessaries * refactor(cmake): remove unnecessaries * chore(cmake): 1. remove taosudf in build.sh::do_purge 2. packaging taosBenchmark * chore(cmake): 1. typo corrections 2. add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): show cmake version * chore(cmake): add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): typo * chore(cmake): remove unnecessaries * cmake: debug enterprise compilation * refactor: preparatory work before merging the freemin PR * refactor(cmake): revert to d91205594ac3918e1e21fd16bb48506d20d32590 * refactor(cmake): optimize by adjusting cache key * chore(cmake): make github ci to run with empty change * refactor(cmake): move libs3 and azure to external.cmake * refactor(cmake): porting macOS * refactor(cmake): move cos to external.cmake * refactor(cmake): bypass s3/azure/cos on windows for the moment * refactor(cmake): try find_package(Threads) * refactor(cmake): add dl/pthread in libs3 * refactor(cmake): enable s3/azure for the moment, hard-coded * refactor(cmake): adjust BUILD_WITH_ANALYSIS option * refactor(cmake): 1. enum AVROTYPE => enum enAVROTYPE 2. remove INSTALL(CODE ...) from tools/taos-tools/CMakeLists.txt * refactor(cmake): portint macOS and typo * refactor(cmake): ticking external cache key to force refresh external building * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes, contrib/deps-download related * refactor(cmake): adding build.bat, and use build.bat in .github/workflows/tdengine-build.yml * refactor(cmake): 1. call .\build.bat 2. remove POST_BUILD which is not valid in this signature of add_custom_command * refactor(ci): use 'NMake Makefiles JOM' * refactor(ci): typo * refactor(ci): debug * refactor(ci): debug * refactor(ci): debug * refactor(ci): use call on windows * refactor(cmake): move utils/TSZ to contrib/TSZ * chore(cmake): make github ci to run with empty change * refactor(cmake): mv cmake.* -> *.cmake and related in CMakeLists.txt * refactor(cmake): debugging integrating community * refactor(cmake): debugging integrating community * chore(cmake): make github ci to run with empty change * refactor(cmake): revert geos.git back to 3.12.0 * refactor(cmake): revert doc/** to main branch * refactor(cmake): revert tests/** to main branch, except tests/taosc_test/CMakeLists.txt * refactor(cmake): revert test/cases/** to main branch * refactor(cmake): revert test/docs/** to main branch * refactor(cmake): revert tools/taos-tools/deps/{avro,jansson,libargp,snappy,zlib-1.2.13} to main branch, which need to be removed later * refactor(ci): revert .github/workflows/{deploy-case-docs.yml,tdengine-doc-build.yml} to main branch * refactor(cmake): revert tcommon.h and related to main branch * refactor(cmake): revert test/* stuffs back to main branch * refactor(cmake): revert libuv.git back to v1.49.2 * refactor(cmake): revert .h/.c and related to main branch * refactor(cmake): typo format string * refactor(cmake): typo correction, incorrect use of macro `assert` * refactor(cmake): adding /wd4028 to bypass thttp.c under enterprise build for the moment * refactor(cmake): 1. adding some rules to .gitignore for the last resort to save 2. adding source files manually to source/libs/parser/CMakeLists.txt to exclude potential sql.c generated by old build system * refactor(cmake): add -Wno-unused-result for the moment * refactor(cmake): adjust target dependencies * refactor(cmake): tweaking building of mxml * refactor(cmake): adjust externals CMAKE_ARGS to save compilation time * refactor(cmake): temporarily use tomchon-patch-3 * refactor(cmake): temporarily adding dumpbin directives * refactor(cmake): adding NODEFAULTLIB temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:libcpmt temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:cpmt temporarily for debugging purpose * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * refactor(ci): use freemine.debug branch for the moment * refactor(ci): revert back to use run-tests-on-windows.yml of tomchon-patch-3 branch * chore(cmake): make github ci to run with empty change * refactor(cmake): remove temporary debug directives * refactor(cmake): move cmake_policy(..CMP0135..) to the root of this project * refactor(cmake): Remove temporary debugging conditional and restore original logic * chore(cmake): adding -B in army tests * chore(cmake): make github ci to run with empty change * chore(cmake): revert: adding -B in army tests * refactor(cmake): 1. use ver-3.3.6.3 of taosadapter 2. pitfall fix: do not link with taosws for taos shell * refactor(cmake): revert taosadapter to ver-3.3.6.0 * chore(cmake): adding logging message in more detail * chore(cmake): adding logging message in more detail * chore(ci): debugging by using ls -l * chore(ci): typo * chore(ci): typo * refactor(cmake): revert to remove debug code, and taosadapter to ver-3.3.6.3 * refactor(cmake): remove DEP_ext_taosws * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): typo correction: utils/test/c/sml_test.c * debug(cmake): test cases debug * chore(cmake): make github ci to run with empty change * chore(ci): using tomchon-patch-3 branch for run-tests-on-linux for the moment * chore(cmake): make github ci to run with empty change * debug(test): revert utils/test/c/sml_test.c back to tdengine/main branch * debug(test): adding VERBOSE=1 and gcc --version * debug(test): revert tests/parallel_test/cases.task back to tdengine/main branch * debug: add log in run_case.sh * fix: test log * fix: docker run privileged * tes: add debug test in cases.task * refactor(cmake): remove ref to \contrib\<dep-name> and ~/.cos-local-{1,2} from CMakeLists.txt(s) * refactor(cmake): make taosudf link with libtaos.so * chore(cmake): fix compiler warning as error problem * refactor(cmake): revert 7d7f03832d20197a6cef5e5f0a48fff314851cf2 * chore(cmake): only udf.sim and udfpy.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug only udf.sim for the moment * debug(ci): debug only udf.sim for the moment, using tee * debug(ci): debug only udf.sim for the moment, revert using tee * debug(ci): debug only udf.sim for the moment, adding TAOS_LIB again * debug(cmake): adding -rdynamic for the moment * debug(cmake): re-adding udfpy.sim * debug(cmake): do NOT run with Sanitizer for udfpy.sim for the moment * chore(cmake): revert cases.task, and remove ubuntu-20.04 from tdengine-build.yml * refactor(cmake): using ENABLE_EXPORTS to export symbols in taosudf * chore(cmake): make github ci to run with empty change * chore(cmake): remove stuffs for debug purpose and revert --------- Co-authored-by: support-platform <it@taosdata.com> Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: haoranchen <haoran920c@163.com>
2025-04-19 06:03:29 +00:00
copy %binary_dir%\\build\\bin\\taos.dll %target_dir%\\ > nul
copy %binary_dir%\\build\\bin\\taosnative.dll %target_dir%\\ > nul
copy %binary_dir%\\build\\bin\\pthreadVC3.dll %target_dir%\\ > nul
new-libtaos-with-ws (#29971) * enh: rename libtaos.so to libtaosinternal.so * enh: let python system-test work * enh: shell for libinternal.so * enh: refact script * enh: wrapper for libtaosinternal * enh: rename some files * enh: let shell support internal driver * enh: minor changes * enh: minor changes * add intenal.h * enh: remove unused codes * enh: minor changs * feat: mac os issues * enh: let python test use internal connection * enh: let nettest work * enh: let taosc -C work * enh: test shell in mac os * enh: minor changes * enh: let libtaosinternal.so work in linux * enh: update install script * enh: for ci * enh: for windows compile * enh: minor changes * enh: compile in windows * enh: minor changes * enh: taosinternal work in windows * enh: add taos_internal_static * enh: rollback os_for_wrapper * fix: conflicts * fix: conflicts * fix: compile errors * fix: conflicts * enh: rename taosinternal to taosnative * enh: rename taosinternal to taosnative * fix: compile error * enh: remove taosnative.h * fix: compile errors * enh: set default shell options * fix: compile errors * fix: compile errors * debug: switch taosws branch to feat/new-libtaos-with-ws * enh: taosBenchmark remove WEBSOCKET finished * fix: CMakeLists.txt remove WEBSOCKET * fix: compile errors * fix: taosBenchmark delete restful code * .gitignore remove taos-tools folder * fix: remove taosdump WEBSOCKET MACRO * fix: build error for taosdump * fix: build project passed * fix: support -Z for connect mode * fix: build error * fix: build error fixed * fix: add -Z options * fix: native and websocket with string * fix: -Z option core * fix: build unit test * fix: build error * fix: add colon for array * fix: unit test can not include fun * fix: CTest pointer null is nullptr * fix: include pub.h * fix: taosdump add -Z --driver options * fix: taosdump support -Z with pub.h pub.c * fix: toolsGetTimeDay move to pub.c * fix: restore pub.c only simple fun * fix: add error tips * fix: tmfree remove from taosdump * fix: remove double declare taos variant * fix: taos support -Z option * enh: configDir set with main fun * fix: add g_arguments.configDir * fix: show tips add cfgdir * fix: g_argument is pointer * fix: configDir is global var * fix: declare g_configDir in benchMain.c * fix: taos version not show on websocket * stmt2 websocket prepare with supertable * stmt2 websocket prepare build * fix: stmt and stmt2 prepare add db name * fix: remove -R --restful test case * fix: taosBenchmark adjust priority cmd > json > evn * fix: add connect mode test case connMode.py * fix: clear evn and add host port check * fix: army/test.py modify start taosAdapter is default * change: system-test/test.py default start taosAdapter * fix: add taosAdapter variant to system-test/test.py * fix: -y must put behind other options * fix: remove rest sml and add -N normal case * fix: add -c work cfg test case * del: queryMain.py remove rest query * fix: remove groups have a blank append bug * fix: caseBase.py add db in sql query * fix: query_json.py remove rest test * fix: taosBenchmark uniform dsn describe * fix: add pub.h pub.c to tools public * fix: case remove restful interface * fix: build error * fix: taosDriverCleanup no arg call * fix: taosdump add test conn mode case taosdumpCommandline.py * fix: modify insertFullType.json db name * fix: taosdump connMode test case taosDumpCommandline.py passed * enh: priority cmd > env > json * fix: taosCli remove is_native variant * fix: password is not pointer * fix: comment -o test case * fix: solve fun return code check * fix: windows unresolved strcasecmp * fix: remove coverHostToServAddr * fix: forbid check ODR violation * ci: trigger pr run * fix: build error not del >>>>>3.0 * fix: support json dbinfo->vgroups have blank space * fix: solve conflict with merge * fix: with TrimCaseCmp fun to compare vgroups * fix: del vgroups support blank code * feat: wrapper add taos_fetch_fields_e * fix: move jni from libtaosnative.so to libtaos.so * fix: move clientTmqConnector.c for jni * fix: fix assert check with del comment code * fix: taosBenchmark add prepare stmt debug log * fix: stmt2 already have debug log on preapare * fix: (double)LLONG_MAX force covert * fix: stmt insert normal table with websocket * fix: normal table with stmt too many ? * fix: taosdump stmt_prepare with child tbname * fix: build error add int code * feat: stmtPrepare with child table to do * taos -a options move to native test case * fix:unit test benchmarkTest passed * fix: query_json-with-sqlfile.py case no check results * fix: queryMain.py case lost, put in tasks again --------- Co-authored-by: Shengliang Guan <slguan@taosdata.com>
2025-03-20 14:54:29 +00:00
copy %binary_dir%\\build\\lib\\taosnative.lib %target_dir%\\driver > nul
copy %binary_dir%\\build\\lib\\taosnative_static.lib %target_dir%\\driver > nul
copy %binary_dir%\\build\\bin\\taos.exe %target_dir% > nul
2022-08-18 09:32:08 +00:00
if exist %binary_dir%\\build\\bin\\taosBenchmark.exe (
copy %binary_dir%\\build\\bin\\taosBenchmark.exe %target_dir% > nul
2022-08-18 09:32:08 +00:00
)
2023-07-18 03:00:26 +00:00
if exist %binary_dir%\\build\\lib\\taosws.lib (
copy %binary_dir%\\build\\lib\\taosws.lib %target_dir%\\driver > nul
2022-10-26 08:14:32 +00:00
)
Freemine.cmake.3.0 (#30663) * chore(ci): with cmake verbose, temporarily * chore(cmake): prefer Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): try adding Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): revert taosd-ci-build.yml * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment, adding dl right after DEP_ext_libuv * fix(cmake): debug building on ubuntu 20.04 for the moment, try full run * fix(cmake): fix building on ubuntu 20.04 * fix(cmake): dl is only valid in non-windows platform * fix(cmake): dl order * refactor(cmake): adjust option/cache variables for external dependencies * refactor(cmake): mv patch files from contrib/ to cmake/ * refactor(cmake): typo * refactor(cmake): adding cache on ci * refactor(cmake): 1. ext_lzma2 is only used by Linux 2. fix bug in taosd-ci-build.yml * enh: adding functionalities of build.sh * fix(ci): `cmake -B` shall maintain consistency * refactor(cmake): LOCAL_REPO/LOCAL_URL as cache variable * refactor(cmake): taosadapter to be built in main build directory rather than .externals * refactor(cmake): adding rpath for taosadapter, linux now * refactor(cmake): adding rpath for taosadapter, macos now * chore(cmake): remove some comments * debug(ci): bypass TD_EXTERNALS_USE_ONLY * debug(ci): bypass .externals caching for the moment * fix(cmake): temporarily use taosadapter/main branch because this branch(freemine.cmake.3.0) has not include taos_fetch_fields_e from upstream * refactor(cmake): clean GIT_TAG/GIT_SHALLOW pairs * enh(ci): use build.sh rather than hard-coded in taosd-ci-build.yml, linux for now * debug(ci): undefined __isoc23_strtoull * debug(ci): benchmarkTest * debug(ci): what if use_only = off * debug(ci): remove .externals to make a refresh build * debug(ci): back to cache, and ls files of gtest * debug(ci): remove find coz {} not escaped * debug(ci): cache key seems missing "matrix.os" * refactor(ci): fixed cache key and reopen macos/windows * chore(ci): literally -j4 * chore(ci): Trigger GitHub Actions re-run * chore(ci): Trigger GitHub Actions re-run * fix(ci): typo * chore(ci): JOBS calculated by build.sh itself * refactor(ci): enable WEBSOCKET in build.sh by default * refactor(ci): enable WEBSOCKET in build.sh by default, macOS * chore(cmake): remove obsoletes * refactor(ci): stop service before running taosd * chore(ci): `./build.sh install` just install TDengine, you will have to start taosd by `./build.sh start` * refactor(cmake): adding source code found on http://emfisis.physics.uiowa.edu/Software/C/libargp/ * refactor(cmake): moving jansson/snappy/avro to .externals, and porting BUILD_TEST/WEBSOCKET on Windows * refactor(cmake): porting linux * refactor(cmake): porting macos 1. check argp.h 2. re-enable building taosdump * refactor(cmake): porting linux 1. adjust CMAKE_C/CXX_FLAGS * refactor(cmake): porting windows, adjust CMAKE_C/CXX_FLAGS * refactor(cmake): use cmake_parse_arguments in macro INIT_EXT * refactor(cmake): format ci cache directives * refactor(cmake): adding comments for ci externals-cache directives * refactor(cmake): adding check_env.cmake to checking libraries installed on the system * refactor(cmake): porting linux, make homebrew-installed-libs available * refactor(cmake): remove BYPRODUCTS from INIT_EXT macro * refactor(cmake): INC_DIR is oneValueArg * refactor(cmake): taosdump depends on ext_xz(LZMA) * refactor(cmake): add copy_pthreadVC3 target on windows * refactor(cmake): mv taosd-ci-build.yml to tdengine-build.yml * chore(ci): try to fix yml syntax error * refactor(cmake): use brew --prefix to get HomeBrew's install path * refactor(cmake): typo * debug(ci): build and cache externals first * debug(ci): adding -Wno-stringop-overread for the moment * debug(ci): make Threads::Threads public from os target * debug(ci): make os public * debug(ci): re-enable start and test * debug(ci): let it go even if taosBenchmark failed * debug(ci): copy logic from TDengine/main * debug(ci): try ./build.sh start/test * debug(ci): revert to original simple test logic in ci, taosBenchark/taos * chore(cmake): code-convention and ci-logic * debug(ci): show versions * debug(ci): forcefully use specific GIT_TAG by commit-id for taos-connector-rust.git and taosadapter.git * refactor(cmake): remove empty lines * debug(ci): typo * debug(ci): set supportVnodes to 256 before starting taosd * debug(ci): fix: sudo and pipe * debug(ci): cat /etc/taos/taos.cfg to check if supportVnodes effective * debug(ci): cat forceReadConfig to taos.cfg * debug(ci): adding taos -s "show dnodes" * debug(ci): print more info * debug(ci): 1. git log .... in an independant step 2. sleep 3 deliberately * build: release ver-3.3.6.0 * chore(ci): comment and remove unnecessary code * refactor(ci): cleanup tools/CMakeLists.txt 1. remove unnecessary or uneffective codes 2. better approach to pass compile flags to go * chore(cmake): remove unnecessary code * merge(cmake): porting linux * merge(cmake): porting macOS * merge(cmake): porting windows * merge(cmake): pitfall fix: use literal format string instead * merge(cmake): ver-3.3.6.0 for both taosadatper and taosws * merge(cmake): adjust ci for debug purposes * merge(cmake): add dependenices to make sure native built * merge(main): link os * merge(main): revert to main * chore(cmake): remove freemine'd comments * chore(cmake): make github ci to run with empty change * refactor(cmake): remove unnecessaries * refactor(cmake): remove unnecessaries * chore(cmake): 1. remove taosudf in build.sh::do_purge 2. packaging taosBenchmark * chore(cmake): 1. typo corrections 2. add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): show cmake version * chore(cmake): add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): typo * chore(cmake): remove unnecessaries * cmake: debug enterprise compilation * refactor: preparatory work before merging the freemin PR * refactor(cmake): revert to d91205594ac3918e1e21fd16bb48506d20d32590 * refactor(cmake): optimize by adjusting cache key * chore(cmake): make github ci to run with empty change * refactor(cmake): move libs3 and azure to external.cmake * refactor(cmake): porting macOS * refactor(cmake): move cos to external.cmake * refactor(cmake): bypass s3/azure/cos on windows for the moment * refactor(cmake): try find_package(Threads) * refactor(cmake): add dl/pthread in libs3 * refactor(cmake): enable s3/azure for the moment, hard-coded * refactor(cmake): adjust BUILD_WITH_ANALYSIS option * refactor(cmake): 1. enum AVROTYPE => enum enAVROTYPE 2. remove INSTALL(CODE ...) from tools/taos-tools/CMakeLists.txt * refactor(cmake): portint macOS and typo * refactor(cmake): ticking external cache key to force refresh external building * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes, contrib/deps-download related * refactor(cmake): adding build.bat, and use build.bat in .github/workflows/tdengine-build.yml * refactor(cmake): 1. call .\build.bat 2. remove POST_BUILD which is not valid in this signature of add_custom_command * refactor(ci): use 'NMake Makefiles JOM' * refactor(ci): typo * refactor(ci): debug * refactor(ci): debug * refactor(ci): debug * refactor(ci): use call on windows * refactor(cmake): move utils/TSZ to contrib/TSZ * chore(cmake): make github ci to run with empty change * refactor(cmake): mv cmake.* -> *.cmake and related in CMakeLists.txt * refactor(cmake): debugging integrating community * refactor(cmake): debugging integrating community * chore(cmake): make github ci to run with empty change * refactor(cmake): revert geos.git back to 3.12.0 * refactor(cmake): revert doc/** to main branch * refactor(cmake): revert tests/** to main branch, except tests/taosc_test/CMakeLists.txt * refactor(cmake): revert test/cases/** to main branch * refactor(cmake): revert test/docs/** to main branch * refactor(cmake): revert tools/taos-tools/deps/{avro,jansson,libargp,snappy,zlib-1.2.13} to main branch, which need to be removed later * refactor(ci): revert .github/workflows/{deploy-case-docs.yml,tdengine-doc-build.yml} to main branch * refactor(cmake): revert tcommon.h and related to main branch * refactor(cmake): revert test/* stuffs back to main branch * refactor(cmake): revert libuv.git back to v1.49.2 * refactor(cmake): revert .h/.c and related to main branch * refactor(cmake): typo format string * refactor(cmake): typo correction, incorrect use of macro `assert` * refactor(cmake): adding /wd4028 to bypass thttp.c under enterprise build for the moment * refactor(cmake): 1. adding some rules to .gitignore for the last resort to save 2. adding source files manually to source/libs/parser/CMakeLists.txt to exclude potential sql.c generated by old build system * refactor(cmake): add -Wno-unused-result for the moment * refactor(cmake): adjust target dependencies * refactor(cmake): tweaking building of mxml * refactor(cmake): adjust externals CMAKE_ARGS to save compilation time * refactor(cmake): temporarily use tomchon-patch-3 * refactor(cmake): temporarily adding dumpbin directives * refactor(cmake): adding NODEFAULTLIB temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:libcpmt temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:cpmt temporarily for debugging purpose * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * refactor(ci): use freemine.debug branch for the moment * refactor(ci): revert back to use run-tests-on-windows.yml of tomchon-patch-3 branch * chore(cmake): make github ci to run with empty change * refactor(cmake): remove temporary debug directives * refactor(cmake): move cmake_policy(..CMP0135..) to the root of this project * refactor(cmake): Remove temporary debugging conditional and restore original logic * chore(cmake): adding -B in army tests * chore(cmake): make github ci to run with empty change * chore(cmake): revert: adding -B in army tests * refactor(cmake): 1. use ver-3.3.6.3 of taosadapter 2. pitfall fix: do not link with taosws for taos shell * refactor(cmake): revert taosadapter to ver-3.3.6.0 * chore(cmake): adding logging message in more detail * chore(cmake): adding logging message in more detail * chore(ci): debugging by using ls -l * chore(ci): typo * chore(ci): typo * refactor(cmake): revert to remove debug code, and taosadapter to ver-3.3.6.3 * refactor(cmake): remove DEP_ext_taosws * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): typo correction: utils/test/c/sml_test.c * debug(cmake): test cases debug * chore(cmake): make github ci to run with empty change * chore(ci): using tomchon-patch-3 branch for run-tests-on-linux for the moment * chore(cmake): make github ci to run with empty change * debug(test): revert utils/test/c/sml_test.c back to tdengine/main branch * debug(test): adding VERBOSE=1 and gcc --version * debug(test): revert tests/parallel_test/cases.task back to tdengine/main branch * debug: add log in run_case.sh * fix: test log * fix: docker run privileged * tes: add debug test in cases.task * refactor(cmake): remove ref to \contrib\<dep-name> and ~/.cos-local-{1,2} from CMakeLists.txt(s) * refactor(cmake): make taosudf link with libtaos.so * chore(cmake): fix compiler warning as error problem * refactor(cmake): revert 7d7f03832d20197a6cef5e5f0a48fff314851cf2 * chore(cmake): only udf.sim and udfpy.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug only udf.sim for the moment * debug(ci): debug only udf.sim for the moment, using tee * debug(ci): debug only udf.sim for the moment, revert using tee * debug(ci): debug only udf.sim for the moment, adding TAOS_LIB again * debug(cmake): adding -rdynamic for the moment * debug(cmake): re-adding udfpy.sim * debug(cmake): do NOT run with Sanitizer for udfpy.sim for the moment * chore(cmake): revert cases.task, and remove ubuntu-20.04 from tdengine-build.yml * refactor(cmake): using ENABLE_EXPORTS to export symbols in taosudf * chore(cmake): make github ci to run with empty change * chore(cmake): remove stuffs for debug purpose and revert --------- Co-authored-by: support-platform <it@taosdata.com> Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: haoranchen <haoran920c@163.com>
2025-04-19 06:03:29 +00:00
if exist %binary_dir%\\build\\bin\\taosws.dll (
copy %binary_dir%\\build\\bin\\taosws.dll %target_dir%\\ > nul
copy %binary_dir%\\build\\include\\taosws.h %target_dir%\\include > nul
2022-10-26 08:14:32 +00:00
)
if exist %binary_dir%\\build\\bin\\taosdump.exe (
copy %binary_dir%\\build\\bin\\taosdump.exe %target_dir% > nul
)
if %Enterprise% == TRUE (
if exist %binary_dir%\\build\\bin\\taosx.exe (
copy %binary_dir%\\build\\bin\\taosx.exe %target_dir% > nul
)
2023-02-28 02:31:36 +00:00
if exist %binary_dir%\\build\\bin\\taos-explorer.exe (
copy %binary_dir%\\build\\bin\\taos-explorer.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\tmq_sim.exe (
copy %binary_dir%\\build\\bin\\tmq_sim.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\tsim.exe (
copy %binary_dir%\\build\\bin\\tsim.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\tmq_taosx_ci.exe (
copy %binary_dir%\\build\\bin\\tmq_taosx_ci.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\tmq_demo.exe (
copy %binary_dir%\\build\\bin\\tmq_demo.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\dumper.exe (
copy %binary_dir%\\build\\bin\\dumper.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\runUdf.exe (
copy %binary_dir%\\build\\bin\\runUdf.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\create_table.exe (
copy %binary_dir%\\build\\bin\\create_table.exe %target_dir% > nul
)
if exist %binary_dir%\\build\\bin\\*explorer.exe (
copy %binary_dir%\\build\\bin\\*explorer.exe %target_dir% > nul
)
)
copy %binary_dir%\\build\\bin\\taosd.exe %target_dir% > nul
2025-03-06 14:20:52 +00:00
copy %binary_dir%\\build\\bin\\taosudf.exe %target_dir% > nul
if exist %binary_dir%\\build\\bin\\taosadapter.exe (
copy %binary_dir%\\build\\bin\\taosadapter.exe %target_dir% > nul
2022-10-26 08:14:32 +00:00
)
if exist %binary_dir%\\build\\bin\\taoskeeper.exe (
copy %binary_dir%\\build\\bin\\taoskeeper.exe %target_dir% > nul
)
mshta vbscript:createobject("shell.application").shellexecute("%~s0",":hasAdmin","","runas",1)(window.close)
echo.
echo Please manually remove C:\TDengine from your system PATH environment after you remove TDengine software
echo.
echo To start/stop TDengine with administrator privileges: %ESC%[92msc start/stop taosd %ESC%[0m
if exist %binary_dir%\\build\\bin\\taosadapter.exe (
echo To start/stop taosAdapter with administrator privileges: %ESC%[92msc start/stop taosadapter %ESC%[0m
)
2022-08-18 09:32:08 +00:00
if exist %binary_dir%\\build\\bin\\taoskeeper.exe (
echo To start/stop taosKeeper with administrator privileges: %ESC%[92msc start/stop taoskeeper %ESC%[0m
)
goto :eof
2022-05-19 02:37:11 +00:00
:hasAdmin
call :stop_delete
call :check_svc taosd
call :check_svc taosadapter
call :check_svc taoskeeper
if exist c:\\windows\\sysnative (
echo x86
Freemine.cmake.3.0 (#30663) * chore(ci): with cmake verbose, temporarily * chore(cmake): prefer Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): try adding Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): revert taosd-ci-build.yml * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment, adding dl right after DEP_ext_libuv * fix(cmake): debug building on ubuntu 20.04 for the moment, try full run * fix(cmake): fix building on ubuntu 20.04 * fix(cmake): dl is only valid in non-windows platform * fix(cmake): dl order * refactor(cmake): adjust option/cache variables for external dependencies * refactor(cmake): mv patch files from contrib/ to cmake/ * refactor(cmake): typo * refactor(cmake): adding cache on ci * refactor(cmake): 1. ext_lzma2 is only used by Linux 2. fix bug in taosd-ci-build.yml * enh: adding functionalities of build.sh * fix(ci): `cmake -B` shall maintain consistency * refactor(cmake): LOCAL_REPO/LOCAL_URL as cache variable * refactor(cmake): taosadapter to be built in main build directory rather than .externals * refactor(cmake): adding rpath for taosadapter, linux now * refactor(cmake): adding rpath for taosadapter, macos now * chore(cmake): remove some comments * debug(ci): bypass TD_EXTERNALS_USE_ONLY * debug(ci): bypass .externals caching for the moment * fix(cmake): temporarily use taosadapter/main branch because this branch(freemine.cmake.3.0) has not include taos_fetch_fields_e from upstream * refactor(cmake): clean GIT_TAG/GIT_SHALLOW pairs * enh(ci): use build.sh rather than hard-coded in taosd-ci-build.yml, linux for now * debug(ci): undefined __isoc23_strtoull * debug(ci): benchmarkTest * debug(ci): what if use_only = off * debug(ci): remove .externals to make a refresh build * debug(ci): back to cache, and ls files of gtest * debug(ci): remove find coz {} not escaped * debug(ci): cache key seems missing "matrix.os" * refactor(ci): fixed cache key and reopen macos/windows * chore(ci): literally -j4 * chore(ci): Trigger GitHub Actions re-run * chore(ci): Trigger GitHub Actions re-run * fix(ci): typo * chore(ci): JOBS calculated by build.sh itself * refactor(ci): enable WEBSOCKET in build.sh by default * refactor(ci): enable WEBSOCKET in build.sh by default, macOS * chore(cmake): remove obsoletes * refactor(ci): stop service before running taosd * chore(ci): `./build.sh install` just install TDengine, you will have to start taosd by `./build.sh start` * refactor(cmake): adding source code found on http://emfisis.physics.uiowa.edu/Software/C/libargp/ * refactor(cmake): moving jansson/snappy/avro to .externals, and porting BUILD_TEST/WEBSOCKET on Windows * refactor(cmake): porting linux * refactor(cmake): porting macos 1. check argp.h 2. re-enable building taosdump * refactor(cmake): porting linux 1. adjust CMAKE_C/CXX_FLAGS * refactor(cmake): porting windows, adjust CMAKE_C/CXX_FLAGS * refactor(cmake): use cmake_parse_arguments in macro INIT_EXT * refactor(cmake): format ci cache directives * refactor(cmake): adding comments for ci externals-cache directives * refactor(cmake): adding check_env.cmake to checking libraries installed on the system * refactor(cmake): porting linux, make homebrew-installed-libs available * refactor(cmake): remove BYPRODUCTS from INIT_EXT macro * refactor(cmake): INC_DIR is oneValueArg * refactor(cmake): taosdump depends on ext_xz(LZMA) * refactor(cmake): add copy_pthreadVC3 target on windows * refactor(cmake): mv taosd-ci-build.yml to tdengine-build.yml * chore(ci): try to fix yml syntax error * refactor(cmake): use brew --prefix to get HomeBrew's install path * refactor(cmake): typo * debug(ci): build and cache externals first * debug(ci): adding -Wno-stringop-overread for the moment * debug(ci): make Threads::Threads public from os target * debug(ci): make os public * debug(ci): re-enable start and test * debug(ci): let it go even if taosBenchmark failed * debug(ci): copy logic from TDengine/main * debug(ci): try ./build.sh start/test * debug(ci): revert to original simple test logic in ci, taosBenchark/taos * chore(cmake): code-convention and ci-logic * debug(ci): show versions * debug(ci): forcefully use specific GIT_TAG by commit-id for taos-connector-rust.git and taosadapter.git * refactor(cmake): remove empty lines * debug(ci): typo * debug(ci): set supportVnodes to 256 before starting taosd * debug(ci): fix: sudo and pipe * debug(ci): cat /etc/taos/taos.cfg to check if supportVnodes effective * debug(ci): cat forceReadConfig to taos.cfg * debug(ci): adding taos -s "show dnodes" * debug(ci): print more info * debug(ci): 1. git log .... in an independant step 2. sleep 3 deliberately * build: release ver-3.3.6.0 * chore(ci): comment and remove unnecessary code * refactor(ci): cleanup tools/CMakeLists.txt 1. remove unnecessary or uneffective codes 2. better approach to pass compile flags to go * chore(cmake): remove unnecessary code * merge(cmake): porting linux * merge(cmake): porting macOS * merge(cmake): porting windows * merge(cmake): pitfall fix: use literal format string instead * merge(cmake): ver-3.3.6.0 for both taosadatper and taosws * merge(cmake): adjust ci for debug purposes * merge(cmake): add dependenices to make sure native built * merge(main): link os * merge(main): revert to main * chore(cmake): remove freemine'd comments * chore(cmake): make github ci to run with empty change * refactor(cmake): remove unnecessaries * refactor(cmake): remove unnecessaries * chore(cmake): 1. remove taosudf in build.sh::do_purge 2. packaging taosBenchmark * chore(cmake): 1. typo corrections 2. add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): show cmake version * chore(cmake): add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): typo * chore(cmake): remove unnecessaries * cmake: debug enterprise compilation * refactor: preparatory work before merging the freemin PR * refactor(cmake): revert to d91205594ac3918e1e21fd16bb48506d20d32590 * refactor(cmake): optimize by adjusting cache key * chore(cmake): make github ci to run with empty change * refactor(cmake): move libs3 and azure to external.cmake * refactor(cmake): porting macOS * refactor(cmake): move cos to external.cmake * refactor(cmake): bypass s3/azure/cos on windows for the moment * refactor(cmake): try find_package(Threads) * refactor(cmake): add dl/pthread in libs3 * refactor(cmake): enable s3/azure for the moment, hard-coded * refactor(cmake): adjust BUILD_WITH_ANALYSIS option * refactor(cmake): 1. enum AVROTYPE => enum enAVROTYPE 2. remove INSTALL(CODE ...) from tools/taos-tools/CMakeLists.txt * refactor(cmake): portint macOS and typo * refactor(cmake): ticking external cache key to force refresh external building * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes, contrib/deps-download related * refactor(cmake): adding build.bat, and use build.bat in .github/workflows/tdengine-build.yml * refactor(cmake): 1. call .\build.bat 2. remove POST_BUILD which is not valid in this signature of add_custom_command * refactor(ci): use 'NMake Makefiles JOM' * refactor(ci): typo * refactor(ci): debug * refactor(ci): debug * refactor(ci): debug * refactor(ci): use call on windows * refactor(cmake): move utils/TSZ to contrib/TSZ * chore(cmake): make github ci to run with empty change * refactor(cmake): mv cmake.* -> *.cmake and related in CMakeLists.txt * refactor(cmake): debugging integrating community * refactor(cmake): debugging integrating community * chore(cmake): make github ci to run with empty change * refactor(cmake): revert geos.git back to 3.12.0 * refactor(cmake): revert doc/** to main branch * refactor(cmake): revert tests/** to main branch, except tests/taosc_test/CMakeLists.txt * refactor(cmake): revert test/cases/** to main branch * refactor(cmake): revert test/docs/** to main branch * refactor(cmake): revert tools/taos-tools/deps/{avro,jansson,libargp,snappy,zlib-1.2.13} to main branch, which need to be removed later * refactor(ci): revert .github/workflows/{deploy-case-docs.yml,tdengine-doc-build.yml} to main branch * refactor(cmake): revert tcommon.h and related to main branch * refactor(cmake): revert test/* stuffs back to main branch * refactor(cmake): revert libuv.git back to v1.49.2 * refactor(cmake): revert .h/.c and related to main branch * refactor(cmake): typo format string * refactor(cmake): typo correction, incorrect use of macro `assert` * refactor(cmake): adding /wd4028 to bypass thttp.c under enterprise build for the moment * refactor(cmake): 1. adding some rules to .gitignore for the last resort to save 2. adding source files manually to source/libs/parser/CMakeLists.txt to exclude potential sql.c generated by old build system * refactor(cmake): add -Wno-unused-result for the moment * refactor(cmake): adjust target dependencies * refactor(cmake): tweaking building of mxml * refactor(cmake): adjust externals CMAKE_ARGS to save compilation time * refactor(cmake): temporarily use tomchon-patch-3 * refactor(cmake): temporarily adding dumpbin directives * refactor(cmake): adding NODEFAULTLIB temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:libcpmt temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:cpmt temporarily for debugging purpose * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * refactor(ci): use freemine.debug branch for the moment * refactor(ci): revert back to use run-tests-on-windows.yml of tomchon-patch-3 branch * chore(cmake): make github ci to run with empty change * refactor(cmake): remove temporary debug directives * refactor(cmake): move cmake_policy(..CMP0135..) to the root of this project * refactor(cmake): Remove temporary debugging conditional and restore original logic * chore(cmake): adding -B in army tests * chore(cmake): make github ci to run with empty change * chore(cmake): revert: adding -B in army tests * refactor(cmake): 1. use ver-3.3.6.3 of taosadapter 2. pitfall fix: do not link with taosws for taos shell * refactor(cmake): revert taosadapter to ver-3.3.6.0 * chore(cmake): adding logging message in more detail * chore(cmake): adding logging message in more detail * chore(ci): debugging by using ls -l * chore(ci): typo * chore(ci): typo * refactor(cmake): revert to remove debug code, and taosadapter to ver-3.3.6.3 * refactor(cmake): remove DEP_ext_taosws * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): typo correction: utils/test/c/sml_test.c * debug(cmake): test cases debug * chore(cmake): make github ci to run with empty change * chore(ci): using tomchon-patch-3 branch for run-tests-on-linux for the moment * chore(cmake): make github ci to run with empty change * debug(test): revert utils/test/c/sml_test.c back to tdengine/main branch * debug(test): adding VERBOSE=1 and gcc --version * debug(test): revert tests/parallel_test/cases.task back to tdengine/main branch * debug: add log in run_case.sh * fix: test log * fix: docker run privileged * tes: add debug test in cases.task * refactor(cmake): remove ref to \contrib\<dep-name> and ~/.cos-local-{1,2} from CMakeLists.txt(s) * refactor(cmake): make taosudf link with libtaos.so * chore(cmake): fix compiler warning as error problem * refactor(cmake): revert 7d7f03832d20197a6cef5e5f0a48fff314851cf2 * chore(cmake): only udf.sim and udfpy.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug only udf.sim for the moment * debug(ci): debug only udf.sim for the moment, using tee * debug(ci): debug only udf.sim for the moment, revert using tee * debug(ci): debug only udf.sim for the moment, adding TAOS_LIB again * debug(cmake): adding -rdynamic for the moment * debug(cmake): re-adding udfpy.sim * debug(cmake): do NOT run with Sanitizer for udfpy.sim for the moment * chore(cmake): revert cases.task, and remove ubuntu-20.04 from tdengine-build.yml * refactor(cmake): using ENABLE_EXPORTS to export symbols in taosudf * chore(cmake): make github ci to run with empty change * chore(cmake): remove stuffs for debug purpose and revert --------- Co-authored-by: support-platform <it@taosdata.com> Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: haoranchen <haoran920c@163.com>
2025-04-19 06:03:29 +00:00
copy /y C:\\TDengine\\bin\\taos.dll %windir%\\sysnative > nul
copy /y C:\\TDengine\\bin\\taosnative.dll %windir%\\sysnative > nul
copy /y C:\\TDengine\\bin\\pthreadVC3.dll %windir%\\sysnative > nul
if exist C:\\TDengine\\bin\\taosws.dll (
copy /y C:\\TDengine\\bin\\taosws.dll %windir%\\sysnative > nul
)
) else (
echo x64
Freemine.cmake.3.0 (#30663) * chore(ci): with cmake verbose, temporarily * chore(cmake): prefer Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): try adding Threads::Threads * fix(cmake): debug building gtest on ubuntu 20.04 for the moment * fix(cmake): revert taosd-ci-build.yml * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment * fix(cmake): debug building on ubuntu 20.04 for the moment, adding dl right after DEP_ext_libuv * fix(cmake): debug building on ubuntu 20.04 for the moment, try full run * fix(cmake): fix building on ubuntu 20.04 * fix(cmake): dl is only valid in non-windows platform * fix(cmake): dl order * refactor(cmake): adjust option/cache variables for external dependencies * refactor(cmake): mv patch files from contrib/ to cmake/ * refactor(cmake): typo * refactor(cmake): adding cache on ci * refactor(cmake): 1. ext_lzma2 is only used by Linux 2. fix bug in taosd-ci-build.yml * enh: adding functionalities of build.sh * fix(ci): `cmake -B` shall maintain consistency * refactor(cmake): LOCAL_REPO/LOCAL_URL as cache variable * refactor(cmake): taosadapter to be built in main build directory rather than .externals * refactor(cmake): adding rpath for taosadapter, linux now * refactor(cmake): adding rpath for taosadapter, macos now * chore(cmake): remove some comments * debug(ci): bypass TD_EXTERNALS_USE_ONLY * debug(ci): bypass .externals caching for the moment * fix(cmake): temporarily use taosadapter/main branch because this branch(freemine.cmake.3.0) has not include taos_fetch_fields_e from upstream * refactor(cmake): clean GIT_TAG/GIT_SHALLOW pairs * enh(ci): use build.sh rather than hard-coded in taosd-ci-build.yml, linux for now * debug(ci): undefined __isoc23_strtoull * debug(ci): benchmarkTest * debug(ci): what if use_only = off * debug(ci): remove .externals to make a refresh build * debug(ci): back to cache, and ls files of gtest * debug(ci): remove find coz {} not escaped * debug(ci): cache key seems missing "matrix.os" * refactor(ci): fixed cache key and reopen macos/windows * chore(ci): literally -j4 * chore(ci): Trigger GitHub Actions re-run * chore(ci): Trigger GitHub Actions re-run * fix(ci): typo * chore(ci): JOBS calculated by build.sh itself * refactor(ci): enable WEBSOCKET in build.sh by default * refactor(ci): enable WEBSOCKET in build.sh by default, macOS * chore(cmake): remove obsoletes * refactor(ci): stop service before running taosd * chore(ci): `./build.sh install` just install TDengine, you will have to start taosd by `./build.sh start` * refactor(cmake): adding source code found on http://emfisis.physics.uiowa.edu/Software/C/libargp/ * refactor(cmake): moving jansson/snappy/avro to .externals, and porting BUILD_TEST/WEBSOCKET on Windows * refactor(cmake): porting linux * refactor(cmake): porting macos 1. check argp.h 2. re-enable building taosdump * refactor(cmake): porting linux 1. adjust CMAKE_C/CXX_FLAGS * refactor(cmake): porting windows, adjust CMAKE_C/CXX_FLAGS * refactor(cmake): use cmake_parse_arguments in macro INIT_EXT * refactor(cmake): format ci cache directives * refactor(cmake): adding comments for ci externals-cache directives * refactor(cmake): adding check_env.cmake to checking libraries installed on the system * refactor(cmake): porting linux, make homebrew-installed-libs available * refactor(cmake): remove BYPRODUCTS from INIT_EXT macro * refactor(cmake): INC_DIR is oneValueArg * refactor(cmake): taosdump depends on ext_xz(LZMA) * refactor(cmake): add copy_pthreadVC3 target on windows * refactor(cmake): mv taosd-ci-build.yml to tdengine-build.yml * chore(ci): try to fix yml syntax error * refactor(cmake): use brew --prefix to get HomeBrew's install path * refactor(cmake): typo * debug(ci): build and cache externals first * debug(ci): adding -Wno-stringop-overread for the moment * debug(ci): make Threads::Threads public from os target * debug(ci): make os public * debug(ci): re-enable start and test * debug(ci): let it go even if taosBenchmark failed * debug(ci): copy logic from TDengine/main * debug(ci): try ./build.sh start/test * debug(ci): revert to original simple test logic in ci, taosBenchark/taos * chore(cmake): code-convention and ci-logic * debug(ci): show versions * debug(ci): forcefully use specific GIT_TAG by commit-id for taos-connector-rust.git and taosadapter.git * refactor(cmake): remove empty lines * debug(ci): typo * debug(ci): set supportVnodes to 256 before starting taosd * debug(ci): fix: sudo and pipe * debug(ci): cat /etc/taos/taos.cfg to check if supportVnodes effective * debug(ci): cat forceReadConfig to taos.cfg * debug(ci): adding taos -s "show dnodes" * debug(ci): print more info * debug(ci): 1. git log .... in an independant step 2. sleep 3 deliberately * build: release ver-3.3.6.0 * chore(ci): comment and remove unnecessary code * refactor(ci): cleanup tools/CMakeLists.txt 1. remove unnecessary or uneffective codes 2. better approach to pass compile flags to go * chore(cmake): remove unnecessary code * merge(cmake): porting linux * merge(cmake): porting macOS * merge(cmake): porting windows * merge(cmake): pitfall fix: use literal format string instead * merge(cmake): ver-3.3.6.0 for both taosadatper and taosws * merge(cmake): adjust ci for debug purposes * merge(cmake): add dependenices to make sure native built * merge(main): link os * merge(main): revert to main * chore(cmake): remove freemine'd comments * chore(cmake): make github ci to run with empty change * refactor(cmake): remove unnecessaries * refactor(cmake): remove unnecessaries * chore(cmake): 1. remove taosudf in build.sh::do_purge 2. packaging taosBenchmark * chore(cmake): 1. typo corrections 2. add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): show cmake version * chore(cmake): add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to bypass compatibility check imposed by latest cmake since 4.0 * chore(cmake): typo * chore(cmake): remove unnecessaries * cmake: debug enterprise compilation * refactor: preparatory work before merging the freemin PR * refactor(cmake): revert to d91205594ac3918e1e21fd16bb48506d20d32590 * refactor(cmake): optimize by adjusting cache key * chore(cmake): make github ci to run with empty change * refactor(cmake): move libs3 and azure to external.cmake * refactor(cmake): porting macOS * refactor(cmake): move cos to external.cmake * refactor(cmake): bypass s3/azure/cos on windows for the moment * refactor(cmake): try find_package(Threads) * refactor(cmake): add dl/pthread in libs3 * refactor(cmake): enable s3/azure for the moment, hard-coded * refactor(cmake): adjust BUILD_WITH_ANALYSIS option * refactor(cmake): 1. enum AVROTYPE => enum enAVROTYPE 2. remove INSTALL(CODE ...) from tools/taos-tools/CMakeLists.txt * refactor(cmake): portint macOS and typo * refactor(cmake): ticking external cache key to force refresh external building * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes * refactor(cmake): remove obsoletes, contrib/deps-download related * refactor(cmake): adding build.bat, and use build.bat in .github/workflows/tdengine-build.yml * refactor(cmake): 1. call .\build.bat 2. remove POST_BUILD which is not valid in this signature of add_custom_command * refactor(ci): use 'NMake Makefiles JOM' * refactor(ci): typo * refactor(ci): debug * refactor(ci): debug * refactor(ci): debug * refactor(ci): use call on windows * refactor(cmake): move utils/TSZ to contrib/TSZ * chore(cmake): make github ci to run with empty change * refactor(cmake): mv cmake.* -> *.cmake and related in CMakeLists.txt * refactor(cmake): debugging integrating community * refactor(cmake): debugging integrating community * chore(cmake): make github ci to run with empty change * refactor(cmake): revert geos.git back to 3.12.0 * refactor(cmake): revert doc/** to main branch * refactor(cmake): revert tests/** to main branch, except tests/taosc_test/CMakeLists.txt * refactor(cmake): revert test/cases/** to main branch * refactor(cmake): revert test/docs/** to main branch * refactor(cmake): revert tools/taos-tools/deps/{avro,jansson,libargp,snappy,zlib-1.2.13} to main branch, which need to be removed later * refactor(ci): revert .github/workflows/{deploy-case-docs.yml,tdengine-doc-build.yml} to main branch * refactor(cmake): revert tcommon.h and related to main branch * refactor(cmake): revert test/* stuffs back to main branch * refactor(cmake): revert libuv.git back to v1.49.2 * refactor(cmake): revert .h/.c and related to main branch * refactor(cmake): typo format string * refactor(cmake): typo correction, incorrect use of macro `assert` * refactor(cmake): adding /wd4028 to bypass thttp.c under enterprise build for the moment * refactor(cmake): 1. adding some rules to .gitignore for the last resort to save 2. adding source files manually to source/libs/parser/CMakeLists.txt to exclude potential sql.c generated by old build system * refactor(cmake): add -Wno-unused-result for the moment * refactor(cmake): adjust target dependencies * refactor(cmake): tweaking building of mxml * refactor(cmake): adjust externals CMAKE_ARGS to save compilation time * refactor(cmake): temporarily use tomchon-patch-3 * refactor(cmake): temporarily adding dumpbin directives * refactor(cmake): adding NODEFAULTLIB temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:libcpmt temporarily for debugging purpose * refactor(cmake): adding NODEFAULTLIB:cpmt temporarily for debugging purpose * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * refactor(ci): use freemine.debug branch for the moment * refactor(ci): revert back to use run-tests-on-windows.yml of tomchon-patch-3 branch * chore(cmake): make github ci to run with empty change * refactor(cmake): remove temporary debug directives * refactor(cmake): move cmake_policy(..CMP0135..) to the root of this project * refactor(cmake): Remove temporary debugging conditional and restore original logic * chore(cmake): adding -B in army tests * chore(cmake): make github ci to run with empty change * chore(cmake): revert: adding -B in army tests * refactor(cmake): 1. use ver-3.3.6.3 of taosadapter 2. pitfall fix: do not link with taosws for taos shell * refactor(cmake): revert taosadapter to ver-3.3.6.0 * chore(cmake): adding logging message in more detail * chore(cmake): adding logging message in more detail * chore(ci): debugging by using ls -l * chore(ci): typo * chore(ci): typo * refactor(cmake): revert to remove debug code, and taosadapter to ver-3.3.6.3 * refactor(cmake): remove DEP_ext_taosws * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): make github ci to run with empty change * chore(cmake): typo correction: utils/test/c/sml_test.c * debug(cmake): test cases debug * chore(cmake): make github ci to run with empty change * chore(ci): using tomchon-patch-3 branch for run-tests-on-linux for the moment * chore(cmake): make github ci to run with empty change * debug(test): revert utils/test/c/sml_test.c back to tdengine/main branch * debug(test): adding VERBOSE=1 and gcc --version * debug(test): revert tests/parallel_test/cases.task back to tdengine/main branch * debug: add log in run_case.sh * fix: test log * fix: docker run privileged * tes: add debug test in cases.task * refactor(cmake): remove ref to \contrib\<dep-name> and ~/.cos-local-{1,2} from CMakeLists.txt(s) * refactor(cmake): make taosudf link with libtaos.so * chore(cmake): fix compiler warning as error problem * refactor(cmake): revert 7d7f03832d20197a6cef5e5f0a48fff314851cf2 * chore(cmake): only udf.sim and udfpy.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug udf.sim for the moment * debug(ci): debug only udf.sim for the moment * debug(ci): debug only udf.sim for the moment, using tee * debug(ci): debug only udf.sim for the moment, revert using tee * debug(ci): debug only udf.sim for the moment, adding TAOS_LIB again * debug(cmake): adding -rdynamic for the moment * debug(cmake): re-adding udfpy.sim * debug(cmake): do NOT run with Sanitizer for udfpy.sim for the moment * chore(cmake): revert cases.task, and remove ubuntu-20.04 from tdengine-build.yml * refactor(cmake): using ENABLE_EXPORTS to export symbols in taosudf * chore(cmake): make github ci to run with empty change * chore(cmake): remove stuffs for debug purpose and revert --------- Co-authored-by: support-platform <it@taosdata.com> Co-authored-by: Simon Guan <slguan@taosdata.com> Co-authored-by: Simon Guan <guanshengliang@qq.com> Co-authored-by: haoranchen <haoran920c@163.com>
2025-04-19 06:03:29 +00:00
copy /y C:\\TDengine\\bin\\taos.dll C:\\Windows\\System32 > nul
copy /y C:\\TDengine\\bin\\taosnative.dll C:\\Windows\\System32 > nul
copy /y C:\\TDengine\\bin\\pthreadVC3.dll C:\\Windows\\System32 > nul
if exist C:\\TDengine\\bin\\taosws.dll (
copy /y C:\\TDengine\\bin\\taosws.dll C:\\Windows\\System32 > nul
)
2022-10-26 08:14:32 +00:00
)
rem // create services
sc create "taosd" binPath= "C:\\TDengine\\taosd.exe --win_service" start= DEMAND
sc create "taosadapter" binPath= "C:\\TDengine\\taosadapter.exe" start= DEMAND
sc create "taoskeeper" binPath= "C:\\TDengine\\taoskeeper.exe" start= DEMAND
set "env=HKLM\System\CurrentControlSet\Control\Session Manager\Environment"
for /f "tokens=2*" %%I in ('reg query "%env%" /v Path ^| findstr /i "\<Path\>"') do (
call :append_if_not_exists %%J
rem // apply change to the current process
for %%a in ("%%J;C:\TDengine") do path %%~a
)
rem // use setx to set a temporary throwaway value to trigger a WM_SETTINGCHANGE
rem // applies change to new console windows without requiring a reboot
(setx /m foo bar & reg delete "%env%" /f /v foo) >NUL 2>NUL
goto :end
:append_if_not_exists
set "_origin_paths=%*"
set "_paths=%*"
set "_found=0"
:loop
for /f "tokens=1* delims=;" %%x in ("%_paths%") do (
if "%%x" EQU "C:\TDengine" (
set "_found=1"
) else (
set "_paths=%%y"
goto :loop
)
)
if "%_found%" == "0" (
rem // make addition persistent through reboots
reg add "%env%" /f /v Path /t REG_EXPAND_SZ /d "%_origin_paths%;C:\TDengine"
)
exit /B 0
:stop_delete
sc stop taosd
sc delete taosd
sc stop taosadapter
sc delete taosadapter
sc stop taoskeeper
sc delete taoskeeper
exit /B 0
:check_svc
sc query %1 >nul 2>nul && goto :check_svc %1
exit /B 0
:end