-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.PL
More file actions
58 lines (57 loc) · 2.67 KB
/
Makefile.PL
File metadata and controls
58 lines (57 loc) · 2.67 KB
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
use v5.18.2;
use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.
WriteMakefile(
NAME => 'LaunchDarkly::Server',
VERSION_FROM => 'lib/LaunchDarkly/Server.pm', # finds $VERSION, requires EU::MM from perl >= 5.5
PREREQ_PM => {}, # e.g., Module::Name => 1.1
ABSTRACT_FROM => 'lib/LaunchDarkly/Server.pm', # retrieve abstract from module
AUTHOR => 'Miklos Tirpak <miklos.tirpak@emnify.com>',
LIBS => ['-lpcre -lcurl -lldserverapi'],
);
if (eval {require ExtUtils::Constant; 1}) {
# If you edit these definitions to change the constants used by this module,
# you will need to use the generated const-c.inc and const-xs.inc
# files to replace their "fallback" counterparts before distributing your
# changes.
my @names = (qw(),
{name=>"LD_CLIENT_NOT_READY", macro=>"1"},
{name=>"LD_CLIENT_NOT_SPECIFIED", macro=>"1"},
{name=>"LD_ERROR", macro=>"1"},
{name=>"LD_FALLTHROUGH", macro=>"1"},
{name=>"LD_FLAG_NOT_FOUND", macro=>"1"},
{name=>"LD_LOG_CRITICAL", macro=>"1"},
{name=>"LD_LOG_DEBUG", macro=>"1"},
{name=>"LD_LOG_ERROR", macro=>"1"},
{name=>"LD_LOG_FATAL", macro=>"1"},
{name=>"LD_LOG_INFO", macro=>"1"},
{name=>"LD_LOG_TRACE", macro=>"1"},
{name=>"LD_LOG_WARNING", macro=>"1"},
{name=>"LD_MALFORMED_FLAG", macro=>"1"},
{name=>"LD_NULL_KEY", macro=>"1"},
{name=>"LD_OFF", macro=>"1"},
{name=>"LD_OOM", macro=>"1"},
{name=>"LD_PREREQUISITE_FAILED", macro=>"1"},
{name=>"LD_RULE_MATCH", macro=>"1"},
{name=>"LD_STORE_ERROR", macro=>"1"},
{name=>"LD_TARGET_MATCH", macro=>"1"},
{name=>"LD_UNKNOWN", macro=>"1"},
{name=>"LD_USER_NOT_SPECIFIED", macro=>"1"},
{name=>"LD_WRONG_TYPE", macro=>"1"});
ExtUtils::Constant::WriteConstants(
NAME => 'LaunchDarkly::Server',
NAMES => \@names,
DEFAULT_TYPE => 'IV',
C_FILE => 'const-c.inc',
XS_FILE => 'const-xs.inc',
);
}
else {
use File::Copy;
use File::Spec;
foreach my $file ('const-c.inc', 'const-xs.inc') {
my $fallback = File::Spec->catfile('fallback', $file);
copy ($fallback, $file) or die "Can't copy $fallback to $file: $!";
}
}