Skip to content

版本管理

1 软件版本号

// DeeplvConfig.h.in

#ifndef INCLUDE_GUARD
#define INCLUDE_GUARD

#define OpenBrowser_NAME "OpenBrowser"
#define OpenBrowser_VER  "@OpenBrowser_VERSION@"
#define OpenBrowser_YEARS "2020"
#define OpenBrowser_VER_MAJOR "@OpenBrowser_VERSION_MAJOR@"
#define OpenBrowser_VER_MINOR "@OpenBrowser_VERSION_MINOR@"
#define OpenBrowser_VER_PATCH "@OpenBrowser_VERSION_PATCH@"

#endif // INCLUDE_GUARD
project(OpenBrowser VERSION "0.5.0")
configure_file(
    "${PROJECT_SOURCE_DIR}/DeeplvConfig.h.in"
    "${PROJECT_SOURCE_DIR}/Source/01Business/DeeplvConfig.h"
)
# configure_file作用就是拷贝文件

2 SVN 版本号

3 Git 版本号