"gmake" : "include"\r
}\r
\r
- _INC_FLAG_ = {TAB_COMPILER_MSFT : "/I", "GCC" : "-I", "INTEL" : "-I", "RVCT" : "-I"}\r
+ _INC_FLAG_ = {TAB_COMPILER_MSFT : "/I", "GCC" : "-I", "INTEL" : "-I", "RVCT" : "-I", "NASM" : "-I"}\r
\r
## Constructor of BuildFile\r
#\r
}\r
)\r
FileMacroList.append(FileMacro)\r
+ # Add support when compiling .nasm source files\r
+ for File in self.FileCache.keys():\r
+ if not str(File).endswith('.nasm'):\r
+ continue\r
+ IncludePathList = []\r
+ for P in MyAgo.IncludePathList:\r
+ IncludePath = self._INC_FLAG_['NASM'] + self.PlaceMacro(P, self.Macros)\r
+ if IncludePath.endswith(os.sep):\r
+ IncludePath = IncludePath.rstrip(os.sep)\r
+ # When compiling .nasm files, need to add a literal backslash at each path\r
+ # To specify a literal backslash at the end of the line, precede it with a caret (^)\r
+ if P == MyAgo.IncludePathList[-1] and os.sep == '\\':\r
+ IncludePath = ''.join([IncludePath, '^', os.sep])\r
+ else:\r
+ IncludePath = os.path.join(IncludePath, '')\r
+ IncludePathList.append(IncludePath)\r
+ FileMacroList.append(self._FILE_MACRO_TEMPLATE.Replace({"macro_name": "NASM_INC", "source_file": IncludePathList}))\r
+ break\r
\r
# Generate macros used to represent files containing list of input files\r
for ListFileMacro in self.ListFileMacros:\r