]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/edma3_lld.git/blob - packages/ti/sdo/edma3/rm/sample/package.xs
5e056ee68b2b665f1926d240a8ce4bbff7d42c8d
[keystone-rtos/edma3_lld.git] / packages / ti / sdo / edma3 / rm / sample / package.xs
1 /*
2  * ======== package.xs ========
3  *
4  */
6 /*
7  * ======== getLibs ========
8  */
9 function getLibs(prog)
10 {
11     var bool = 0;
13     print ("Inside EDMA3 RM Sample App getLibs");
15     /* Prepare variables to form the library path within this package */
16     var name = "ti.sdo.edma3.rm.sample.a674";
17     var lib = "lib/";
19         /* Devices supported */
20         var devices = [
21                                         'TMS320DA830',
22                                         ];
24     /* Directories for each platform */
25     var dir = [
26                 'da830/',
27               ];
29     for (var i = 0; i < devices.length; i++)
30         {
31         if (java.lang.String(Program.cpu.deviceName).equals(devices[i]))
32             {
33                 /* Choose the selected platform */
34                 lib = lib + dir[i];
35                 bool = 1;
36                 break;
37             }
38         }
40     if (bool == 0)
41         throw new Error('Unexpected value in "platform" parameter')
43     switch (this.profile) {
44     case 'debug':
45         /* enable debug build for debug profile only */
46         lib = lib + "Debug/" + name;
47         break;
49     default:
50         /* release profile for everything else */
51         lib = lib + "Release/" + name;
52     }
54     print("    will link with " + this.$name + ":" + lib);
56     /* return the library name */
57     return (lib);
58 }