File indexing completed on 2024-05-19 05:42:35
0001 # Only some specific files need to be cleaned for our project. That's why we do not run 'accept' in all the files. 0002 ACCEPT_NAMES = [ 0003 'version', 0004 'preferences', 0005 'qrc_resources', 0006 ] 0007 0008 0009 def is_valid_build_path(path): 0010 import os 0011 dirname = os.path.dirname(path) 0012 return os.path.isfile(f'{dirname}/codevispreferences_export.h') 0013 0014 0015 def is_valid_src_path(path): 0016 import os 0017 dirname = os.path.dirname(path) 0018 return os.path.isfile(f'{dirname}/codevis.desktop') 0019 0020 0021 def accept(path): 0022 if 'diagram-server/desktopapp/' in path: 0023 return True 0024 0025 if '/codevisadaptor' in path: 0026 return True 0027 0028 if not is_valid_build_path(path) and not is_valid_src_path(path): 0029 return False 0030 for f in ACCEPT_NAMES: 0031 if f in path: 0032 return True 0033 return False 0034 0035 0036 def process(path, addPkg): 0037 if 'desktopapp' in path: 0038 pkgName = 'lvt-desktopapp' 0039 elif '/codevisadaptors' in path: 0040 pkgName = 'lvt-desktopapp' 0041 else: 0042 pkgName = 'lvt-buildfiles' 0043 0044 addPkg(pkgName, None, None, None) 0045 return pkgName