|
1 # Copyright (c) 2008-2009 Nokia Corporation |
|
2 # |
|
3 # Licensed under the Apache License, Version 2.0 (the "License"); |
|
4 # you may not use this file except in compliance with the License. |
|
5 # You may obtain a copy of the License at |
|
6 # |
|
7 # http://www.apache.org/licenses/LICENSE-2.0 |
|
8 # |
|
9 # Unless required by applicable law or agreed to in writing, software |
|
10 # distributed under the License is distributed on an "AS IS" BASIS, |
|
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
12 # See the License for the specific language governing permissions and |
|
13 # limitations under the License. |
|
14 # |
|
15 |
|
16 import os |
|
17 import shutil |
|
18 |
|
19 ensymble_dependencies = ['\\epoc32\\release\\armv5\\urel\\python_console.exe', |
|
20 '\\epoc32\\release\\armv5\\urel\\python_ui.exe', |
|
21 '..\\..\\..\\ext\\amaretto\\python_ui\\src\\launcher.py', |
|
22 '..\\..\\..\\ext\\amaretto\\calendar\\src\\calendar.py', |
|
23 '..\\..\\..\\ext\\amaretto\\socket\\src\\socket.py', |
|
24 'prefix_data.txt'] |
|
25 |
|
26 ${{if INCLUDE_INTERNAL_SRC |
|
27 ensymble_dependencies.append('\\epoc32\\release\\${{DEVICE_PLATFORM}}\\${{DEVICE_BUILD}}\\Py_iad_client.dll'); |
|
28 }} |
|
29 |
|
30 def generate_ensymble(): |
|
31 if os.path.exists("templates"): |
|
32 shutil.rmtree("templates") |
|
33 os.mkdir("templates") |
|
34 for item in ensymble_dependencies: |
|
35 shutil.copy(item, ".\\templates") |
|
36 run_cmd = 'python squeeze\\squeeze.py -1 -o ensymble -b cmdmain ' \ |
|
37 + 'cmdmain.py cmd_altere32.py cmd_genuid.py cmd_infoe32.py ' \ |
|
38 + 'cmd_mergesis.py cmd_py2sis.py cmd_signsis.py cmd_simplesis.py ' \ |
|
39 + 'cmd_version.py cryptutil.py miffile.py rscfile.py sisfield.py ' \ |
|
40 + 'sisfile.py symbianutil.py defaultcert.py module_repo.py' |
|
41 os.system(run_cmd) |
|
42 |
|
43 |
|
44 if __name__ == '__main__': |
|
45 generate_ensymble() |