; var strFile = strProjectPath + '\\' + strTarget; 445. 446. var bCopyOnly = true; //"true" will only copy the file from strTemplate to strTarget without rendering/adding to the project 447. var strExt = strName.substr(strName.lastIndexOf(".")); 448. if (strExt == ".h" || strExt == ".cpp" || strExt == ".c" || strExt == ".rc") 449. bCopyOnly = false; 450. wizard.RenderTemplate(strTemplate, strFile, bCopyOnly); 451. 452. // don't add these files to the project 453. if (strTarget == strProjectName + ".h" || 454. strTarget == strProjectName + "ps.mk" || 455. strTarget == strProjectName + "ps.def") 456. continue; 457. 458. proj.Object.AddFile(strFile); 459. } 460. } 461. strTextStream.Close(); 462. } 463. catch (e) { 464. throw e; 465. } 466.} << 上一页 [11] [12] [13] [14] [15] [16]
|