This commit is contained in:
aozhiwei 2019-05-31 10:28:22 +08:00
parent 3120257ff9
commit bdc2534e0a
2 changed files with 7 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def need_rebuild():
return True
s1 = os.stat(proto_name + '.pb.cc')
s2 = os.stat('../tools/protobuild/' + proto_name + '.proto')
if s1.st_mtime < s2.st_mtime:
if s1.st_size <= 0 or s1.st_mtime < s2.st_mtime:
return True
return False

View File

@ -43,6 +43,12 @@ aux_source_directory(../../third_party/framework/cpp
SRC_LIST
)
execute_process(
COMMAND touch -a ss_proto.pb.h
COMMAND touch -a ss_proto.pb.cc
COMMAND touch -a ss_msgid.pb.h
COMMAND touch -a ss_msgid.pb.cc
)
aux_source_directory(.
SRC_LIST
)