Poky: packageconfig usage

Source: Internet
Author: User

Packageconfig is used to differentiate between dependencies and compilation options of a software package under different conditions.

For example:

Packageconfig ?? = "$ {@ Base_contains ('distro _ features ', 'x11', 'x11','', d )}\
$ {@ Base_contains ('distro _ features ', 'directfb', 'directfb ', '', d )}"
Packageconfig [X11] = "-- with-X, -- without-X, $ {x11depends }"
Packageconfig [directfb] = ", directfb"

Usage instructions:

Packageconfig [Foo] = "-- enable-Foo, -- disable-Foo, foo_depends, foo_runtime_depends"

There are four parameters,

-- Enable-FOO: indicates that if Foo exists, enable it.

-- Disable-FOO: indicates that it cannot be used without Foo.

Foo_depends: indicates the compile-time dependency if Foo exists.

Foo_runtime_depends: indicates the runtime dependency if Foo exists.

The above example shows pango's Situation Based on X11 or direcrfb.

If it is based on X11 ($ {@ base_contains ('distro _ features ', 'x11', 'x11', '', d)}), then in configure, -- With-X, compile dependency $ {x11depends}

If it is based on direcrfb ($ {@ base_contains ('distro _ features ', 'directfb', 'directfb ', '', d)}), when you run confiure, -- without-X: Compilation dependency direcrfb

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.