-
Notifications
You must be signed in to change notification settings - Fork 6
/
Grav-Weight.vcxproj
152 lines (144 loc) · 7.28 KB
/
Grav-Weight.vcxproj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>16.0</VCProjectVersion>
<Keyword>Win32Proj</Keyword>
<ProjectGuid>{100BAAE9-D256-49E9-907D-487F8CBDE495}</ProjectGuid>
<RootNamespace>GMod</RootNamespace>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v143</PlatformToolset>
<CharacterSet>MultiByte</CharacterSet>
<UseDebugLibraries>true</UseDebugLibraries>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<PlatformToolset>v143</PlatformToolset>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>true</LinkIncremental>
<TargetName>GravDrive-Weight-Mod</TargetName>
<IncludePath>$(SolutionDir)..\Base-Dll-Proxy;$(SolutionDir)lib\SFSE;$(IncludePath)</IncludePath>
<OutDir>bin\$(Configuration)\$(TargetName)\</OutDir>
<IntDir>bin\$(Configuration)\$(TargetName)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<LinkIncremental>false</LinkIncremental>
<TargetName>GravDrive-Weight-Mod</TargetName>
<IncludePath>$(SolutionDir)..\Base-Dll-Proxy;$(SolutionDir)lib\SFSE;$(IncludePath)</IncludePath>
<OutDir>bin\$(Configuration)\$(TargetName)\</OutDir>
<IntDir>bin\$(Configuration)\$(TargetName)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>TARGET_NAME="$(TargetName)";_DEBUG;GMOD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>
</ModuleDefinitionFile>
<AdditionalLibraryDirectories>$(SolutionDir)..\Base-Dll-Proxy;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>copy "$(OutDirFullPath)$(TargetName).dll" "$(OutDirFullPath)$(TargetName).asi" /y
:: Because we can't add it directly to the right path in the archive, just add it and rename/move it after.
R:
cd "$(ProjectDir)bin"
:: DLL
del "$(ProjectDir)bin\$(TargetName)-SFSE.7z"
7z a -mx9 -y "$(ProjectDir)bin\$(TargetName)-SFSE.7z" "Release\$(TargetName)\$(TargetName).dll"
7z rn -mx9 -y "$(ProjectDir)bin\$(TargetName)-SFSE.7z" "Release\$(TargetName)\$(TargetName).dll" "Data\SFSE\Plugins\$(TargetName).dll"
:: ASI
del "$(ProjectDir)bin\$(TargetName)-ASI.7z"
7z a -mx9 -y "$(ProjectDir)bin\$(TargetName)-ASI.7z" "Release\$(TargetName)\$(TargetName).asi"
7z rn -mx9 -y "$(ProjectDir)bin\$(TargetName)-ASI.7z" "Release\$(TargetName)\$(TargetName).asi" "$(TargetName).asi"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>true</IntrinsicFunctions>
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>TARGET_NAME="$(TargetName)";NDEBUG;GMOD_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<PrecompiledHeader>Use</PrecompiledHeader>
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<GenerateDebugInformation>true</GenerateDebugInformation>
<EnableUAC>false</EnableUAC>
<ModuleDefinitionFile>
</ModuleDefinitionFile>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
<AdditionalLibraryDirectories>$(SolutionDir)..\Base-Dll-Proxy;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
</Link>
<PostBuildEvent>
<Command>copy "$(OutDirFullPath)$(TargetName).dll" "$(OutDirFullPath)$(TargetName).asi" /y
:: Because we can't add it directly to the right path in the archive, just add it and rename/move it after.
R:
cd "$(ProjectDir)bin"
:: DLL
del "$(ProjectDir)bin\$(TargetName)-SFSE.7z"
7z a -mx9 -y "$(ProjectDir)bin\$(TargetName)-SFSE.7z" "Release\$(TargetName)\$(TargetName).dll"
7z rn -mx9 -y "$(ProjectDir)bin\$(TargetName)-SFSE.7z" "Release\$(TargetName)\$(TargetName).dll" "Data\SFSE\Plugins\$(TargetName).dll"
:: ASI
del "$(ProjectDir)bin\$(TargetName)-ASI.7z"
7z a -mx9 -y "$(ProjectDir)bin\$(TargetName)-ASI.7z" "Release\$(TargetName)\$(TargetName).asi"
7z rn -mx9 -y "$(ProjectDir)bin\$(TargetName)-ASI.7z" "Release\$(TargetName)\$(TargetName).asi" "$(TargetName).asi"</Command>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClInclude Include="pch.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="dllmain.cpp" />
<ClCompile Include="pch.cpp">
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Create</PrecompiledHeader>
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|x64'">Create</PrecompiledHeader>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Base-Dll-Proxy\Base-Dll-Proxy.vcxproj">
<Project>{5a1e571d-6aea-451d-8f65-4c0ca06654b8}</Project>
</ProjectReference>
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
</Project>