Embedding/IPCLiteAPI: Difference between revisions

Line 53: Line 53:
== Build instructions: ==
== Build instructions: ==


Build mozilla engine with embedlite API
Clone repositories
<pre>
<pre>
mkdir ~/mozembed
cd ~/mozembed
# Gecko Engine with EmbedLite API
git clone git://github.com/tmeshkova/mozilla-central.git
git clone git://github.com/tmeshkova/mozilla-central.git
cd mozilla-central
git checkout embedlite
cp embedding/embedlite/config/mozconfig.qtdesktop  mozconfig
MOZCONFIG=$(pwd)/mozconfig make -f client.mk build_all


# Simple test to check
# Embedlite toolkit independent components (History,prompt et.c.)
cd obj-xr-qt/dist/bin
git clone git@github.com:tmeshkova/embedlite-components.git
./embedLiteCoreInitTest


# For development it is better to link xulrunner objdir to system
# qtmozembed - Qt wrapper library around EmbedLite API for quick integration into QML.
./link_to_system.sh obj-xr-qt /usr/local
git clone git@github.com:tmeshkova/qtmozembed.git
 
# Create *.pc files for building qtmozembed
cd obj-xr-qt/xulrunner/installer
make libxul.pc libxul-embedding.pc mozilla-nspr.pc mozilla-js.pc mozilla-nss.pc mozilla-plugin.pc


# qmlmozbrowser UI application which works as simple reference UI
git clone git@github.com:tmeshkova/qmlmozbrowser.git
</pre>
</pre>


Build qtmozembed - Qt wrapper library around EmbedLite API for quick integration into QML.
Build with dpkg-buildpackage
<pre>
<pre>
git clone git@github.com:tmeshkova/qtmozembed.git
cd ~/mozembed/mozilla-central
cd qtmozembed
dpkg-buildpackage -us -uc -b -nc
qmake
dpkg -i ../xulrunner*.deb
make -j9
 
./link_to_system.sh
cd ~/mozembed/embedlite-components
dpkg-buildpackage -us -uc -b -nc
dpkg -i ../embedlite-components*.deb
 
cd ~/mozembed/qtmozembed
dpkg-buildpackage -us -uc -b -nc
dpkg -i ../libqtmozembed*.deb
 
cd ~/mozembed/qmlmozbrowser
dpkg-buildpackage -us -uc -b -nc
dpkg -i ../qmlmozbrowser*.deb
</pre>
</pre>


Build embedlite toolkit independent components (History,prompt et.c.)
# Simple test to check
<pre>
<pre>
git clone git@github.com:tmeshkova/embedlite-components.git
/usr/lib/xulrunner-21.0a1/embedLiteCoreInitTest
cd embedlite-components
./autogen.sh
make -j9
./link_to_system.sh
</pre>
</pre>


Build qmlmozbrowser UI application which works as simple reference UI
# For development it is better to link xulrunner objdir to system (on desktop or on device with ~/mozembed mounted via NFS)
<pre>
<pre>
git clone git@github.com:tmeshkova/qmlmozbrowser.git
cd ~/mozembed/mozilla-central
cd qmlmozbrowser
./link_to_system.sh obj-xr-qt /usr
qmake
# for embedlite-components, qtmozembed, qmlmozbrowser just run
make -j9
./link_to_system.sh
./link_to_system.sh
</pre>
</pre>
Line 103: Line 104:
Finally run test example:
Finally run test example:
<pre>
<pre>
GRE_HOME=/usr/lib/xulrunner-21.0a1 qmlMozEmbedTest -url about:license
qmlMozEmbedTest -url about:license
</pre>
</pre>


Confirmed users
180

edits