layouts/aknlayout2/group/gencode.py
branchRCL_3
changeset 38 a10f447f38bd
child 45 6ef40bf8fd34
equal deleted inserted replaced
33:e2effe28d8cc 38:a10f447f38bd
       
     1 #!/usr/bin/python
       
     2 
       
     3 import os
       
     4 import os.path
       
     5 import shutil
       
     6 import glob
       
     7 
       
     8 if not os.path.exists('buildtemp'):
       
     9       os.mkdir('buildtemp')
       
    10 
       
    11 f = open('makefiles.txt','r')
       
    12 for line in f:
       
    13     line = line.rstrip()
       
    14     if line != "" :
       
    15         for target in ['MAKMAKE', 'RESOURCE', 'LIB', 'BLD']:
       
    16             parameter = "-f " + line +' '+target
       
    17 	    os.system("make" + " " +  parameter)
       
    18 
       
    19 f.close()
       
    20 
       
    21 
       
    22 filelist=glob.glob("./buildtemp/*.*")
       
    23 for file in filelist:
       
    24     shutil.copy(file, "../../../uiresources_plat/layout_data_api/inc")
       
    25 
       
    26 for file in filelist:
       
    27     shutil.copy(file, "../generated_inc")