瀏覽代碼

Do parallel builds for Ubuntu packages

Make the builds faster as we now run them often via Travis.
tags/v1.9.90
Pierre Ossman 5 年之前
父節點
當前提交
9f90b6d568
共有 2 個文件被更改,包括 9 次插入5 次删除
  1. 5
    3
      contrib/packages/deb/ubuntu-trusty/debian/rules
  2. 4
    2
      contrib/packages/deb/ubuntu-xenial/debian/rules

+ 5
- 3
contrib/packages/deb/ubuntu-trusty/debian/rules 查看文件

@@ -10,6 +10,8 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS

NUMJOBS := -j$(shell nproc)

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

@@ -58,7 +60,7 @@ fltk-stamp:
(cd fltk-*;DSOFLAGS="$(filter-out -fPIE -pie,$(LDFLAGS))" \
./configure --enable-shared=no --enable-cairo --enable-cp936 \
--with-optim="$(CFLAGS) $(XCFLAGS)" --libdir=$(libdir))
make -C fltk-*
make $(NUMJOBS) -C fltk-*
touch fltk-stamp

configure: config-stamp
@@ -145,8 +147,8 @@ build-arch-stamp:
# Add here command to compile/build the package.
# Build first things.
# Build Xvnc
make LDFLAGS="-lpng"
(cd unix/xserver;make)
make $(NUMJOBS) LDFLAGS="-lpng"
make $(NUMJOBS) -C unix/xserver

touch build-arch-stamp


+ 4
- 2
contrib/packages/deb/ubuntu-xenial/debian/rules 查看文件

@@ -10,6 +10,8 @@ LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)

export CFLAGS CPPFLAGS CXXFLAGS LDFLAGS

NUMJOBS := -j$(shell nproc)

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

@@ -124,8 +126,8 @@ build-arch-stamp:
# Add here command to compile/build the package.
# Build first things.
# Build Xvnc
make LDFLAGS="-lpng"
(cd unix/xserver;make)
make $(NUMJOBS) LDFLAGS="-lpng"
make $(NUMJOBS) -C unix/xserver

touch build-arch-stamp


Loading…
取消
儲存