Unified · Split
| @@ -0,0 +1,9 @@ | |||
| 1 | set /p VERSION= < %~dp0..\..\VERSION | ||
| 2 | |||
| 3 | :config.h | ||
| 4 | echo> .\config.h #define TCC_VERSION "%VERSION%" | ||
| 5 | echo>> .\config.h #ifdef TCC_TARGET_X86_64 | ||
| 6 | echo>> .\config.h #define CONFIG_TCC_LIBPATHS "{B}/lib/64;{B}/lib" | ||
| 7 | echo>> .\config.h #else | ||
| 8 | echo>> .\config.h #define CONFIG_TCC_LIBPATHS "{B}/lib/32;{B}/lib" | ||
| 9 | echo>> .\config.h #endif | ||
| @@ -71,15 +71,19 @@ · 70 unmodified lines | |||
| 71 | <PropertyGroup Label="UserMacros" /> | 71 | <PropertyGroup Label="UserMacros" /> |
| 72 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | 72 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 73 | <LinkIncremental>true</LinkIncremental> | 73 | <LinkIncremental>true</LinkIncremental> |
| 74 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 74 | </PropertyGroup> | 75 | </PropertyGroup> |
| 75 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 76 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 76 | <LinkIncremental>true</LinkIncremental> | 77 | <LinkIncremental>true</LinkIncremental> |
| 78 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 77 | </PropertyGroup> | 79 | </PropertyGroup> |
| 78 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | 80 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 79 | <LinkIncremental>false</LinkIncremental> | 81 | <LinkIncremental>false</LinkIncremental> |
| 82 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 80 | </PropertyGroup> | 83 | </PropertyGroup> |
| 81 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | 84 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 82 | <LinkIncremental>false</LinkIncremental> | 85 | <LinkIncremental>false</LinkIncremental> |
| 86 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 83 | </PropertyGroup> | 87 | </PropertyGroup> |
| 84 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | 88 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 85 | <ClCompile> | 89 | <ClCompile> |
| @@ -88,6 +92,7 @@ · 2 unmodified lines | |||
| 88 | <WarningLevel>Level3</WarningLevel> | 92 | <WarningLevel>Level3</WarningLevel> |
| 89 | <Optimization>Disabled</Optimization> | 93 | <Optimization>Disabled</Optimization> |
| 90 | <PreprocessorDefinitions>ONE_SOURCE;LIBTCC_AS_DLL;TCC_TARGET_PE;TCC_TARGET_I386;WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBTCC_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 94 | <PreprocessorDefinitions>ONE_SOURCE;LIBTCC_AS_DLL;TCC_TARGET_PE;TCC_TARGET_I386;WIN32;_DEBUG;_WINDOWS;_USRDLL;LIBTCC_EXPORTS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 95 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
| 91 | </ClCompile> | 96 | </ClCompile> |
| 92 | <Link> | 97 | <Link> |
| 93 | <SubSystem>Windows</SubSystem> | 98 | <SubSystem>Windows</SubSystem> |
| @@ -96,6 +101,12 @@ · 2 unmodified lines | |||
| 96 | <PostBuildEvent> | 101 | <PostBuildEvent> |
| 97 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 102 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 98 | </PostBuildEvent> | 103 | </PostBuildEvent> |
| 104 | <PreBuildEvent> | ||
| 105 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 106 | </PreBuildEvent> | ||
| 107 | <PreBuildEvent> | ||
| 108 | <Message>Generate config.h</Message> | ||
| 109 | </PreBuildEvent> | ||
| 99 | </ItemDefinitionGroup> | 110 | </ItemDefinitionGroup> |
| 100 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 111 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 101 | <ClCompile> | 112 | <ClCompile> |
| @@ -104,6 +115,7 @@ · 2 unmodified lines | |||
| 104 | <WarningLevel>Level3</WarningLevel> | 115 | <WarningLevel>Level3</WarningLevel> |
| 105 | <Optimization>Disabled</Optimization> | 116 | <Optimization>Disabled</Optimization> |
| 106 | <PreprocessorDefinitions>ONE_SOURCE;LIBTCC_AS_DLL;TCC_TARGET_PE;TCC_TARGET_X86_64;_DEBUG;_WINDOWS;_USRDLL;LIBTCC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 117 | <PreprocessorDefinitions>ONE_SOURCE;LIBTCC_AS_DLL;TCC_TARGET_PE;TCC_TARGET_X86_64;_DEBUG;_WINDOWS;_USRDLL;LIBTCC_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 118 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
| 107 | </ClCompile> | 119 | </ClCompile> |
| 108 | <Link> | 120 | <Link> |
| 109 | <SubSystem>Windows</SubSystem> | 121 | <SubSystem>Windows</SubSystem> |
| @@ -112,6 +124,12 @@ · 2 unmodified lines | |||
| 112 | <PostBuildEvent> | 124 | <PostBuildEvent> |
| 113 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 125 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 114 | </PostBuildEvent> | 126 | </PostBuildEvent> |
| 127 | <PreBuildEvent> | ||
| 128 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 129 | </PreBuildEvent> | ||
| 130 | <PreBuildEvent> | ||
| 131 | <Message>Generate config.h</Message> | ||
| 132 | </PreBuildEvent> | ||
| 115 | </ItemDefinitionGroup> | 133 | </ItemDefinitionGroup> |
| 116 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | 134 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 117 | <ClCompile> | 135 | <ClCompile> |
| @@ -132,6 +150,12 @@ · 14 unmodified lines | |||
| 132 | <PostBuildEvent> | 150 | <PostBuildEvent> |
| 133 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 151 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 134 | </PostBuildEvent> | 152 | </PostBuildEvent> |
| 153 | <PreBuildEvent> | ||
| 154 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 155 | </PreBuildEvent> | ||
| 156 | <PreBuildEvent> | ||
| 157 | <Message>Generate config.h</Message> | ||
| 158 | </PreBuildEvent> | ||
| 135 | </ItemDefinitionGroup> | 159 | </ItemDefinitionGroup> |
| 136 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | 160 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 137 | <ClCompile> | 161 | <ClCompile> |
| @@ -152,6 +176,12 @@ · 14 unmodified lines | |||
| 152 | <PostBuildEvent> | 176 | <PostBuildEvent> |
| 153 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 177 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 154 | </PostBuildEvent> | 178 | </PostBuildEvent> |
| 179 | <PreBuildEvent> | ||
| 180 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 181 | </PreBuildEvent> | ||
| 182 | <PreBuildEvent> | ||
| 183 | <Message>Generate config.h</Message> | ||
| 184 | </PreBuildEvent> | ||
| 155 | </ItemDefinitionGroup> | 185 | </ItemDefinitionGroup> |
| 156 | <ItemGroup> | 186 | <ItemGroup> |
| 157 | <ClCompile Include="..\..\libtcc.c" /> | 187 | <ClCompile Include="..\..\libtcc.c" /> |
| @@ -71,15 +71,19 @@ · 70 unmodified lines | |||
| 71 | <PropertyGroup Label="UserMacros" /> | 71 | <PropertyGroup Label="UserMacros" /> |
| 72 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | 72 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 73 | <LinkIncremental>true</LinkIncremental> | 73 | <LinkIncremental>true</LinkIncremental> |
| 74 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 74 | </PropertyGroup> | 75 | </PropertyGroup> |
| 75 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 76 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 76 | <LinkIncremental>true</LinkIncremental> | 77 | <LinkIncremental>true</LinkIncremental> |
| 78 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 77 | </PropertyGroup> | 79 | </PropertyGroup> |
| 78 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | 80 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 79 | <LinkIncremental>false</LinkIncremental> | 81 | <LinkIncremental>false</LinkIncremental> |
| 82 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 80 | </PropertyGroup> | 83 | </PropertyGroup> |
| 81 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | 84 | <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 82 | <LinkIncremental>false</LinkIncremental> | 85 | <LinkIncremental>false</LinkIncremental> |
| 86 | <IncludePath>$(ProjectDir);$(VC_IncludePath);$(WindowsSDK_IncludePath);</IncludePath> | ||
| 83 | </PropertyGroup> | 87 | </PropertyGroup> |
| 84 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> | 88 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'"> |
| 85 | <ClCompile> | 89 | <ClCompile> |
| @@ -88,6 +92,7 @@ · 2 unmodified lines | |||
| 88 | <WarningLevel>Level3</WarningLevel> | 92 | <WarningLevel>Level3</WarningLevel> |
| 89 | <Optimization>Disabled</Optimization> | 93 | <Optimization>Disabled</Optimization> |
| 90 | <PreprocessorDefinitions>TCC_TARGET_PE;TCC_TARGET_I386;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 94 | <PreprocessorDefinitions>TCC_TARGET_PE;TCC_TARGET_I386;WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 95 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
| 91 | </ClCompile> | 96 | </ClCompile> |
| 92 | <Link> | 97 | <Link> |
| 93 | <SubSystem>Console</SubSystem> | 98 | <SubSystem>Console</SubSystem> |
| @@ -98,6 +103,10 @@ · 4 unmodified lines | |||
| 98 | <PostBuildEvent> | 103 | <PostBuildEvent> |
| 99 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 104 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 100 | </PostBuildEvent> | 105 | </PostBuildEvent> |
| 106 | <PreBuildEvent> | ||
| 107 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 108 | <Message>Generate config.h</Message> | ||
| 109 | </PreBuildEvent> | ||
| 101 | </ItemDefinitionGroup> | 110 | </ItemDefinitionGroup> |
| 102 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> | 111 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> |
| 103 | <ClCompile> | 112 | <ClCompile> |
| @@ -106,6 +115,7 @@ · 2 unmodified lines | |||
| 106 | <WarningLevel>Level3</WarningLevel> | 115 | <WarningLevel>Level3</WarningLevel> |
| 107 | <Optimization>Disabled</Optimization> | 116 | <Optimization>Disabled</Optimization> |
| 108 | <PreprocessorDefinitions>TCC_TARGET_PE;TCC_TARGET_X86_64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> | 117 | <PreprocessorDefinitions>TCC_TARGET_PE;TCC_TARGET_X86_64;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions> |
| 118 | <DebugInformationFormat>EditAndContinue</DebugInformationFormat> | ||
| 109 | </ClCompile> | 119 | </ClCompile> |
| 110 | <Link> | 120 | <Link> |
| 111 | <SubSystem>Console</SubSystem> | 121 | <SubSystem>Console</SubSystem> |
| @@ -116,6 +126,10 @@ · 4 unmodified lines | |||
| 116 | <PostBuildEvent> | 126 | <PostBuildEvent> |
| 117 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 127 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 118 | </PostBuildEvent> | 128 | </PostBuildEvent> |
| 129 | <PreBuildEvent> | ||
| 130 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 131 | <Message>Generate config.h</Message> | ||
| 132 | </PreBuildEvent> | ||
| 119 | </ItemDefinitionGroup> | 133 | </ItemDefinitionGroup> |
| 120 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> | 134 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'"> |
| 121 | <ClCompile> | 135 | <ClCompile> |
| @@ -138,6 +152,10 @@ · 16 unmodified lines | |||
| 138 | <PostBuildEvent> | 152 | <PostBuildEvent> |
| 139 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 153 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 140 | </PostBuildEvent> | 154 | </PostBuildEvent> |
| 155 | <PreBuildEvent> | ||
| 156 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 157 | <Message>Generate config.h</Message> | ||
| 158 | </PreBuildEvent> | ||
| 141 | </ItemDefinitionGroup> | 159 | </ItemDefinitionGroup> |
| 142 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> | 160 | <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> |
| 143 | <ClCompile> | 161 | <ClCompile> |
| @@ -160,6 +178,10 @@ · 16 unmodified lines | |||
| 160 | <PostBuildEvent> | 178 | <PostBuildEvent> |
| 161 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> | 179 | <Command>copy $(TargetPath) $(SolutionDir)..</Command> |
| 162 | </PostBuildEvent> | 180 | </PostBuildEvent> |
| 181 | <PreBuildEvent> | ||
| 182 | <Command>$(ProjectDir)PreBuild.bat</Command> | ||
| 183 | <Message>Generate config.h</Message> | ||
| 184 | </PreBuildEvent> | ||
| 163 | </ItemDefinitionGroup> | 185 | </ItemDefinitionGroup> |
| 164 | <ItemGroup> | 186 | <ItemGroup> |
| 165 | <ClCompile Include="..\..\tcc.c" /> | 187 | <ClCompile Include="..\..\tcc.c" /> |