]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/wdtimer.git/blob - src/Module.xs
8a9abd553bd049b4b1a094dd306afaa0c44efbc8
[keystone-rtos/wdtimer.git] / src / Module.xs
1 /******************************************************************************
2  * FILE PURPOSE: WatchdogTimer Source module specification file.
3  ******************************************************************************
4  * FILE NAME: module.xs
5  *
6  * DESCRIPTION: 
7  *  This file contains the module specification for the WatchdogTimer source directory.
8  *
9  * Copyright (C) 2012 Texas Instruments, Inc.
10  *****************************************************************************/
12 /* Load the library utility. */
13 var libUtility = xdc.loadCapsule ("../build/buildlib.xs");
15 var WatchdogTimerFiles = [
16                     "src/WatchdogTimer.c",
17                     ];
19 /**************************************************************************
20  * FUNCTION NAME : modBuild
21  **************************************************************************
22  * DESCRIPTION   :
23  *  The function is used to build all the components of the WatchdogTimer module
24  **************************************************************************/
25 function modBuild() 
26 {
27     /* Build the libraries for all the targets specified. */
28     for (var targets=0; targets < Build.targets.length; targets++)
29     {
30         var libOptions = {
31             incs: WatchdogTimerIncludePath, 
32         };
33         
34         libUtility.buildLibrary (libOptions, "ti.instrumentation.wdtimer", Build.targets[targets], WatchdogTimerFiles);
35     }
37     /* Add all the .c files to the release package. */
38     var testFiles = libUtility.listAllFiles (".c", "src", true);
39     for (var k = 0 ; k < testFiles.length; k++)
40         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
42     /* Add all the .h files to the release package. */
43     var testFiles = libUtility.listAllFiles (".h", "src", true);
44     for (var k = 0 ; k < testFiles.length; k++)
45         Pkg.otherFiles[Pkg.otherFiles.length++] = testFiles[k];
46 }