Changeset View
Changeset View
Standalone View
Standalone View
helpers/create-abi-dump.py
Show First 20 Lines • Show All 233 Lines • ▼ Show 20 Line(s) | 227 | xml = """ | |||
---|---|---|---|---|---|
234 | </libs> | 234 | </libs> | ||
235 | <skip_include_paths> | 235 | <skip_include_paths> | ||
236 | /usr/lib/python3.6/site-packages/utils/fake_libc_include | 236 | /usr/lib/python3.6/site-packages/utils/fake_libc_include | ||
237 | /usr/include/clang/AST | 237 | /usr/include/clang/AST | ||
238 | /usr/lib64/clang/6.0.1/include | 238 | /usr/lib64/clang/6.0.1/include | ||
239 | </skip_include_paths> | 239 | </skip_include_paths> | ||
240 | <add_include_paths> | 240 | <add_include_paths> | ||
241 | {additionalIncludes} | 241 | {additionalIncludes} | ||
242 | /usr/lib64/qt5/mkspecs/linux-g++ | ||||
242 | </add_include_paths> | 243 | </add_include_paths> | ||
243 | """.format(version=version, headers="\n".join(headers), libs="\n".join(libs), additionalIncludes="\n".join(additionalIncludes)) # replace with f-String in Python 3.6 | 244 | """.format(version=version, headers="\n".join(headers), libs="\n".join(libs), additionalIncludes="\n".join(additionalIncludes)) # replace with f-String in Python 3.6 | ||
244 | 245 | | |||
245 | # Write the generated XML out to a file to pass to abi-compliance-checker | 246 | # Write the generated XML out to a file to pass to abi-compliance-checker | ||
246 | # We will give this to abi-compliance-checker using it's --dump parameter | 247 | # We will give this to abi-compliance-checker using it's --dump parameter | ||
247 | with open("{version}.xml".format(version=version),"w") as f: # replace with f-String in python 3.6 | 248 | with open("{version}.xml".format(version=version),"w") as f: # replace with f-String in python 3.6 | ||
248 | f.write(xml) | 249 | f.write(xml) | ||
249 | 250 | | |||
▲ Show 20 Lines • Show All 74 Lines • Show Last 20 Lines |