xref: /OK3568_Linux_fs/yocto/meta-openembedded/meta-python/classes/distutils-common-base.bbclass (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunexport STAGING_INCDIR
2*4882a593Smuzhiyunexport STAGING_LIBDIR
3*4882a593Smuzhiyun
4*4882a593Smuzhiyun# LDSHARED is the ld *command* used to create shared library
5*4882a593Smuzhiyunexport LDSHARED  = "${CCLD} -shared"
6*4882a593Smuzhiyun# LDXXSHARED is the ld *command* used to create shared library of C++
7*4882a593Smuzhiyun# objects
8*4882a593Smuzhiyunexport LDCXXSHARED  = "${CXX} -shared"
9*4882a593Smuzhiyun# CCSHARED are the C *flags* used to create objects to go into a shared
10*4882a593Smuzhiyun# library (module)
11*4882a593Smuzhiyunexport CCSHARED  = "-fPIC -DPIC"
12*4882a593Smuzhiyun# LINKFORSHARED are the flags passed to the $(CC) command that links
13*4882a593Smuzhiyun# the python executable
14*4882a593Smuzhiyunexport LINKFORSHARED = "${SECURITY_CFLAGS} -Xlinker -export-dynamic"
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunFILES:${PN} += "${libdir}/* ${libdir}/${PYTHON_DIR}/*"
17*4882a593Smuzhiyun
18*4882a593SmuzhiyunFILES:${PN}-staticdev += "\
19*4882a593Smuzhiyun  ${PYTHON_SITEPACKAGES_DIR}/*.a \
20*4882a593Smuzhiyun"
21*4882a593SmuzhiyunFILES:${PN}-dev += "\
22*4882a593Smuzhiyun  ${datadir}/pkgconfig \
23*4882a593Smuzhiyun  ${libdir}/pkgconfig \
24*4882a593Smuzhiyun  ${PYTHON_SITEPACKAGES_DIR}/*.la \
25*4882a593Smuzhiyun"
26*4882a593Smuzhiyunpython __anonymous() {
27*4882a593Smuzhiyun    bb.warn("distutils-common-base.bbclass is deprecated, please use setuptools3-base.bbclass instead")
28*4882a593Smuzhiyun}
29