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

Unified Diff: src/platform/dh-chromeos/lib/Debian/Debhelper/Buildsystem/scons_chromeos.pm

Issue 1521015: build: Delete files from the previous build system. (Closed)
Patch Set: merge Created 10 years, 8 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 | « src/platform/dh-chromeos/debian/rules ('k') | src/platform/dh-chromeos/make_pkg.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/dh-chromeos/lib/Debian/Debhelper/Buildsystem/scons_chromeos.pm
diff --git a/src/platform/dh-chromeos/lib/Debian/Debhelper/Buildsystem/scons_chromeos.pm b/src/platform/dh-chromeos/lib/Debian/Debhelper/Buildsystem/scons_chromeos.pm
deleted file mode 100644
index eb9ca74f449bb6cd1caf3e5eb93c48c1dda565b5..0000000000000000000000000000000000000000
--- a/src/platform/dh-chromeos/lib/Debian/Debhelper/Buildsystem/scons_chromeos.pm
+++ /dev/null
@@ -1,93 +0,0 @@
-# A debhelper build system class for handling SCons based projects.
-# Extended for Chrome OS (cross-compiling support, parallel builds).
-#
-# Copyright: © 2009 Luca Falavigna
-# Copyright: © 2009 The Chromium OS Authors.
-# License: GPL-2+
-
-package Debian::Debhelper::Buildsystem::scons_chromeos;
-
-use strict;
-use File::Path;
-use Debian::Debhelper::Dh_Lib qw(dpkg_architecture_value);
-use base 'Debian::Debhelper::Buildsystem';
-
-sub DESCRIPTION {
- "SCons, extended for Chrome OS (Sconstruct)"
-}
-
-sub check_auto_buildable {
- my $this=shift;
- if (-e $this->get_sourcepath("SConstruct.chromiumos")) {
- return -e $this->get_sourcepath("SConstruct.chromiumos");
- } elsif (-e $this->get_sourcepath("SConstruct")) {
- return -e $this->get_sourcepath("SConstruct");
- } elsif (-e $this->get_sourcepath("Sconstruct")) {
- return -e $this->get_sourcepath("Sconstruct");
- } elsif (-e $this->get_sourcepath("sconstruct")) {
- return -e $this->get_sourcepath("sconstruct");
- }
-}
-
-sub new {
- my $class=shift;
- my $this=$class->SUPER::new(@_);
- $this->enforce_in_source_building();
- return $this;
-}
-
-my %toolchain = (
- CC => 'gcc',
- CXX => 'g++',
- AR => 'ar',
- RANLIB => 'ranlib',
- LD => 'ld',
- NM => 'nm',
-);
-
-sub do_scons {
- my $this=shift;
-
- my @opts;
- if (-e $this->get_sourcepath("SConstruct.chromiumos")) {
- push @opts, "-f", "SConstruct.chromiumos";
- }
- return $this->doit_in_sourcedir("scons", @opts, @_);
-}
-
-sub build {
- my $this=shift;
-
- my $deb_build_gnu_type=dpkg_architecture_value("DEB_BUILD_GNU_TYPE");
- my $deb_host_gnu_type=dpkg_architecture_value("DEB_HOST_GNU_TYPE");
- if ($deb_build_gnu_type eq $deb_host_gnu_type) {
- for my $tool (keys %toolchain) {
- $ENV{$tool}=$toolchain{$tool};
- }
- } else {
- for my $tool (keys %toolchain) {
- $ENV{$tool}="$deb_host_gnu_type-$toolchain{$tool}";
- }
- }
-
- my @opts;
- open NUM_JOBS, '-|',
- "grep processor /proc/cpuinfo | awk '{a++} END {print a}'";
- my $num_jobs = <NUM_JOBS>;
- chomp $num_jobs;
- close NUM_JOBS;
- if ($num_jobs ne '') {
- push @opts, "-j$num_jobs";
- }
-
- $this->do_scons(@opts, @_);
-}
-
-sub clean {
- my $this=shift;
- $this->do_scons("-c", @_);
- unlink($this->get_buildpath(".sconsign.dblite"));
- rmtree($this->get_buildpath(".sconf_temp"));
-}
-
-1
« no previous file with comments | « src/platform/dh-chromeos/debian/rules ('k') | src/platform/dh-chromeos/make_pkg.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698