diff options
author | Joshua Watt <jpewhacker@gmail.com> | 2018-08-24 09:53:47 -0500 |
---|---|---|
committer | Ross Burton <ross.burton@intel.com> | 2018-08-30 22:21:05 +0100 |
commit | 17887019257143f649a0f2e9caa9f814f7fb0b2a (patch) | |
tree | 35804c30c385242f0896cb5620edee08be9f5e31 | |
parent | 9005f93676271cbcd4fb82169b473564a59620b2 (diff) | |
download | meta-mingw-17887019257143f649a0f2e9caa9f814f7fb0b2a.tar.gz |
swig: Add swig environment setup for SDK
Configures the mingw SDK environment to set the SWIG_LIB environment
variable so that swig can find its core library. Otherwise, swig will
look for a directory called "Lib" next to the executable.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r-- | recipes-devtools/swig/swig_%.bbappend | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes-devtools/swig/swig_%.bbappend b/recipes-devtools/swig/swig_%.bbappend new file mode 100644 index 0000000..de40609 --- /dev/null +++ b/recipes-devtools/swig/swig_%.bbappend | |||
@@ -0,0 +1,12 @@ | |||
1 | # A wrapper script won't work to set SWIG_LIB for a mingw SDK. Instead, add an | ||
2 | # environment setup batch file to set SWIG_LIB when the SDK is configured. | ||
3 | do_install_append_class-nativesdk_mingw32() { | ||
4 | install -d ${D}${SDKPATHNATIVE}/environment-setup.d | ||
5 | |||
6 | cat <<HEREDOC > ${D}${SDKPATHNATIVE}/environment-setup.d/swig.bat | ||
7 | set SWIG_LIB=%OECORE_NATIVE_SYSROOT%\\usr\\share\\${BPN}\\${PV} | ||
8 | HEREDOC | ||
9 | } | ||
10 | |||
11 | FILES_${PN}_append_class-nativesdk_mingw32 = " ${SDKPATHNATIVE}/environment-setup.d" | ||
12 | |||