Giter VIP home page Giter VIP logo

moz2d's Introduction

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

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)

moz2d's People

Contributors

syrel avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.