~tiagosh/ubuntu/wily/libphonenumber/add-missing-dependency

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Steve Langasek
  • Date: 2014-07-27 08:22:16 UTC
  • mfrom: (4.1.6 trunk)
  • Revision ID: package-import@ubuntu.com-20140727082216-wmmmxxy6lbs9phn2
Tags: 6.0+r655-0ubuntu4
* debian/rules:
  - never set INSTALL_PROGRAM+=-s; rely on dh_strip to strip
    the files only after install.
  - build with VERBOSE=1.
  - use dh build system args instead of overriding all of dh_auto_*.
* Bump to compat level 9, which enables dpkg-buildflags usage.
* Build without -O2 (which is consistent with previous builds), since
  enabling it causes ABI changes in the library.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
CPP_BUILD := cpp/build
27
27
JAVA_BUILD := java/build
28
28
 
29
 
ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
30
 
  CFLAGS += -O0
31
 
else
32
 
  CFLAGS += -O2
33
 
endif
34
 
ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS)))
35
 
  INSTALL_PROGRAM += -s
36
 
endif
 
29
export DEB_CXXFLAGS_MAINT_STRIP = -O2
 
30
 
37
31
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
38
32
  NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
39
33
  MAKEFLAGS += -j$(NUMJOBS)
40
34
endif
41
35
 
42
36
%:
43
 
        dh $@ --with javahelper
44
 
 
45
 
override_dh_auto_configure:
46
 
        mkdir -p $(CPP_BUILD) && cd $(CPP_BUILD) && $(CMAKE) $(CMAKE_FLAGS) ..
 
37
        dh $@ -B$(CPP_BUILD) -Dcpp -Scmake --with javahelper
47
38
 
48
39
override_dh_auto_build:
49
 
        $(MAKE) -C $(CPP_BUILD) phonenumber phonenumber-shared
 
40
        dh_auto_build -- VERBOSE=1 phonenumber phonenumber-shared
50
41
        $(ANT) -f $(JAVA_BUILD).xml jar
51
42
 
52
43
override_dh_auto_test:
 
44
        dh_auto_test
53
45
ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
54
 
        $(MAKE) -C $(CPP_BUILD) test
55
46
        $(ANT) -f $(JAVA_BUILD).xml junit
56
47
endif
57
48
 
58
 
override_dh_auto_install:
59
 
        dh_auto_install --builddirectory=$(CPP_BUILD)
60
 
 
61
49
override_dh_auto_clean:
62
 
        -test -d $(CPP_BUILD) && $(MAKE) -C $(CPP_BUILD) clean
 
50
        dh_auto_clean
63
51
        -$(ANT) -f $(JAVA_BUILD).xml clean