1 | 1 |
# -*- makefile -*-
|
2 | 2 |
#
|
3 | 3 |
#
|
4 | |
include /usr/share/hardening-includes/hardening.make
|
5 | |
|
6 | |
CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
|
7 | |
LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
|
8 | |
CFLAGS+=$(HARDENING_CFLAGS)
|
9 | |
LDFLAGS+=$(HARDENING_LDFLAGS)
|
10 | |
|
11 | 4 |
DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
|
12 | 5 |
DEB_BUILD_MULTIARCH :=$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)
|
13 | 6 |
ifeq ($(DEB_BUILD_ARCH_OS),linux)
|
|
18 | 11 |
endif
|
19 | 12 |
BUILD_DIR=./out_linux
|
20 | 13 |
|
21 | |
TARGETS = unix/ibus/ibus.gyp:ibus_mozc \
|
|
14 |
TARGETS=unix/ibus/ibus.gyp:ibus_mozc \
|
22 | 15 |
unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup \
|
23 | 16 |
unix/emacs/emacs.gyp:mozc_emacs_helper \
|
|
17 |
unix/uim/uim.gyp:uim-mozc \
|
|
18 |
unix/fcitx/fcitx.gyp:fcitx-mozc \
|
24 | 19 |
server/server.gyp:mozc_server gui/gui.gyp:mozc_tool \
|
25 | |
renderer/renderer.gyp:mozc_renderer \
|
26 | |
unix/uim/uim.gyp:uim-mozc
|
27 | |
|
28 | |
|
29 | |
#TARGETS=unix/ibus/ibus.gyp:ibus_mozc \
|
30 | |
# unix/scim/scim.gyp:scim_mozc unix/scim/scim.gyp:scim_mozc_setup \
|
31 | |
# unix/emacs/emacs.gyp:mozc_emacs_helper \
|
32 | |
# unix/uim/uim.gyp:uim-mozc \
|
33 | |
# unix/fcitx/fcitx.gyp:fcitx-mozc \
|
34 | |
# server/server.gyp:mozc_server gui/gui.gyp:mozc_tool \
|
35 | |
# renderer/renderer.gyp:mozc_renderer
|
|
20 |
renderer/renderer.gyp:mozc_renderer
|
36 | 21 |
|
37 | 22 |
# for architecture dependent variables and changelog vars
|
38 | 23 |
vafilt = $(subst $(2)=,,$(filter $(2)=%,$(1)))
|
|
46 | 31 |
dh $@
|
47 | 32 |
|
48 | 33 |
override_dh_auto_configure:
|
49 | |
python build_mozc.py gyp --gypdir=/usr/bin
|
50 | |
#python build_mozc.py gyp --gypdir=/usr/bin --channel_dev=0 \
|
51 | |
# --build_base=$(BUILD_DIR) \
|
52 | |
# --use_libprotobuf
|
|
34 |
python build_mozc.py gyp --gypdir=/usr/bin --channel_dev=0 \
|
|
35 |
--build_base=$(BUILD_DIR) \
|
|
36 |
--use_libprotobuf
|
53 | 37 |
|
54 | 38 |
override_dh_auto_build:
|
55 | 39 |
override_dh_auto_build:
|
56 | |
python build_mozc.py build_tools -c Release
|
57 | |
python build_mozc.py build $(TARGETS) -c Release
|
58 | |
# python build_mozc.py build_tools -c Release #--jobs=1
|
59 | |
# python build_mozc.py build $(TARGETS) -c Release #--jobs=1
|
|
40 |
python build_mozc.py build_tools -c Release #--jobs=1
|
|
41 |
python build_mozc.py build $(TARGETS) -c Release #--jobs=1
|
60 | 42 |
|
61 | 43 |
override_dh_auto_clean:
|
62 | 44 |
python build_mozc.py clean
|