Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ blib/
/const-c.inc
/const-xs.inc
pm_to_blib
stl_typemap
obj_typemap

# temp files
*.swp
Expand Down
6 changes: 5 additions & 1 deletion Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Revision history for Perl extension launchdarkly-perl-server-sdk

{{$NEXT}}
0.03 Thu Mar 21 20:03:30 2025
- Updated to LaunchDarkly C++ API version 3.8.x

0.02 Thu May 12 04:49:30 2022
- Minimum Perl version is lowered to v5.18.2

0.01 Fri Apr 22 16:51:17 2022
- original version; created by h2xs 1.23 with options
Expand Down
2 changes: 2 additions & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@ README
Server.xs
t/00_basic.t
typemap
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
42 changes: 42 additions & 0 deletions META.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"abstract" : "Perl server side SDK for LaunchDarkly",
"author" : [
"Miklos Tirpak <[email protected]>"
],
"dynamic_config" : 0,
"generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010",
"license" : [
"unknown"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : 2
},
"name" : "LaunchDarkly-Server",
"no_index" : {
"directory" : [
"t",
"inc"
]
},
"prereqs" : {
"build" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0",
"ExtUtils::Typemaps::ObjectMap" : "0",
"ExtUtils::Typemaps::STL" : "0"
}
},
"runtime" : {
"requires" : {}
}
},
"release_status" : "stable",
"version" : "0.03",
"x_serialization_backend" : "JSON::PP version 4.16"
}
24 changes: 24 additions & 0 deletions META.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
abstract: 'Perl server side SDK for LaunchDarkly'
author:
- 'Miklos Tirpak <[email protected]>'
build_requires:
ExtUtils::MakeMaker: '0'
configure_requires:
ExtUtils::MakeMaker: '0'
ExtUtils::Typemaps::ObjectMap: '0'
ExtUtils::Typemaps::STL: '0'
dynamic_config: 0
generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 2.150010'
license: unknown
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: LaunchDarkly-Server
no_index:
directory:
- t
- inc
requires: {}
version: '0.03'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'
72 changes: 35 additions & 37 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,52 +1,50 @@
use v5.18.2;
use ExtUtils::MakeMaker;
use ExtUtils::Typemaps::STL;
use ExtUtils::Typemaps::ObjectMap;

my $CC = 'g++';

my $stl_map = ExtUtils::Typemaps::STL->new;
$stl_map->write(file => 'stl_typemap');
my $obj_map = ExtUtils::Typemaps::ObjectMap->new;
$obj_map->write(file => 'obj_typemap');

# 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 <[email protected]>',
LIBS => ['-lpcre -lcurl -lldserverapi'],
NAME => 'LaunchDarkly::Server',
VERSION_FROM => 'lib/LaunchDarkly/Server.pm', # finds $VERSION, requires EU::MM from perl >= 5.5
CONFIGURE_REQUIRES => {
"ExtUtils::MakeMaker" => 0,
"ExtUtils::Typemaps::STL" => 0,
"ExtUtils::Typemaps::ObjectMap" => 0,
},
PREREQ_PM => {}, # e.g., Module::Name => 1.1
ABSTRACT_FROM => 'lib/LaunchDarkly/Server.pm', # retrieve abstract from module
AUTHOR => 'Miklos Tirpak <[email protected]>',
LIBS => ['-llaunchdarkly-cpp-server'],
TYPEMAPS => ['stl_typemap', 'obj_typemap'],
'CC' => $CC,
'CCFLAGS' => "$Config::Config{ccflags} -std=c++17",
'LD' => '$(CC)',
'XSOPT' => '-C++ -hiertype',
);

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',
);
my @names = (qw());

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;
Expand Down
Loading