xref: /OK3568_Linux_fs/yocto/poky/meta/classes/setuptools3-base.bbclass (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunDEPENDS:append:class-target = " ${PYTHON_PN}-native ${PYTHON_PN}"
2*4882a593SmuzhiyunDEPENDS:append:class-nativesdk = " ${PYTHON_PN}-native ${PYTHON_PN}"
3*4882a593SmuzhiyunRDEPENDS:${PN}:append:class-target = " ${PYTHON_PN}-core"
4*4882a593Smuzhiyun
5*4882a593Smuzhiyunexport STAGING_INCDIR
6*4882a593Smuzhiyunexport STAGING_LIBDIR
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun# LDSHARED is the ld *command* used to create shared library
9*4882a593Smuzhiyunexport LDSHARED  = "${CCLD} -shared"
10*4882a593Smuzhiyun# LDXXSHARED is the ld *command* used to create shared library of C++
11*4882a593Smuzhiyun# objects
12*4882a593Smuzhiyunexport LDCXXSHARED  = "${CXX} -shared"
13*4882a593Smuzhiyun# CCSHARED are the C *flags* used to create objects to go into a shared
14*4882a593Smuzhiyun# library (module)
15*4882a593Smuzhiyunexport CCSHARED  = "-fPIC -DPIC"
16*4882a593Smuzhiyun# LINKFORSHARED are the flags passed to the $(CC) command that links
17*4882a593Smuzhiyun# the python executable
18*4882a593Smuzhiyunexport LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunFILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
21*4882a593Smuzhiyun
22*4882a593SmuzhiyunFILES:${PN}-staticdev += "\
23*4882a593Smuzhiyun  ${PYTHON_SITEPACKAGES_DIR}/*.a \
24*4882a593Smuzhiyun"
25*4882a593SmuzhiyunFILES:${PN}-dev += "\
26*4882a593Smuzhiyun  ${datadir}/pkgconfig \
27*4882a593Smuzhiyun  ${libdir}/pkgconfig \
28*4882a593Smuzhiyun  ${PYTHON_SITEPACKAGES_DIR}/*.la \
29*4882a593Smuzhiyun"
30*4882a593Smuzhiyuninherit python3native python3targetconfig
31*4882a593Smuzhiyun
32