2020-04-11 23:00:39 +00:00
|
|
|
# Build third party dependencies
|
|
|
|
.PHONY: all patch build skia libmypaint quazip gperftools qscintilla
|
|
|
|
|
|
|
|
all: patch build
|
|
|
|
|
|
|
|
patch:
|
|
|
|
patch -d gperftools -p1 < gperftools-enve-mod.patch
|
|
|
|
|
2020-04-12 08:00:40 +00:00
|
|
|
# install_deps:
|
|
|
|
# TODO: Integrate third-party build commands to Makefile,
|
|
|
|
# making it easier for CI and contributors to start up.
|
|
|
|
|
2020-04-11 23:00:39 +00:00
|
|
|
build: skia libmypaint quazip gperftools qscintilla
|
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
skia:
|
|
|
|
cd skia
|
|
|
|
python tools/git-sync-deps
|
|
|
|
bin/gn gen out/Release --args='is_official_build=true is_debug=false extra_cflags=["-Wno-error"] skia_use_system_expat=false skia_use_system_icu=false skia_use_system_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false'
|
|
|
|
ninja -C out/Release skia
|
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
libmypaint:
|
|
|
|
cd libmypaint
|
2020-04-12 08:00:40 +00:00
|
|
|
./autogen.sh
|
|
|
|
./configure --enable-static --enable-shared=false
|
2020-04-11 23:00:39 +00:00
|
|
|
make
|
2020-04-12 10:40:34 +00:00
|
|
|
ln -s `pwd` libmypaint
|
2020-04-11 23:00:39 +00:00
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
quazip:
|
|
|
|
cd quazip
|
|
|
|
qmake quazip.pro CONFIG+=release
|
|
|
|
make
|
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
gperftools:
|
|
|
|
cd gperftools
|
|
|
|
./autogen.sh
|
|
|
|
./configure --prefix /usr LIBS=-lpthread
|
|
|
|
make
|
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
qscintilla:
|
|
|
|
cd qscintilla
|
|
|
|
qmake CONFIG+=release
|
|
|
|
make
|