CMake build scripts: prepare for multiple module support.
Generalize CMake build scripts to be able to easily add new modules (such as box or feeder). Move prscfg.{h,c} (confetti general library and header) from third_party/confetti/ to cfg/ to simplify the build. Update configuration file templates and parsing code to use the new confetti. Rename cfg/tarantool_cfg.h to cfg/warning.h, to be able to reuse it in warning.c. Update tests. Note: tarantool_feeder is now built in mod/feeder; tarantool_silverbox is built in mod/silverbox. Modify .gitignore accordingly.
Showing
- .gitignore 2 additions, 2 deletions.gitignore
- CMakeLists.txt 16 additions, 5 deletionsCMakeLists.txt
- cfg/CMakeLists.txt 77 additions, 0 deletionscfg/CMakeLists.txt
- cfg/prscfg.c 186 additions, 105 deletionscfg/prscfg.c
- cfg/prscfg.h 0 additions, 0 deletionscfg/prscfg.h
- cfg/tarantool_feeder_cfg.c 19 additions, 4 deletionscfg/tarantool_feeder_cfg.c
- cfg/tarantool_feeder_cfg.h 12 additions, 2 deletionscfg/tarantool_feeder_cfg.h
- cfg/tarantool_silverbox_cfg.c 1 addition, 1 deletioncfg/tarantool_silverbox_cfg.c
- cfg/tarantool_silverbox_cfg.h 6 additions, 1 deletioncfg/tarantool_silverbox_cfg.h
- cfg/warning.c 1 addition, 1 deletioncfg/warning.c
- cfg/warning.h 1 addition, 1 deletioncfg/warning.h
- core/CMakeLists.txt 20 additions, 118 deletionscore/CMakeLists.txt
- mod/CMakeLists.txt 31 additions, 0 deletionsmod/CMakeLists.txt
- mod/feeder/CMakeLists.txt 1 addition, 0 deletionsmod/feeder/CMakeLists.txt
- mod/silverbox/CMakeLists.txt 11 additions, 0 deletionsmod/silverbox/CMakeLists.txt
- test/CMakeLists.txt 1 addition, 1 deletiontest/CMakeLists.txt
- test/box/reconfigure.result 1 addition, 1 deletiontest/box/reconfigure.result
Loading
Please register or sign in to comment