Commit cc0e0691 authored by ossy@webkit.org's avatar ossy@webkit.org
Browse files

Enable to use built-product-archive on Qt platform.

Patch by Gabor Rapcsanyi <rgabor@inf.u-szeged.hu> on 2010-03-04
Reviewed by Kenneth Rohde Christiansen.

* BuildSlaveSupport/built-product-archive:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 8f71f50f
......@@ -48,7 +48,7 @@ def main():
def archiveBuiltProduct(configuration, platform):
assert platform in ('mac', 'win')
assert platform in ('mac', 'win','qt')
archiveFile = os.path.join(buildDirectory, configuration + ".zip")
......@@ -81,8 +81,30 @@ def archiveBuiltProduct(configuration, platform):
shutil.rmtree(thinDirectory)
elif platform == 'qt':
configurationBuildDirectory = os.path.join(buildDirectory, configuration.title())
thinDirectory = os.path.join(configurationBuildDirectory, "thin")
if os.path.isdir(thinDirectory):
shutil.rmtree(thinDirectory)
os.mkdir(thinDirectory)
for dirname in ["bin", "lib", "JavaScriptCore"]:
fromDir = os.path.join(configurationBuildDirectory, dirname)
toDir = os.path.join(thinDirectory, dirname)
if subprocess.call(["cp", "-R", fromDir, toDir]):
return 1
for root, dirs, files in os.walk(thinDirectory, topdown=False):
for name in files:
if name.endswith(".o"):
os.remove(os.path.join(root, name))
if subprocess.call(["zip", "-y", "-r", archiveFile, "."], cwd=thinDirectory):
return 1
def extractBuiltProduct(configuration, platform):
assert platform in ('mac', 'win')
assert platform in ('mac', 'win','qt')
archiveFile = os.path.join(buildDirectory, configuration + ".zip")
......@@ -112,7 +134,15 @@ def extractBuiltProduct(configuration, platform):
if subprocess.call(["unzip", "-o", archiveFile], cwd=buildDirectory):
return 1
elif platform == 'qt':
configurationBuildDirectory = os.path.join(buildDirectory, configuration.title())
if os.path.isdir(configurationBuildDirectory):
shutil.rmtree(configurationBuildDirectory)
if subprocess.call(["unzip", "-o", archiveFile, "-d", configurationBuildDirectory], cwd=buildDirectory):
return 1
os.unlink(archiveFile)
if __name__ == '__main__':
sys.exit(main())
2010-03-04 Gabor Rapcsanyi <rgabor@inf.u-szeged.hu>
Reviewed by Kenneth Rohde Christiansen.
Enable to use built-product-archive on Qt platform.
* BuildSlaveSupport/built-product-archive:
2010-03-03 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
 
Reviewed by Simon Hausmann.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment