| 1 | package JSON::Schema::Fast::Install::Files; | ||
| 2 | |||
| 3 | $self = { | ||
| 4 | 'deps' => [ | ||
| 5 | 'Fetch', | ||
| 6 | 'File::Raw', | ||
| 7 | 'File::Raw::JSON', | ||
| 8 | 'Tie::OrderedHash' | ||
| 9 | ], | ||
| 10 | 'inc' => '', | ||
| 11 | 'libs' => '', | ||
| 12 | 'typemaps' => [] | ||
| 13 | }; | ||
| 14 | |||
| 15 | @deps = @{ $self->{deps} }; | ||
| 16 | @typemaps = @{ $self->{typemaps} }; | ||
| 17 | $libs = $self->{libs}; | ||
| 18 | $inc = $self->{inc}; | ||
| 19 | |||
| 20 | $CORE = undef; | ||
| 21 | foreach (@INC) { | ||
| 22 | if ( -f $_ . "/JSON/Schema/Fast/Install/Files.pm") { | ||
| 23 | $CORE = $_ . "/JSON/Schema/Fast/Install/"; | ||
| 24 | last; | ||
| 25 | } | ||
| 26 | } | ||
| 27 | |||
| 28 | sub deps { @{ $self->{deps} }; } | ||
| 29 | |||
| 30 | sub Inline { | ||
| 31 | my ($class, $lang) = @_; | ||
| 32 | +{ map { (uc($_) => $self->{$_}) } qw(inc libs typemaps) }; | ||
| 33 | } | ||
| 34 | |||
| 35 | 1; |