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

Unified Diff: src/platform/microbenchmark/debian/rules

Issue 481009: Add a simple microbenchmark framework, packaging, and sample tests. (Closed)
Patch Set: fix the bad comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/platform/microbenchmark/debian/control ('k') | src/platform/microbenchmark/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/microbenchmark/debian/rules
diff --git a/src/platform/microbenchmark/debian/rules b/src/platform/microbenchmark/debian/rules
new file mode 100755
index 0000000000000000000000000000000000000000..621a50fcebefb3ca82f827e0538bbc8860b1cee8
--- /dev/null
+++ b/src/platform/microbenchmark/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Copyright (c) 2009 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# The number of jobs to pass to tools that can run in parallel (such as make
+# and dpkg-buildpackage
+NUM_JOBS=`cat /proc/cpuinfo | grep processor | awk '{a++} END {print a}'`
+
+build: build-stamp
+build-stamp:
+ dh_testdir
+ scons -j$(NUM_JOBS) microbenchmark_runner
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ scons -c
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+ mkdir -p $(CURDIR)/debian/chromeos-microbenchmarks/usr/lib/chromeos-microbenchmarks/bin
+ # TODO(wad) add versioning to microbenchmarks to match the package version.
+ cp $(CURDIR)/microbenchmark_runner $(CURDIR)/debian/chromeos-microbenchmarks/usr/lib/chromeos-microbenchmarks/bin
+
+# Build architecture-dependent files here.
+binary-arch: install
+ dh_testdir
+ dh_testroot
+ dh_link
+ dh_strip
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary: binary-arch
+
+.PHONY: build clean install binary-arch binary
« no previous file with comments | « src/platform/microbenchmark/debian/control ('k') | src/platform/microbenchmark/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698