diff --git a/package.xs b/package.xs
index 37b1ffcf83c33839055f33b72e9c23a9c7fac7ad..3807f3cead75d02d3644ced434a93cdc66de3464 100644 (file)
--- a/package.xs
+++ b/package.xs
print ("\tSystem environment LIBDIR variable defined : " + lib);\r
}\r
\r
+ /* Device types supported */\r
+ var deviceTypes = [\r
+ 'k2k',\r
+ 'k2h',\r
+ 'k2l',\r
+ ];\r
+ \r
+ /* Search for the supported devices (defined in config.bld) */\r
+ for each(var device in deviceTypes)\r
+ {\r
+ if (this.Settings.deviceType.equals(device))\r
+ {\r
+ lib = lib + "/" + device;\r
+ break;\r
+ }\r
+ }\r
+\r
/* Get target folder, if applicable */\r
if ( java.lang.String(suffix).contains('66') )\r
lib = lib + "/c66";\r
/* Get library name with path */\r
lib = lib + "/" + name;\r
if (java.io.File(this.packageBase + lib).exists()) {\r
+ print ("\tLinking with library " + this.$name + ":" + lib);\r
return lib;\r
}\r
\r