PierceNg / Moz2D

Scripts to compile gfx/2d part of Mozilla Firefox as single shared library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moz2D Build Status Build status Download

Scripts to compile gfx part of Mozilla Firefox as single shared library

Compile shared library (32 bit):

./build.sh --arch i386

Or 64 bit:

./build.sh --arch x86_64

Binary will be in build/ folder

Dependencies

Tools:
git >= 1.7.12 node >= v0.11.12 python cmake >= 3.0 make autoconf 2.13 gcc-multilib >= 5.3
Utilities:
wget patch which tar

OSX

Install dependencies with homebrew http://brew.sh:

brew install wget node cmake yasm homebrew/versions/autoconf213 

Ubuntu / Travis

General dependencies:

sudo apt-get install git autoconf2.13 yasm

Install CMake 3:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get install cmake

Install latest Node.js:

curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
sudo apt-get install -y nodejs

64bit

The following packages are required to build 64bit plugin

sudo apt-get install libgtk2.0-dev libgtk-3-dev libgconf2-dev
sudo apt-get install libasound2-dev libpulse-dev
sudo apt-get libxt-dev libxext-dev libxcb-shm0-dev libx11-xcb-dev
sudo apt-get mesa-common-dev

32bit (Do not install on your 64bit working station, it will break UI apps!)

Make sure to register i386 architecture

sudo dpkg --add-architecture i386
sudo apt-get update
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig/

32bit build requires a few additional packages

sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install libgirepository-1.0-1:i386
sudo apt-get install libglib2.0-dev:i386 libatk1.0-dev:i386 libcairo2-dev:i386 libgdk-pixbuf2.0-dev:i386 libpango1.0-dev:i386 libgtk2.0-dev:i386

sudo apt-get install libxkbcommon-dev:i386 libgtk-3-dev:i386
sudo apt-get install libfreetype6-dev:i386 libgconf2-dev:i386
sudo apt-get install libasound2-dev:i386 libpulse-dev:i386
sudo apt-get install libxt-dev:i386 libxext-dev:i386 libxcb-shm0-dev:i386 libx11-xcb-dev:i386
sudo apt-get install mesa-common-dev:i386 libgl1-mesa-dev:i386

Windows (in progress)

About

Scripts to compile gfx/2d part of Mozilla Firefox as single shared library


Languages

Language:C++ 54.8%Language:JavaScript 36.6%Language:C 4.4%Language:CMake 2.7%Language:PowerShell 1.3%Language:Shell 0.2%