Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(51)

Unified Diff: tools/linux_dist_support/debian/rules

Issue 396123003: Allows building debian packages for ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/linux_dist_support/debian/control ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/linux_dist_support/debian/rules
===================================================================
--- tools/linux_dist_support/debian/rules (revision 39257)
+++ tools/linux_dist_support/debian/rules (working copy)
@@ -9,16 +9,26 @@
PARALLEL_JOBS := 1
endif
-DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
ifeq (amd64,$(DEB_HOST_ARCH_CPU))
BUILD_TYPE += ReleaseX64
+ARCH += x64
else
ifeq (i386,$(DEB_HOST_ARCH_CPU))
BUILD_TYPE += ReleaseIA32
+ARCH += ia32
else
-$(warning unsupported target arch $(DEB_HOST_ARCH_CPU) - continuing anyway)
+ifeq (arm,$(DEB_HOST_ARCH_CPU))
+ifeq ($(DEB_BUILD_ARCH_CPU),$(DEB_HOST_ARCH_CPU))
+BUILD_TYPE += ReleaseARM
+else
+BUILD_TYPE += ReleaseXARM
endif
+ARCH += arm
+else
+$(error unsupported target arch '$(DEB_HOST_ARCH_CPU)')
endif
+endif
+endif
# Verbose?
ifeq (1,$(DH_VERBOSE))
@@ -40,12 +50,18 @@
GYP_GENERATORS=make python dart/tools/gyp_dart.py all
override_dh_auto_build:
- make -C dart -j$(PARALLEL_JOBS) \
- BUILDTYPE=$(BUILD_TYPE) $(BUILD_ARGS) create_sdk
+ cd dart; \
+ python tools/build.py -v -m release -a $(ARCH) $(TOOLCHAIN) create_sdk; \
+ cd ..
# Building the Dart SDK will already strip all binaries.
override_dh_strip:
+# This override allows us to ignore spurious missing library errors when
+# cross-compiling.
+override_dh_shlibdeps:
+ dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
+
override_dh_auto_install:
mkdir -p debian/tmp/out
cp -R dart/out/$(BUILD_TYPE)/dart-sdk debian/tmp/out
« no previous file with comments | « tools/linux_dist_support/debian/control ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698