crosswalk-project/crosswalk — pull request #755 by shaochangbin (2013-09-24 05:48:42+00:00)
Title: [Tizen] Implement install/uninstall package information.

We aleady have the Python implementation to install/uninstall package
information on Tizen.
https://github.com/crosswalk-project/crosswalk/pull/493;
https://github.com/crosswalk-project/crosswalk/pull/665.

This CL is the C++ implementation to replace above pull requests.
For installation,
1. Generate Tizen pkginfo compatible XML file from Crosswalk manifest.json.
2. Copy or link resources for home screen launch. Resources are located at,
icon: /opt/share/icons/default/small/|package_id|.png
execute path:/opt/usr/apps/applications/|package_id_|/bin/|package_id_|
3. Install package information into Tizen database.

For uninstallation,
1. Uninstall pkginfo from Tizen database.
2. Remove application icons, execute path and XML file from Tizen system.

Instead of using 'pkginfo' command to install/uninstall package
information on Tizen database, this CL directly calls Tizen C APIs from
pkgmgr-parser.h. The GYP configuration to include Tizen libraries is
borrowed from
https://github.com/crosswalk-project/crosswalk/pull/570 (build/system.gyp)