OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
perl5
/
Debian
/
Debhelper
/
Buildsystem
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:50:08 AM
rwxr-xr-x
📄
ant.pm
1.03 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
autoconf.pm
2.42 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
cmake.pm
3.73 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
makefile.pm
5.62 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
meson.pm
2.46 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
ninja.pm
2.04 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
perl_build.pm
1.65 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
perl_makemaker.pm
2.15 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
pybuild.pm
7.5 KB
03/26/2018 07:42:23 PM
rw-r--r--
📄
python_distutils.pm
5.3 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
qmake.pm
4.45 KB
05/10/2018 09:11:57 AM
rw-r--r--
📄
qmake_qt4.pm
220 bytes
05/10/2018 09:11:57 AM
rw-r--r--
Editing: ninja.pm
Close
# A debhelper build system class for handling ninja based projects. # # Copyright: © 2017 Michael Biebl # License: GPL-2+ package Debian::Debhelper::Buildsystem::ninja; use strict; use warnings; use Debian::Debhelper::Dh_Lib qw(%dh dpkg_architecture_value); use parent qw(Debian::Debhelper::Buildsystem); sub DESCRIPTION { "Ninja (build.ninja)" } sub new { my $class=shift; my $this=$class->SUPER::new(@_); $this->{buildcmd} = "ninja"; return $this; } sub check_auto_buildable { my $this=shift; my ($step) = @_; if (-e $this->get_buildpath("build.ninja")) { # This is always called in the source directory, but generally # Ninja files are created (or live) in the build directory. return 1; } elsif ($step eq "clean" && defined $this->get_builddir() && $this->check_auto_buildable("configure")) { # Assume that the package can be cleaned (i.e. the build directory can # be removed) as long as it is built out-of-source tree and can be # configured. This is useful for derivative buildsystems which # generate Ninja files. return 1; } return 0; } sub build { my $this=shift; my %options = ( update_env => { 'LC_ALL' => 'C.UTF-8', } ); if (!$dh{QUIET}) { unshift @_, "-v"; } if ($this->get_parallel() > 0) { unshift @_, "-j" . $this->get_parallel(); } $this->doit_in_builddir(\%options, $this->{buildcmd}, @_); } sub test { my $this=shift; my %options = ( update_env => { 'LC_ALL' => 'C.UTF-8', } ); if ($this->get_parallel() > 0) { $options{update_env}{MESON_TESTTHREADS} = $this->get_parallel(); } $this->doit_in_builddir(\%options, $this->{buildcmd}, "test", @_); } sub install { my $this=shift; my $destdir=shift; my %options = ( update_env => { 'LC_ALL' => 'C.UTF-8', 'DESTDIR' => $destdir, } ); $this->doit_in_builddir(\%options, $this->{buildcmd}, "install", @_); } sub clean { my $this=shift; if (!$this->rmdir_builddir()) { my %options = ( update_env => { 'LC_ALL' => 'C.UTF-8', } ); $this->doit_in_builddir(\%options, $this->{buildcmd}, "clean", @_); } } 1