forked from mongodb-labs/mongo-perl-driver
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.PL
63 lines (51 loc) · 1.31 KB
/
Makefile.PL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
use strict;
use warnings;
use lib 'ext';
use inc::Module::Install;
name 'MongoDB';
perl_version '5.8.0';
author 'Kristina Chodorow <kristina@10gen.com>';
license 'Apache';
all_from 'lib/MongoDB.pm';
requires 'Any::Moose';
# C::M::Modifiers isn't always needed. It'll be used only if Any::Moose decides
# to use Mouse instead of Moose. We depend on it anyway to make sure it's there
# when it's needed.
requires 'Class::Method::Modifiers';
requires 'Digest::MD5';
requires 'Tie::IxHash';
requires 'DateTime';
requires 'XSLoader';
requires 'boolean';
test_requires 'Test::Exception';
test_requires 'Tie::IxHash';
test_requires 'DateTime';
test_requires 'boolean';
test_requires 'Data::Types';
test_requires 'File::Slurp';
test_requires 'FileHandle';
mongo;
no_index directory => 'ext';
repository 'git://github.com/mongodb/mongo-perl-driver.git';
WriteAll;
package MY;
our $VERSION = '0.31';
use Config;
sub const_cccmd {
my $inherited = shift->SUPER::const_cccmd(@_);
return '' unless $inherited;
if ($Config{cc} =~ /^cl\b/) {
warn 'you are using MSVC... my condolences.';
$inherited .= ' /Fo$@';
}
else {
$inherited .= ' -o $@';
}
if ($Config{use64bitint}) {
$inherited .= ' -DUSE_64_BIT_INT';
}
else {
$inherited .= ' ';
}
return $inherited;
}