lib/utilrb/pkgconfig.rb
# Returns the list of include directories listed in the Cflags: section
# of the pkgconfig file
Returns the list of include directories listed in the Cflags: section
of the pkgconfig file
Returns the list of include directories listed in the Cflags : section of the pkgconfig file
def include_dirs
            result = Shellwords.shellsplit(cflags_only_I).map { |v| v[2..-1] }
            if result.any?(&:empty?)
                raise Invalid.new(name), "empty include directory (-I without argument) found in pkg-config package #{name}"
            end
            result
        end
def include_dirs result = Shellwords . shellsplit ( cflags_only_I ) . map { | v | v [ 2 .. - 1 ] } if result . any? ( & :empty? ) raise Invalid . new ( name ) , "empty include directory (-I without argument) found in pkg-config package #{name}" end result end
Returns the list of include directories listed in the Cflags: section
of the pkgconfig file
Returns the list of include directories listed in the Cflags : section of the pkgconfig file