1 /******************************************************************************\r
2 * FILE PURPOSE: TCP3D Driver Source Module specification file.\r
3 ******************************************************************************\r
4 * FILE NAME: module.xs\r
5 *\r
6 * DESCRIPTION: \r
7 * This file contains the module specification for the TCP3D Driver\r
8 *\r
9 * Copyright (C) 2009, Texas Instruments, Inc.\r
10 *****************************************************************************/\r
11 \r
12 /* Load the library utility. */\r
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");\r
14 \r
15 /* List of all the TCP3D Files for library building */\r
16 var tcp3dLibFiles = [\r
17 "src/tcp3d_drv.c",\r
18 "src/tcp3d_reg.c",\r
19 "src/tcp3d_utils.c",\r
20 "src/tcp3d_betaState.c",\r
21 ];\r
22 \r
23 /* Other files for packaging */\r
24 var tcp3dOtherFiles = [\r
25 "src/tcp3d_drv_priv.h",\r
26 "src/tcp3d_utils.h",\r
27 ];\r
28 \r
29 /**************************************************************************\r
30 * FUNCTION NAME : modBuild\r
31 **************************************************************************\r
32 * DESCRIPTION :\r
33 * The function is used to build the TCP3D Driver and to add the core\r
34 * driver files to the package. \r
35 **************************************************************************/\r
36 function modBuild() \r
37 {\r
38 /* Build the libraries for all the targets specified. */\r
39 for (var targets=0; targets < Build.targets.length; targets++)\r
40 {\r
41 var libOptions = { incs: tcp3dIncludePath, };\r
42 \r
43 libUtility.buildLibrary (libOptions, Pkg.name, Build.targets[targets], tcp3dLibFiles);\r
44 }\r
45 \r
46 /* Add all the .c files to the release package. */\r
47 for (var k = 0 ; k < tcp3dLibFiles.length; k++)\r
48 Pkg.otherFiles[Pkg.otherFiles.length++] = tcp3dLibFiles[k];\r
49 \r
50 /* Add all the .h files to the release package. */\r
51 for (var k = 0 ; k < tcp3dOtherFiles.length; k++)\r
52 Pkg.otherFiles[Pkg.otherFiles.length++] = tcp3dOtherFiles[k];\r
53 }\r
54 \r