~chromium-team/chromium-browser/artful-beta

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Chad MILLER
  • Date: 2014-09-03 15:28:39 UTC
  • Revision ID: chad.miller@canonical.com-20140903152839-q9965zizh3l0oc0h
debian/rules, debian/known_gyp_flags: Keep better track of known GYP flags,
so we can fail when something changes unexpectedly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
 
242
242
### Official interfaces.
243
243
 
244
 
# rules required by dpkg-buildpackage
 
244
# Debian Policy §4.9
245
245
binary binary-arch binary-indep build build-arch build-indep clean install install-arch install-indep patch:
246
246
        dh --sourcedirectory=$(DEB_TAR_SRCDIR) --builddirectory=$(DEB_TAR_SRCDIR)/out/$(BUILD_TYPE) --with quilt $@
247
247
 
248
 
export ORIG_PACKAGE
249
 
export ORIG_VERSION
 
248
# BZR build-deb rule
250
249
get-packaged-orig-source: URL=https://commondatastorage.googleapis.com/chromium-browser-official/chromium-$(ORIG_VERSION).tar.xz
251
250
get-packaged-orig-source: DEST_FILENAME=$(ORIG_PACKAGE)_$(ORIG_VERSION).orig.tar.xz
252
251
get-packaged-orig-source:
253
252
        wget --continue --progress=dot:mega --output-document=$(DEST_FILENAME) $(URL)
254
253
 
 
254
# Debian Policy §4.9
 
255
get-orig-source:
 
256
        test "$(ORIG_VERSION)" || { echo "Set ORIG_VERSION" to use this rule.; exit 1; }
 
257
        ORIG_PACKAGE=chromium-browser ORIG_VERSION=$(ORIG_VERSION) $(MAKE) get-packaged-orig-source
255
258
 
256
259
 
257
260
 
436
439
build-stamp: GYP_ENV = GYP_GENERATORS=ninja
437
440
build-stamp: GYP_ENV += GYP_DEFINES="$(GYP_DEFINES) $(BROWSER_GYP_DEFINES)"
438
441
build-stamp: debian/chromium-browser.sh
 
442
        # Upstream changes often. Fail when they introduce a config flag we don't know about.
 
443
        diff --suppress-common-lines --unified=0 debian/known_gyp_flags <(sed -e "/: *'<(/{ s,.*'<(,,g; s,).*,,; p; }" -e d build/common.gypi |sort -u |grep -v '^\(win_\|mac_\|android_\|.san\|..san\|msvs_\|ios_\|goma_\|windows_\|wix_\|directx_\)')
 
444
 
439
445
        sed -i 's,/etc/chromium/policies,/etc/chromium-browser/policies,' \
440
446
                $(DEB_TAR_SRCDIR)/chrome/common/chrome_paths.cc
441
447