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

Side by Side Diff: src/platform/minijail/debian/rules

Issue 523129: minijail: Switch to new cross-friendly packaging style (Closed)
Patch Set: Created 10 years, 11 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
« no previous file with comments | « src/platform/minijail/debian/install ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/make -f 1 #!/usr/bin/make -f
2 # -*- makefile -*- 2 # -*- makefile -*-
3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. 3 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 %:
7 dh --buildsystem=scons_chromeos $@
6 8
7 # Uncomment this to turn on verbose mode. 9 override_dh_auto_build:
8 #export DH_VERBOSE=1 10 » dh_auto_build -- minijail libminijail.so # minijail_benchmarks
9
10 # The number of jobs to pass to tools that can run in parallel (such as make
11 # and dpkg-buildpackage
12 NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'`
13
14 build: build-stamp
15 build-stamp:
16 » dh_testdir
17 » scons -j$(NUM_JOBS) minijail libminijail.so # minijail_benchmarks
18 » touch $@
19
20 clean:
21 » dh_testdir
22 » dh_testroot
23 » rm -f build-stamp
24 » scons -c
25 » dh_clean
26
27 install: build
28 » dh_testdir
29 » dh_testroot
30 » dh_prep
31 » dh_installdirs
32 » mkdir -p $(CURDIR)/debian/chromeos-minijail/lib/security
33 » # TODO(wad) add versioning to minijail to match the package version.
34 » cp $(CURDIR)/libminijail.so $(CURDIR)/debian/chromeos-minijail/lib/libm inijail.so
35 » mkdir -p $(CURDIR)/debian/chromeos-minijail/sbin
36 » cp $(CURDIR)/minijail $(CURDIR)/debian/chromeos-minijail/sbin/minijail
37 » # TODO(wad) make a separate benchmarks package since we don't need
38 » # them on every install.
39 » #mkdir -p $(CURDIR)/debian/chromeos-minijail/usr/share/chromeos-minijai l
40 » #cp $(CURDIR)/minijail_benchmarks $(CURDIR)/debian/chromeos-minijail/us r/share/chromeos-minijail/minijail_benchmarks
41
42 # Build architecture-dependent files here.
43 binary-arch: install
44 » dh_testdir
45 » dh_testroot
46 » dh_link
47 » dh_strip
48 » dh_compress
49 » dh_fixperms
50 » dh_installdeb
51 » dh_shlibdeps
52 » dh_gencontrol
53 » dh_md5sums
54 » dh_builddeb
55
56 binary: binary-arch
57
58 .PHONY: build clean install binary-arch binary
OLDNEW
« no previous file with comments | « src/platform/minijail/debian/install ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698