Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | DEPENDS:append:class-target = " ${PYTHON_PN}-native ${PYTHON_PN}" |
| 2 | DEPENDS:append:class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 3 | RDEPENDS:${PN}:append:class-target = " ${PYTHON_PN}-core" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 4 | |
| 5 | export STAGING_INCDIR |
| 6 | export STAGING_LIBDIR |
| 7 | |
| 8 | # LDSHARED is the ld *command* used to create shared library |
| 9 | export LDSHARED = "${CCLD} -shared" |
| 10 | # LDXXSHARED is the ld *command* used to create shared library of C++ |
| 11 | # objects |
| 12 | export LDCXXSHARED = "${CXX} -shared" |
| 13 | # CCSHARED are the C *flags* used to create objects to go into a shared |
| 14 | # library (module) |
| 15 | export CCSHARED = "-fPIC -DPIC" |
| 16 | # LINKFORSHARED are the flags passed to the $(CC) command that links |
| 17 | # the python executable |
| 18 | export LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic" |
| 19 | |
| 20 | FILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*" |
| 21 | |
| 22 | FILES:${PN}-staticdev += "\ |
| 23 | ${PYTHON_SITEPACKAGES_DIR}/*.a \ |
| 24 | " |
| 25 | FILES:${PN}-dev += "\ |
| 26 | ${datadir}/pkgconfig \ |
| 27 | ${libdir}/pkgconfig \ |
| 28 | ${PYTHON_SITEPACKAGES_DIR}/*.la \ |
| 29 | " |
| 30 | inherit python3native python3targetconfig |
| 31 | |