1 Star 0 Fork 12

wshikh/third_party_opencv_sig

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pre_header_file_copy.py 1.27 KB
一键复制 编辑 原始数据 按行查看 历史
zhangshouzhong2021 提交于 2022-08-11 02:10 . Add opencv pre build filse
#!/usr/bin/env python
# Copyright (c) 2022 Kaihongdigi Limited,
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import os
import sys
import argparse
import shutil
def main():
print('[opencv] start run srcript {}.'.format(sys.argv[0]))
parser = argparse.ArgumentParser()
parser.add_argument('--src_file', default="./.pre_build", help='prebuild header file.')
parser.add_argument('--dest_file', default="./build", help='dest file.')
args = parser.parse_args()
if not os.path.exists(args.src_file):
print('prebuild header folder[{}] not exist'.format(args.src_file))
if os.path.exists(args.dest_file):
shutil.rmtree(args.dest_file, True)
shutil.copytree(args.src_file, args.dest_file)
if __name__ == '__main__':
sys.exit(main())
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wshikh/third_party_opencv_sig.git
git@gitee.com:wshikh/third_party_opencv_sig.git
wshikh
third_party_opencv_sig
third_party_opencv_sig
master

搜索帮助