Changeset 3297 for pjproject/trunk/tests/automated/configure.py
- Timestamp:
- Aug 26, 2010 8:17:01 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/tests/automated/configure.py
r3294 r3297 85 85 class S60SDK: 86 86 def __init__(self): 87 self.epocroot = "" 88 self.sdk = "" 89 self.device = "" 90 87 91 # Check that EPOCROOT is set 88 92 if not "EPOCROOT" in os.environ: … … 94 98 epocroot = epocroot + "\\" 95 99 os.environ["EPOCROOT"] = epocroot 96 sdk1 = epocroot.split("\\")[-2] 100 self.epocroot = epocroot 101 self.sdk = sdk1 = epocroot.split("\\")[-2] 102 self.device = "@" + self.sdk + ":com.nokia.s60" 97 103 98 104 # Check that correct device is set … … 124 130 125 131 # osinfo 132 s60sdk_var = None 126 133 if build_type == "s60": 127 os_info = S60SDK().name 134 s60sdk_var = S60SDK() 135 os_info = s60sdk_var.name 128 136 elif platform.system().lower() == "windows" or platform.system().lower() == "microsoft": 129 137 if platform.system().lower() == "microsoft": … … 154 162 suffix = "i386-Win32-vc8-" + vs_target 155 163 elif build_type == "s60": 156 suffix = S60SDK().name + "-" + s60_target.replace(" ", "-")164 suffix = s60sdk_var.name + "-" + s60_target.replace(" ", "-") 157 165 elif build_type == "gnu": 158 166 proc = subprocess.Popen("sh config.guess", cwd="../..", … … 183 191 elif text.find("$(S60TARGETNAME)") >= 0: 184 192 text = text.replace("$(S60TARGETNAME)", s60_target.replace(" ", "-")) 193 elif text.find("$(S60DEVICE)") >= 0: 194 text = text.replace("$(S60DEVICE)", s60sdk_var.device) 195 elif text.find("$(EPOCROOT)") >= 0: 196 text = text.replace("$(EPOCROOT)", s60sdk_var.epocroot) 185 197 elif text.find("$(DISABLED)") >= 0: 186 198 text = text.replace("$(DISABLED)", "0")
Note: See TracChangeset
for help on using the changeset viewer.