-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- make-image的依赖中添加check_git_status - build.py 脚本中调用check_git_status.generate_timestamp,防止在ninja中执行两次才能正确依赖
- Loading branch information
Showing
5 changed files
with
23 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
include_guard(GLOBAL) | ||
|
||
# 定义生成 git 状态时间戳文件的自定义命令 | ||
add_custom_command( | ||
OUTPUT .gitstatus.timestamp .gitstatus_make | ||
COMMAND ${Python3_EXECUTABLE} ${FLY_TOP_DIR}/tool/python/check_git_status.py --output-dir ${CMAKE_BINARY_DIR}/ | ||
COMMENT " " | ||
|
||
) | ||
|
||
# 添加自定义目标来生成 git 状态时间戳文件 | ||
add_custom_target(check_git_status ALL | ||
DEPENDS .gitstatus_make | ||
add_custom_target(check_git_status | ||
COMMAND ${Python3_EXECUTABLE} ${FLY_TOP_DIR}/tool/python/check_git_status.py --output-dir ${CMAKE_BINARY_DIR}/ | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters