Commit 8ad82bac authored by dmaclach@chromium.org's avatar dmaclach@chromium.org

Strip linux symbols from official remoting builds.

BUG=87300
TEST=Build official linux build

Review URL: http://codereview.chromium.org/7967015

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102388 0039d316-1c4b-4281-b951-d872f2087c98
parent 1fb4443e
...@@ -321,7 +321,7 @@ ...@@ -321,7 +321,7 @@
], ],
'action': [ 'action': [
'python', 'webapp/build-webapp.py', 'python', 'webapp/build-webapp.py',
'<(linux_strip_binary)', '<(buildtype)',
'<(host_plugin_mime_type)', '<(host_plugin_mime_type)',
'<(_output_dir)', '<(_output_dir)',
'<(_zip_path)', '<(_zip_path)',
......
...@@ -47,12 +47,12 @@ def createZip(zip_path, directory): ...@@ -47,12 +47,12 @@ def createZip(zip_path, directory):
zip.close() zip.close()
def buildWebApp(linux_strip, mimetype, destination, zip_path, plugin, files, def buildWebApp(buildtype, mimetype, destination, zip_path, plugin, files,
locales): locales):
"""Does the main work of building the webapp directory and zipfile. """Does the main work of building the webapp directory and zipfile.
Args: Args:
linux_strip: should we strip the build on Linux (0 or !0). buildtype: the type of build ("Official" or "Dev")
mimetype: A string with mimetype of plugin. mimetype: A string with mimetype of plugin.
destination: A string with path to directory where the webapp will be destination: A string with path to directory where the webapp will be
written. written.
...@@ -152,7 +152,7 @@ def buildWebApp(linux_strip, mimetype, destination, zip_path, plugin, files, ...@@ -152,7 +152,7 @@ def buildWebApp(linux_strip, mimetype, destination, zip_path, plugin, files,
shutil.copy2(plugin, newPluginPath) shutil.copy2(plugin, newPluginPath)
# Strip the linux build. # Strip the linux build.
if ((platform.system() == 'Linux') and (linux_strip != '0')): if ((platform.system() == 'Linux') and (buildtype == 'Official')):
subprocess.call(["strip", newPluginPath]) subprocess.call(["strip", newPluginPath])
# Add unique build numbers to manifest version. # Add unique build numbers to manifest version.
...@@ -181,7 +181,7 @@ def buildWebApp(linux_strip, mimetype, destination, zip_path, plugin, files, ...@@ -181,7 +181,7 @@ def buildWebApp(linux_strip, mimetype, destination, zip_path, plugin, files,
def main(): def main():
if len(sys.argv) < 6: if len(sys.argv) < 6:
print ('Usage: build-webapp.py ' print ('Usage: build-webapp.py '
'<linux-strip> <mime-type> <dst> <zip-path> <plugin> ' '<build-type> <mime-type> <dst> <zip-path> <plugin> '
'<other files...> --locales <locales...>') '<other files...> --locales <locales...>')
sys.exit(1) sys.exit(1)
......
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