Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamjs committed Apr 3, 2019
0 parents commit c74e806
Show file tree
Hide file tree
Showing 12 changed files with 113 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# WebCore Dependencies

This repo contains instructions for building the dependencies for our WebCore port.

Pre-built binaries for each platform are provided via GitHub Releases.
10 changes: 10 additions & 0 deletions WebKitLibraries/source/curl-7.61.0/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Build requirements:
You must have already built and installed openssl

To build:
cd into source
./configure CFLAGS='-Os' CC='clang' CXX='clang++' --disable-shared --with-ssl=/usr/local/ssl
make

Build products (libcurl.a) will be in: lib/.libs

10 changes: 10 additions & 0 deletions WebKitLibraries/source/freetype-2.6.5/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
To build:

./configure --disable-shared --with-zlib=no --with-bzip2=no CPPFLAGS='-fPIC' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Install it so we can build harfbuzz:
sudo make install

Output will be in:
/objs/.libs/libfreetype.a
13 changes: 13 additions & 0 deletions WebKitLibraries/source/harfbuzz-1.3.4/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Before you build:

Build and install freetype

Make sure pkg-config is installed otherwise it won't be able to find freetype:
sudo apt install pkg-config

To build:

./configure --enable-static --disable-shared --with-freetype=yes --with-icu=yes --with-cairo=no --with-gobject=no --with-glib=no --with-fontconfig=no CPPFLAGS='-fPIC -DU_DISABLE_RENAMING=1 -DU_STATIC_IMPLEMENTATION=1' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Build products (libharfbuzz.a and libharfbuzz-icu.a) will be in src/.libs
12 changes: 12 additions & 0 deletions WebKitLibraries/source/icu-56.1/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Before you build:
Copy icudt56l.dat into icu/source/data/in and replace the existing file.

To build on mac/linux:
cd into icu/source
./configure --enable-static --disable-shared --disable-dyload --disable-renaming CPPFLAGS='-fPIC' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Install it so we can build Harfbuzz:
sudo make install

Build products will be in icu/source/lib
Binary file added WebKitLibraries/source/icu-56.1/icudt56l.dat
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Before you build, make sure nasm is installed:
sudo apt install nasm

To build:

./configure --enable-static --disable-shared CPPFLAGS='-fPIC' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Build products (libjpeg.a) will be in .libs
7 changes: 7 additions & 0 deletions WebKitLibraries/source/libpng-1.6.35/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

To build:

./configure --enable-static --disable-shared CPPFLAGS='-fPIC' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Build products (libpng16.a) will be in .libs directory
9 changes: 9 additions & 0 deletions WebKitLibraries/source/libxml2-2.9.7/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
To build:

./configure --enable-static --disable-shared --with-python=no CPPFLAGS='-fPIC' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Install it so we can build libxslt:
sudo make install

Build products (libxml2.a) will be in .libs
9 changes: 9 additions & 0 deletions WebKitLibraries/source/libxslt-1.1.32/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Build requirements:
Make sure LIBTOOL is installed:
sudo apt install libtool

To build:
./autogen.sh --enable-static --disable-shared --with-python=no CPPFLAGS='-fPIC' CXXFLAGS='-Os' CFLAGS='-Os' CC='clang' CXX='clang++'
make

Build products (libxslt.a) will be in libxslt/.libs
13 changes: 13 additions & 0 deletions WebKitLibraries/source/openssl-1.0.2p/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
To build on linux:
cd into source

For 64-bit:
./Configure no-shared linux-x86_64-clang -fPIC -Os
For 32-bit:
CC=clang CXX=clang++ ./Configure no-shared linux-elf -fPIC -Os
make

Install it so we can build cURL later:
sudo make install

Build products (libssl.a and libcrypto.a) will be in same source directory
16 changes: 16 additions & 0 deletions WebKitLibraries/source/zlib-1.2.11/ULTRALIGHT-README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
To build:

For 64-bit:
CFLAGS="-m64 -Os -fPIC" CC="clang" CXX="clang++" ./configure --static

For 32-bit:
CFLAGS="-m32 -Os -fPIC" CC="clang" CXX="clang++" ./configure --static

Build it:
make

Build products (libz.a) will be in same source directory.

Install it so we can build libpng:

sudo make install

0 comments on commit c74e806

Please sign in to comment.