proj: add a packageconfig to build as a static library

Add a packageconfig to build Proj as a static library.

Keep the library shared by default.

Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Clément Péron 2022-12-07 12:27:29 +01:00 committed by Khem Raj
parent b69eb8bde0
commit cae5b12981

View File

@ -16,9 +16,10 @@ FILES:${PN} += "${datadir}/proj"
BBCLASSEXTEND = "native"
PACKAGECONFIG ?= "curl"
PACKAGECONFIG ?= "curl shared"
PACKAGECONFIG:append:class-native = " apps"
PACKAGECONFIG[apps] = "-DBUILD_APPS=ON, -DBUILD_APPS=OFF"
PACKAGECONFIG[curl] = "-DENABLE_CURL=ON,-DENABLE_CURL=OFF,curl"
PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
PACKAGECONFIG[tiff] = "-DENABLE_TIFF=ON,-DENABLE_TIFF=OFF,tiff"