Giter VIP home page Giter VIP logo

module-build-pluggable-xsutil's Introduction

NAME

Module::Build::Pluggable::XSUtil - Utility for XS

SYNOPSIS

use Module::Build::Pluggable (
    'XSUtil' => {
        cc_warnings => 1,
        ppport      => 1,
        xshelper    => 1,
        'c++'       => 1,
        'c99'       => 1,
    },
);

DESCRIPTION

Module::Build::Pluggable::XSUtil is a utility for XS library.

This library is port of Module::Install::XSUtil

OPTIONS

  • c++

      use Module::Build::Pluggable (
          'XSUtil' => {
              'c++' => 1,
          },
      );
    

    This option checks C++ compiler's availability. If it's not available, Build.PL exits by 0.

  • c99

      use Module::Build::Pluggable (
          'XSUtil' => {
              'c99' => 1,
          },
      );
    

    This option checks C99 compiler's availability. If it's not available, Build.PL exits by 0.

  • ppport

      use Module::Build::Pluggable (
          'XSUtil' => {
              'ppport' => 1,
          },
      );
    

    Generate ppport.h automatically. If you want to specify the path for ppport.h, use following form:

      use Module::Build::Pluggable (
          'XSUtil' => {
              'ppport' => 'lib/My/ppport.h',
          },
      );
    

    If you want to specify the version of ppport.h, use configure_requires in Module::Build::Pluggable->new.

  • xshelper

      use Module::Build::Pluggable (
          'XSUtil' => {
              'xshelper' => 1,
          },
      );
    

    XSUtil generates xshelper.h. If you want to specify the path for xsutil.h, use following form:

      use Module::Build::Pluggable (
          'XSUtil' => {
              'xshelper' => 'lib/My/xshelper.h',
          },
      );
    

    XSUtil generates ppport.h to same directory(xshelper.h depend to ppport.h).

  • cc_warnings

      use Module::Build::Pluggable (
          'XSUtil' => {
              'cc_warnings' => 1,
          },
      );
    

    This option enables warnings flag for compiler.

Options for Build.PL

Under the control of this module, Build.PL accepts -g option, which sets Module::Build's extra_compiler_flags -g (or something like). It will disable optimization and enable some debugging features.

AUTHOR

Goro Fuji, is original author of Module::Install::XSUtil.

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

SEE ALSO

Module::Install::XSUtil, Module::Build::Pluggable

LICENSE

Copyright (C) Tokuhiro Matsuno

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

module-build-pluggable-xsutil's People

Contributors

tokuhirom avatar hideo55 avatar jfoug avatar

Stargazers

Angus H. avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

hideo55 jfoug

module-build-pluggable-xsutil's Issues

Bug in cygwin build

There is a bug in the site_perl/5.14/Module/Build/Pluggabel/XSUtil.pm file.

  # cleanup options
      if ($^O eq 'cygwin') {
-        $self->bulder->add_to_cleanup('*.stackdump');
+        $self->builder->add_to_cleanup('*.stackdump');
      }

The builder->add_to_cleanup object is spelled wrong.

Improve DOC

May you please add description how to pass options to compiler.
Particulary I wanna to pass -E option to gcc to see expanded macroses.
Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.