---
name: "Wx::build::MakeMaker"
section: "3pm"
platform: "linux"
package: "libwx-perl"
version: "1:0.9932-9+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Wx::build::MakeMaker"
---

# Wx::build::MakeMaker(3pm)

ExtUtils::MakeMaker specialisation for wxPerl modules

## NAME

Wx::build::MakeMaker - ExtUtils::MakeMaker specialisation for wxPerl modules

## SYNOPSIS

use Wx::build::MakeMaker;

wxWriteMakefile( NAME         =\> 'My::Module',\
                  VERSION\_FROM =\> 'Module.pm' );

## FUNCTIONS

### wxWriteMakefile

```
  wxWriteMakefile( arameter => value, ... );
```

This functions is meant to be used exactly as ExtUtils::MakeMaker::WriteMakefile (see). It accepts all WriteMakefile's parameters, plus:

- •

  WX\_CORE\_LIB

  ```
    WX_CORE_LIB => 'xrc core base'
  ```

  link libraries from wxWidgets' core or contrib directory. If not spedified, defaults to 'html core net base' for compatibility.

- •

  WX\_LIB

  ```
    WX_LIB => '-lxrc'
  ```

  Link additional libraries from wxWidgets' contrib directory.

- •

  REQUIRE\_WX

  ```
    REQUIRE_WX => 2.003002  # wxWidgets 2.3.2
  ```

  Do not build this module if wxWidgets' version is lower than the version specified.

- •

  NO\_WX\_PLATFORMS

  ```
    NO_WX_PLATFORMS => [ 'x11', 'msw' ]
  ```

  Do not build this module on the specified platform(s).

- •

  ON\_WX\_PLATFORMs

  ```
    ON_WX_PLATFORMS => [ 'gtk' ]
  ```

  only build this module on the specified platform(s).

## PRIVATE FUNCTIONS

These functions are here for reference, do not use them.

### is\_core

```
  if( is_core ) { ... }
```

True if it is building the wxPerl core (Wx.dll), false otherwise.

### is\_wxPerl\_tree

```
  if( is_wxPerl_tree ) { ... }
```

True if it is building any part of wxPerl, false otherwise.

### set\_hook\_package

```
  Wx::build::MakeMaker::set_hook_package( 'package_name' );
```

Package to be hooked into the MakeMaker inheritance chain.

## METHODS

### get\_api\_directory

```
  my $dir = $cfg->get_api_directory;
```

### get\_arch\_directory

```
  my $dir = $cfg->get_arch_directory;
```
