[Rom Size] Use system libpng 77/184777/2
authorYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 17 Jul 2018 01:23:19 +0000 (01:23 +0000)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 24 Jul 2018 05:34:20 +0000 (05:34 +0000)
The libchromium-ewk.so size can be reduced by using system libpng.

Note that this adds libpng 1.6 which ubuntu doesn't have
so that the library can be used for desktop build by jhbuild.

Change-Id: Id92c55f172c0a9591e19e0838e942aec6527489f
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
third_party/.gitignore
tizen_src/build/gn_chromiumefl.sh
tizen_src/build/jhbuild/jhbuild.modules

index 4ddbdc9..9f4bdbf 100644 (file)
 /libjpeg_turbo
 /liblouis/src
 /libphonenumber/dist
+/libpng
 /libsrtp
 /libsync/src
 /libupnp
index 704f9d1..3b7786d 100755 (executable)
@@ -98,6 +98,10 @@ COMMON_GN_PARAMETERS="
                       # proprietary_codecs=true
                       # enable_plugins=true
 
+SYSTEM_DEPS="--system-libraries
+             libpng
+            "
+
 if [ "$building_xwalk" == "1" ] && [ "$building_xwalk_for_development" != "1" ]; then
   COMMON_GN_PARAMETERS+="
                          xwalk_link_against_chromium_ewk=true
@@ -246,7 +250,6 @@ _GN_ARGS="
     --dotfile=${TOPDIR}/tizen_src/.gn
     --args=
     $COMMON_GN_PARAMETERS
-    $SYSTEM_DEPS
     $ADDITIONAL_GN_PARAMETERS
     $EXTRA_GN_ARGS
     "
index d30a2ab..a02f9d3 100755 (executable)
@@ -26,6 +26,8 @@
       href="http://git.gnome.org/"/>
   <repository type="tarball" name="gstreamer"
       href="http://gstreamer.freedesktop.org/src/"/>
+  <repository type="tarball" name="sourceforge.net"
+      href="http://sourceforge.net"/>
   <repository type="tarball" name="sourceware.org"
       href="http://sourceware.org"/>
   <repository type="tarball" name="freedesktop.org"
             md5sum="5abb364f2a0babe2ec1e3a6d59f69043"/>
   </autotools>
 
+  <autotools id="libpng" autogen-sh="configure">
+    <branch module="projects/libpng/files/libpng16/1.6.34/libpng-1.6.34.tar.xz" version="1.6.34"
+            repo="sourceforge.net"
+            md5sum="c05b6ca7190a5e387b78657dbe5536b2">
+    </branch>
+  </autotools>
+
   <autotools id="libsoup"
              autogen-sh="configure"
              autogenargs="--without-gnome --disable-introspection">