-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.xs
More file actions
38 lines (34 loc) · 1.09 KB
/
package.xs
File metadata and controls
38 lines (34 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* ======== package.xs ========
* Implementation of the xdc.IPackage interface.
*/
/*
* ======== getLibs ========
* Determine the name of the library to use, based on the program
* configuration (prog).
*/
function getLibs(prog)
{
var name = "";
var suffix = "";
/*
* The libraries in this package were built with the XDC Tools.
*
* If this package was built with XDC 3.10 or later, we can use the
* findSuffix() method to locate a compatible library in this package.
* Otherwise, we fall back to providing a lib with the suffix matching
* the target of the executable using this library.
*/
if ("findSuffix" in prog.build.target) {
suffix = prog.build.target.findSuffix(this);
if (suffix == null) {
/* no matching lib found in this package, return "" */
return ("");
}
} else {
suffix = prog.build.target.suffix;
}
/* And finally, the location of the libraries are in lib/<profile>/* */
name = "lib/" + this.profile + "/trik_vidtranscode_cv.a" + suffix;
return (name);
}