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

Side by Side Diff: debian/rules

Issue 154073002: Add script for generating a source tarball and rules for bilding a Debian package (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/make -f
2 export DH_VERBOSE = 1
3
4 # Use DEB_BUILD_OPTIONS's parallel=n option (see Policy 4.9.1)
5 ifneq (,$(findstring parallel,$(DEB_BUILD_OPTIONS)))
6 PARALLEL_JOBS := $(shell echo $(DEB_BUILD_OPTIONS) | \
7 sed -e 's/.*parallel=\([0-9]\+\).*/\1/')
8 else
9 PARALLEL_JOBS := 1
10 endif
11
12 DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
13 ifeq (amd64,$(DEB_HOST_ARCH_CPU))
14 BUILD_TYPE += ReleaseX64
15 else
16 ifeq (i386,$(DEB_HOST_ARCH_CPU))
17 BUILD_TYPE += ReleaseIA32
18 else
19 $(warning unsupported target arch $(DEB_HOST_ARCH_CPU) - continuing anyway)
20 endif
21 endif
22
23 # Verbose?
24 ifeq (1,$(DH_VERBOSE))
25 BUILD_ARGS += V=1
26 endif
27
28 %:
29 dh $@
30
31 override_dh_auto_clean:
32 echo $(DEB_BUILD_OPTIONS)
33 rm -fr dart/out dart/Makefile
34 find . -name *.tmp -execdir rm -f {} \;
35 find . -name *.pyc -execdir rm -f {} \;
36 find . -name *.mk -execdir rm -f {} \;
37 find . -name *.Makefile -execdir rm -f {} \;
38
39 override_dh_auto_configure:
40 GYP_GENERATORS=make python dart/tools/gyp_dart.py all
41
42 override_dh_auto_build:
43 make -C dart -j$(PARALLEL_JOBS) BUILDTYPE=$(BUILD_TYPE) $(BUILD_ARGS) cr eate_sdk
ricow1 2014/02/04 18:16:01 long line
Søren Gjesse 2014/02/06 08:19:08 Done.
44
45 override_dh_auto_install:
46 mkdir -p debian/tmp/out
47 cp -R dart/out/$(BUILD_TYPE)/dart-sdk debian/tmp/out
48 mv debian/tmp/out/dart-sdk debian/tmp/out/dart
49 dh_install
50 dh_link
OLDNEW
« no previous file with comments | « debian/dart.links ('k') | debian/source/format » ('j') | tools/create_tarball.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698