aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-devtools/swig/swig_%.bbappend
blob: de406097ad760518c4743e29db502346b8f54088 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# A wrapper script won't work to set SWIG_LIB for a mingw SDK. Instead, add an
# environment setup batch file to set SWIG_LIB when the SDK is configured.
do_install_append_class-nativesdk_mingw32() {
    install -d ${D}${SDKPATHNATIVE}/environment-setup.d

    cat <<HEREDOC > ${D}${SDKPATHNATIVE}/environment-setup.d/swig.bat
set SWIG_LIB=%OECORE_NATIVE_SYSROOT%\\usr\\share\\${BPN}\\${PV}
HEREDOC
}

FILES_${PN}_append_class-nativesdk_mingw32 = " ${SDKPATHNATIVE}/environment-setup.d"