Codebase list mozc / 37ed487
Allow parallel building Aron Xu 8 years ago
1 changed file(s) with 7 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
77 LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
88
99 DEB_BUILD_MULTIARCH :=$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
10
11 NUMJOBS=1
12 ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
13 NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
14 endif
1015
1116 # clear XDG_CONFIG_DIRS for qtchooser
1217 unexport XDG_CONFIG_DIRS
2631 SOURCE_VERSION := $(call vafilt,$(CHANGELOG_VARS),Version)
2732
2833 %:
29 dh $@
34 dh $@ --parallel
3035
3136 override_dh_auto_configure:
3237 GYP_DEFINES="use_libprotobuf=1" python build_mozc.py gyp \
3439 --build_base=$(BUILD_DIR)
3540
3641 override_dh_auto_build:
37 V=1 python build_mozc.py build $(TARGETS) -c Release --jobs=1
42 V=1 python build_mozc.py build $(TARGETS) -c Release --jobs=$(NUMJOBS)
3843
3944 override_dh_auto_clean:
4045 python build_mozc.py clean