[DEV] add copy image API
This commit is contained in:
parent
a9ea020823
commit
cb71051059
@ -32,31 +32,32 @@ class Module:
|
|||||||
# Name of the module
|
# Name of the module
|
||||||
self.name=moduleName
|
self.name=moduleName
|
||||||
# Dependency list:
|
# Dependency list:
|
||||||
self.depends=[]
|
self.depends = []
|
||||||
# Documentation list:
|
# Documentation list:
|
||||||
self.documentation = None
|
self.documentation = None
|
||||||
# export PATH
|
# export PATH
|
||||||
self.export_path=[]
|
self.export_path = []
|
||||||
self.local_path=[]
|
self.local_path = []
|
||||||
self.export_flags_ld=[]
|
self.export_flags_ld = []
|
||||||
self.export_flags_cc=[]
|
self.export_flags_cc = []
|
||||||
self.export_flags_xx=[]
|
self.export_flags_xx = []
|
||||||
self.export_flags_m=[]
|
self.export_flags_m = []
|
||||||
self.export_flags_mm=[]
|
self.export_flags_mm = []
|
||||||
# list of all flags:
|
# list of all flags:
|
||||||
self.flags_ld=[]
|
self.flags_ld = []
|
||||||
self.flags_cc=[]
|
self.flags_cc = []
|
||||||
self.flags_xx=[]
|
self.flags_xx = []
|
||||||
self.flags_m=[]
|
self.flags_m = []
|
||||||
self.flags_mm=[]
|
self.flags_mm = []
|
||||||
self.flags_s=[]
|
self.flags_s = []
|
||||||
self.flags_ar=[]
|
self.flags_ar = []
|
||||||
# sources list:
|
# sources list:
|
||||||
self.src=[]
|
self.src = []
|
||||||
# copy files and folders:
|
# copy files and folders:
|
||||||
self.files=[]
|
self.imageToCopy = []
|
||||||
self.folders=[]
|
self.files = []
|
||||||
self.isbuild=False
|
self.folders = []
|
||||||
|
self.isbuild = False
|
||||||
## end of basic INIT ...
|
## end of basic INIT ...
|
||||||
if moduleType == 'BINARY' \
|
if moduleType == 'BINARY' \
|
||||||
or moduleType == 'LIBRARY' \
|
or moduleType == 'LIBRARY' \
|
||||||
@ -570,11 +571,14 @@ class Module:
|
|||||||
def add_src_file(self, list):
|
def add_src_file(self, list):
|
||||||
self.append_to_internalList(self.src, list, True)
|
self.append_to_internalList(self.src, list, True)
|
||||||
|
|
||||||
def copy_file(self, src, dst):
|
def copy_image(self, source, destination='', sizeX=-1, sizeY=-1):
|
||||||
self.files.append([src,dst])
|
self.imageToCopy.append([source, destination, sizeX, sizeY])
|
||||||
|
|
||||||
def copy_folder(self, src, dst):
|
def copy_file(self, source, destination=''):
|
||||||
self.folders.append([src,dst])
|
self.files.append([source, destination])
|
||||||
|
|
||||||
|
def copy_folder(self, source, destination=''):
|
||||||
|
self.folders.append([source, destination])
|
||||||
|
|
||||||
def print_list(self, description, list):
|
def print_list(self, description, list):
|
||||||
if len(list) > 0:
|
if len(list) > 0:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user