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

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

Issue 465106: Add build and package support to minijail (Closed)
Patch Set: Created 11 years 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/control ('k') | src/platform/minijail/interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/make -f
2 # -*- makefile -*-
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
5 # found in the LICENSE file.
6
7 # Uncomment this to turn on verbose mode.
8 #export DH_VERBOSE=1
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
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
38 # Build architecture-dependent files here.
39 binary-arch: install
40 dh_testdir
41 dh_testroot
42 dh_link
43 dh_strip
44 dh_compress
45 dh_fixperms
46 dh_installdeb
47 dh_shlibdeps
48 dh_gencontrol
49 dh_md5sums
50 dh_builddeb
51
52 binary: binary-arch
53
54 .PHONY: build clean install binary-arch binary
OLDNEW
« no previous file with comments | « src/platform/minijail/debian/control ('k') | src/platform/minijail/interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698