1PkgConfig::LibPkgConf::UFsreargmCeonntt(r3i)buted Perl DPokcguCmoennftiagt:i:oLnibPkgConf::Fragment(3)
2
3
4

NAME

6       PkgConfig::LibPkgConf::Fragment - Single compiler or linker flag
7

SYNOPSIS

9        use PkgConfig::LibPkgConf::Client;
10
11        my $client = PkgConfig::LibPkgConf::Client->new;
12        $client->scan_all(sub {
13          my($client, $package) = @_;
14          # $package isa PkgConfig::LibPkgConf::Package
15          foreach my $frag ($package->list_libs)
16          {
17            # $frag isa PkgConfig::LibPkgConf::Fragment
18            if($frag->type eq 'L')
19            {
20              say "Library directory: ", $frag->data;
21            }
22            elsif($frag->type eq 'l')
23            {
24              say "Library name: ", $frag->data;
25            }
26          }
27        });
28

DESCRIPTION

30       TODO
31

ATTRIBUTES

33   type
34        my $type = $frag->type;
35
36       The type of the flag.  This may be "undef" if there is no type.
37
38   data
39        my $data = $frag->data;
40
41       The data for the fragment.
42
43   to_string
44        my $string = $frag->to_string;
45        my $string = "$frag";
46
47       The string representation of the fragment.  You may also interpolate
48       the fragment object inside a string to convert it into a string.
49

SUPPORT

51       IRC #native on irc.perl.org
52
53       Project GitHub tracker:
54
55       <https://github.com/plicease/PkgConfig-LibPkgConf/issues>
56
57       If you want to contribute, please open a pull request on GitHub:
58
59       <https://github.com/plicease/PkgConfig-LibPkgConf/pulls>
60

SEE ALSO

62       For additional related modules, see PkgConfig::LibPkgConf
63

AUTHOR

65       Graham Ollis
66
67       For additional contributors see PkgConfig::LibPkgConf
68
70       This software is copyright (c) 2016 Graham Ollis.
71
72       This is free software; you may redistribute it and/or modify it under
73       the same terms as the Perl 5 programming language system itself.
74
75
76
77perl v5.38.0                      2023-07-21PkgConfig::LibPkgConf::Fragment(3)
Impressum