107
|
1 |
#
|
|
2 |
# Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
#
|
|
16 |
|
|
17 |
#!/usr/bin/python
|
|
18 |
|
|
19 |
import os
|
|
20 |
import os.path
|
|
21 |
import shutil
|
|
22 |
import glob
|
|
23 |
|
|
24 |
if not os.path.exists('buildtemp'):
|
|
25 |
os.mkdir('buildtemp')
|
|
26 |
|
|
27 |
f = open('makefiles.txt','r')
|
|
28 |
for line in f:
|
|
29 |
line = line.rstrip()
|
|
30 |
if line != "" :
|
|
31 |
for target in ['MAKMAKE', 'RESOURCE', 'LIB', 'BLD']:
|
|
32 |
parameter = "-f " + line +' '+target
|
|
33 |
os.system("make" + " " + parameter)
|
|
34 |
|
|
35 |
f.close()
|
|
36 |
|
|
37 |
|
|
38 |
filelist=glob.glob("./buildtemp/*.*")
|
|
39 |
# for file in filelist:
|
|
40 |
# shutil.copy(file, "../../../uiresources_plat/layout_data_api/inc")
|
|
41 |
|
|
42 |
for file in filelist:
|
|
43 |
shutil.copy(file, "../generated_inc")
|