Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

Alien::Build::Plugin::Build::CMake (3)

Name

Alien::Build::Plugin::Build::CMake - CMake plugin for Alien::Build

Synopsis

use alienfile;

share {
plugin 'Build::CMake';
build [
# this is the default build step, if you do not specify one.
[ '%{cmake}',
@{ meta->prop->{plugin_build_cmake}->{args} },
# ... put extra cmake args here ...
'%{.install.extract}'
],
'%{make}',
'%{make} install',
];
};

Description

User Contributed Perl Documentation
                                         Alien::Build::Plugin::Build::CMake(3)



NAME
       Alien::Build::Plugin::Build::CMake - CMake plugin for Alien::Build

VERSION
       version 1.89

SYNOPSIS
        use alienfile;

        share {
          plugin 'Build::CMake';
          build [
            # this is the default build step, if you do not specify one.
            [ '%{cmake}',
                @{ meta->prop->{plugin_build_cmake}->{args} },
                # ... put extra cmake args here ...
                '%{.install.extract}'
            ],
            '%{make}',
            '%{make} install',
          ];
        };

DESCRIPTION
       This plugin helps build alienized projects that use "cmake".  The
       intention is to make this a core Alien::Build plugin if/when it becomes
       stable enough.

       This plugin provides a meta property "plugin_build_cmake.args" which
       may change over time but for the moment includes:

        -G %{cmake_generator}                          \
        -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true    \
        -DCMAKE_INSTALL_PREFIX:PATH=%{.install.prefix} \
        -DCMAKE_INSTALL_LIBDIR:PATH=lib                \
        -DCMAKE_MAKE_PROGRAM:PATH=%{make}

       This plugin supports out-of-source builds via the meta property
       "out_of_source".

METHODS
   cmake_generator
       Returns the "cmake" generator according to your Perl's "make".

   is_dmake
       Returns true if your Perls "make" appears to be "dmake".

HELPERS
   cmake
       This plugin replaces the default "cmake" helper with the one that comes
       from Alien::cmake3.

   cmake_generator
       This is the appropriate "cmake" generator to use based on the make used
       by your Perl.  This is frequently "Unix Makefiles".  One place where it
       may be different is if your Windows Perl uses "nmake", which comes with
       Visual C++.

   make
       This plugin may replace the default "make" helper if the default "make"
       is not supported by "cmake".  This is most often an issue with older
       versions of Strawberry Perl which used "dmake".  On Perls that use
       "dmake", this plugin will search for GNU Make in the PATH, and if it
       can't be found will fallback on using Alien::gmake.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+--------------------------------+
       |ATTRIBUTE TYPE |        ATTRIBUTE VALUE         |
       +---------------+--------------------------------+
       |Availability   | library/perl-5/alien-build-532 |
       +---------------+--------------------------------+
       |Stability      | Volatile                       |
       +---------------+--------------------------------+

SEE ALSO
       Alien::Build
       Alien::Build::Plugin::Build::Autoconf
       alienfile

AUTHOR
       Author: Graham Ollis <plicease@cpan.org>

       Contributors:

       Diab Jerius (DJERIUS)

       Roy Storey (KIWIROY)

       Ilya Pavlov

       David Mertens (run4flat)

       Mark Nunberg (mordy, mnunberg)

       Christian Walde (Mithaldu)

       Brian Wightman (MidLifeXis)

       Zaki Mughal (zmughal)

       mohawk (mohawk2, ETJ)

       Vikas N Kumar (vikasnkumar)

       Flavio Poletti (polettix)

       Salvador Fandio (salva)

       Gianni Ceccarelli (dakkar)

       Pavel Shaydo (zwon, trinitum)

       Kang-min Liu (, gugod)

       Nicholas Shipp (nshp)

       Juan Julin Merelo Guervs (JJ)

       Joel Berger (JBERGER)

       Petr Pisar (ppisar)

       Lance Wicks (LANCEW)

       Ahmad Fatoum (a3f, ATHREEF)

       Jos Joaqun Atria (JJATRIA)

       Duke Leto (LETO)

       Shoichi Kaji (SKAJI)

       Shawn Laffan (SLAFFAN)

       Paul Evans (leonerd, PEVANS)

COPYRIGHT AND LICENSE
       This software is copyright (c) 2011-2019 by Graham Ollis.

       This is free software; you can redistribute it and/or modify it under
       the same terms as the Perl 5 programming language system itself.



NOTES
       Source code for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This software was built from source available at
       https://github.com/oracle/solaris-userland.  The original community
       source was downloaded from
       http://www.cpan.org/authors/id/P/PL/PLICEASE/Alien-Build-1.89.tar.gz.

       Further information about this software can be found on the open source
       community website at http://search.cpan.org/dist/Alien-Build/.



perl v5.32.0                      2019-09-25
                                         Alien::Build::Plugin::Build::CMake(3)