• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

FFFTPのソースコードです。


Commit MetaInfo

Revisión03151a6ab14a8ba2d0c163d97e596ae093003712 (tree)
Tiempo2012-01-15 07:45:36
AutorMoriguchi, Hirokazu <umorigu@gmai...>
CommiterMoriguchi, Hirokazu

Log Message

Enable to build by Visual C++ 2005 Express Edition

* Change link lib setting
* ReplaceAfxresh.js: Replace including "afxres.h" line to <windows.h> and IDC_STATIC definition in FFFTP.rc
* Remove PuTTY project in VS2005EE solution
* Note: There are VS2005EE files for the ease of development, not for production build. (So we enabled to remove PuTTY project.)

Cambiar Resumen

Diferencia incremental

--- a/FFFTP.vc80ee.sln
+++ b/FFFTP.vc80ee.sln
@@ -1,10 +1,8 @@
11 Microsoft Visual Studio Solution File, Format Version 9.00
2-# Visual Studio 2005
3-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FFFTP", "FFFTP.vcproj", "{5D9496DB-45AF-4389-8FEE-27C9A2FA207A}"
2+# Visual C++ Express 2005
3+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FFFTP.vc80", "FFFTP.vc80ee.vcproj", "{5D9496DB-45AF-4389-8FEE-27C9A2FA207A}"
44 EndProject
5-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FFFTP_English", "FFFTP_English.vcproj", "{EE7CC1BD-92A9-46D5-8270-386BD7BEEA55}"
6-EndProject
7-Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PuTTY", "putty\PuTTY.vcproj", "{AF1981EB-379B-43B8-BE66-298194297B5C}"
5+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "FFFTP_English.vc80", "FFFTP_English.vc80ee.vcproj", "{EE7CC1BD-92A9-46D5-8270-386BD7BEEA55}"
86 EndProject
97 Global
108 GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -30,14 +28,6 @@ Global
3028 {EE7CC1BD-92A9-46D5-8270-386BD7BEEA55}.Release|Win32.Build.0 = Release|Win32
3129 {EE7CC1BD-92A9-46D5-8270-386BD7BEEA55}.Release|x64.ActiveCfg = Release|x64
3230 {EE7CC1BD-92A9-46D5-8270-386BD7BEEA55}.Release|x64.Build.0 = Release|x64
33- {AF1981EB-379B-43B8-BE66-298194297B5C}.Debug|Win32.ActiveCfg = Debug|Win32
34- {AF1981EB-379B-43B8-BE66-298194297B5C}.Debug|Win32.Build.0 = Debug|Win32
35- {AF1981EB-379B-43B8-BE66-298194297B5C}.Debug|x64.ActiveCfg = Debug|x64
36- {AF1981EB-379B-43B8-BE66-298194297B5C}.Debug|x64.Build.0 = Debug|x64
37- {AF1981EB-379B-43B8-BE66-298194297B5C}.Release|Win32.ActiveCfg = Release|Win32
38- {AF1981EB-379B-43B8-BE66-298194297B5C}.Release|Win32.Build.0 = Release|Win32
39- {AF1981EB-379B-43B8-BE66-298194297B5C}.Release|x64.ActiveCfg = Release|x64
40- {AF1981EB-379B-43B8-BE66-298194297B5C}.Release|x64.Build.0 = Release|x64
4131 EndGlobalSection
4232 GlobalSection(SolutionProperties) = preSolution
4333 HideSolutionNode = FALSE
--- a/FFFTP.vc80ee.vcproj
+++ b/FFFTP.vc80ee.vcproj
@@ -2,7 +2,7 @@
22 <VisualStudioProject
33 ProjectType="Visual C++"
44 Version="8.00"
5- Name="FFFTP"
5+ Name="FFFTP.vc80"
66 ProjectGUID="{5D9496DB-45AF-4389-8FEE-27C9A2FA207A}"
77 RootNamespace="FFFTP"
88 >
@@ -28,6 +28,7 @@
2828 >
2929 <Tool
3030 Name="VCPreBuildEventTool"
31+ CommandLine="cscript //nologo Resource\ReplaceAfxresh.js Resource\FFFTP.rc Resource\FFFTP._replaced_.rc&#x0D;&#x0A;"
3132 />
3233 <Tool
3334 Name="VCCustomBuildTool"
@@ -73,7 +74,7 @@
7374 />
7475 <Tool
7576 Name="VCLinkerTool"
76- AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib"
77+ AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib user32.lib shell32.lib gdi32.lib ole32.lib comdlg32.lib advapi32.lib"
7778 OutputFile=".\Debug\FFFTP.exe"
7879 LinkIncremental="2"
7980 SuppressStartupBanner="true"
@@ -120,6 +121,7 @@
120121 >
121122 <Tool
122123 Name="VCPreBuildEventTool"
124+ CommandLine="cscript //nologo Resource\ReplaceAfxresh.js Resource\FFFTP.rc Resource\FFFTP._replaced_.rc&#x0D;&#x0A;"
123125 />
124126 <Tool
125127 Name="VCCustomBuildTool"
@@ -167,7 +169,7 @@
167169 />
168170 <Tool
169171 Name="VCLinkerTool"
170- AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib"
172+ AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib user32.lib shell32.lib gdi32.lib ole32.lib comdlg32.lib advapi32.lib"
171173 OutputFile=".\Release\FFFTP.exe"
172174 LinkIncremental="1"
173175 SuppressStartupBanner="true"
@@ -440,8 +442,28 @@
440442 >
441443 </File>
442444 <File
445+ RelativePath=".\Resource\FFFTP._replaced_.rc"
446+ >
447+ </File>
448+ <File
443449 RelativePath=".\Resource\ffftp.rc"
444450 >
451+ <FileConfiguration
452+ Name="Debug|Win32"
453+ ExcludedFromBuild="true"
454+ >
455+ <Tool
456+ Name="VCResourceCompilerTool"
457+ />
458+ </FileConfiguration>
459+ <FileConfiguration
460+ Name="Release|Win32"
461+ ExcludedFromBuild="true"
462+ >
463+ <Tool
464+ Name="VCResourceCompilerTool"
465+ />
466+ </FileConfiguration>
445467 </File>
446468 <File
447469 RelativePath=".\filelist.c"
--- a/FFFTP_English.vc80ee.vcproj
+++ b/FFFTP_English.vc80ee.vcproj
@@ -2,7 +2,7 @@
22 <VisualStudioProject
33 ProjectType="Visual C++"
44 Version="8.00"
5- Name="FFFTP_English"
5+ Name="FFFTP_English.vc80"
66 ProjectGUID="{EE7CC1BD-92A9-46D5-8270-386BD7BEEA55}"
77 RootNamespace="FFFTP_English"
88 >
@@ -28,6 +28,7 @@
2828 >
2929 <Tool
3030 Name="VCPreBuildEventTool"
31+ CommandLine="cscript //nologo Resource\ReplaceAfxresh.js Resource_eng\FFFTP-eng.rc Resource_eng\FFFTP-eng._replaced_.rc&#x0D;&#x0A;"
3132 />
3233 <Tool
3334 Name="VCCustomBuildTool"
@@ -74,7 +75,7 @@
7475 />
7576 <Tool
7677 Name="VCLinkerTool"
77- AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib"
78+ AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib user32.lib shell32.lib gdi32.lib ole32.lib comdlg32.lib advapi32.lib"
7879 OutputFile=".\FFFTP_Eng_Debug\FFFTP.exe"
7980 LinkIncremental="2"
8081 SuppressStartupBanner="true"
@@ -121,6 +122,7 @@
121122 >
122123 <Tool
123124 Name="VCPreBuildEventTool"
125+ CommandLine="cscript //nologo Resource\ReplaceAfxresh.js Resource_eng\FFFTP-eng.rc Resource_eng\FFFTP-eng._replaced_.rc&#x0D;&#x0A;"
124126 />
125127 <Tool
126128 Name="VCCustomBuildTool"
@@ -167,7 +169,7 @@
167169 />
168170 <Tool
169171 Name="VCLinkerTool"
170- AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib"
172+ AdditionalDependencies="comctl32.lib crypt32.lib htmlhelp.lib imagehlp.lib rasapi32.lib sfc.lib winmm.lib wintrust.lib wsock32.lib user32.lib shell32.lib gdi32.lib ole32.lib comdlg32.lib advapi32.lib"
171173 OutputFile=".\FFFTP_Eng_Release\FFFTP.exe"
172174 LinkIncremental="1"
173175 SuppressStartupBanner="true"
@@ -440,8 +442,28 @@
440442 >
441443 </File>
442444 <File
445+ RelativePath=".\Resource_eng\FFFTP-eng._replaced_.rc"
446+ >
447+ </File>
448+ <File
443449 RelativePath=".\Resource_eng\FFFTP-eng.rc"
444450 >
451+ <FileConfiguration
452+ Name="Debug|Win32"
453+ ExcludedFromBuild="true"
454+ >
455+ <Tool
456+ Name="VCResourceCompilerTool"
457+ />
458+ </FileConfiguration>
459+ <FileConfiguration
460+ Name="Release|Win32"
461+ ExcludedFromBuild="true"
462+ >
463+ <Tool
464+ Name="VCResourceCompilerTool"
465+ />
466+ </FileConfiguration>
445467 </File>
446468 <File
447469 RelativePath=".\filelist.c"
--- /dev/null
+++ b/Resource/ReplaceAfxresh.js
@@ -0,0 +1,32 @@
1+function replace_afxres_h_text(s) {
2+ if (s.match(/^\s*#include\s*"afxres.h"\s*$/)) {
3+ var replaced = "// " + s + "\r\n";
4+ replaced += "#include <windows.h>" + "\r\n";
5+ replaced += "#define IDC_STATIC -1";
6+ return replaced;
7+ }
8+ return s;
9+}
10+function main() {
11+ var fromFileName = "";
12+ var toFileName = "";
13+ var args = WScript.Arguments;
14+ if (args.length < 2) {
15+ WScript.StdErr.WriteLine("usage: cscript ReplaceAfxresh.js <InResFile> <OutResFile>");
16+ return;
17+ }
18+ fromFileName = args(0);
19+ toFileName = args(1);
20+ WScript.StdOut.WriteLine("ReplaceAfxresh.js - in: " + fromFileName + ", out: " + toFileName);
21+ var fso = new ActiveXObject("Scripting.FileSystemObject");
22+ var fi = fso.OpenTextFile(fromFileName, 1, false, -2);
23+ var fo = fso.CreateTextFile(toFileName, true, false);
24+ while (!fi.AtEndOfStream) {
25+ var line = fi.ReadLine();
26+ var lineReplaced = replace_afxres_h_text(line);
27+ fo.WriteLine(lineReplaced);
28+ }
29+ fo.Close();
30+ fi.Close();
31+}
32+main();