forked from scripthookvdotnet/scripthookvdotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ScriptHookVDotNet.vcxproj
169 lines (169 loc) · 7.45 KB
/
ScriptHookVDotNet.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" 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>
<ProjectConfiguration Include="NativeGen|x64">
<Configuration>NativeGen</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{B2933D8F-F922-40BD-BB70-18622A81AB8F}</ProjectGuid>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<WindowsTargetPlatformVersion>10.0.18362.0</WindowsTargetPlatformVersion>
<Keyword>ManagedCProj</Keyword>
<RootNamespace>SHVDN</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<!-- Global configuration settings -->
<PropertyGroup Label="Configuration">
<ConfigurationType>DynamicLibrary</ConfigurationType>
<!-- Support for VS2017 and VS2019 -->
<PlatformToolset Condition="'$(VisualStudioVersion)'=='15.0'">v141</PlatformToolset>
<PlatformToolset Condition="'$(VisualStudioVersion)'=='16.0'">v142</PlatformToolset>
<OutDir>$(SolutionDir)bin\$(Configuration)\</OutDir>
<IntDir>$(SolutionDir)obj\$(ProjectName)\$(Platform)\$(Configuration)\</IntDir>
<CharacterSet>Unicode</CharacterSet>
<CLRSupport>true</CLRSupport>
<ExtensionsToDeleteOnClean>*.netmodule;$(ExtensionsToDeleteOnClean)</ExtensionsToDeleteOnClean>
</PropertyGroup>
<!-- Specific configuration settings -->
<PropertyGroup Label="Configuration" Condition="'$(Configuration)'=='Debug'">
<UseDebugLibraries>true</UseDebugLibraries>
<WholeProgramOptimization>false</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)'=='Release'">
<UseDebugLibraries>false</UseDebugLibraries>
<LinkIncremental>false</LinkIncremental>
<WholeProgramOptimization>true</WholeProgramOptimization>
</PropertyGroup>
<PropertyGroup Label="Configuration" Condition="'$(Configuration)'=='NativeGen'">
<ConfigurationType>Utility</ConfigurationType>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<!-- Global compilation settings -->
<PropertyGroup>
<TargetExt>.asi</TargetExt>
<TargetName>ScriptHookVDotNet</TargetName>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<LinkIncremental>false</LinkIncremental>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<AdditionalUsingDirectories>$(IntDir);%(AdditionalUsingDirectories)</AdditionalUsingDirectories>
<AdditionalIncludeDirectories>sdk\inc;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions Condition="'$(SHVDN_VERSION)'==''">SHVDN_VERSION="3.0.0.0";%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions Condition="'$(SHVDN_VERSION)'!=''">SHVDN_VERSION="$(SHVDN_VERSION)";%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<CsCompile>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Utf8Output>true</Utf8Output>
</CsCompile>
<Link>
<AdditionalLibraryDirectories>sdk\lib;%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>ScriptHookV.lib;$(IntDir)$(TargetName).netmodule;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<!-- Specific compilation settings -->
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;NOSOUND;NOMINMAX;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<CsCompile>
<Optimize>false</Optimize>
<NoWarn>1591;1668;%(NoWarn)</NoWarn>
<WarningLevel>3</WarningLevel>
</CsCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<LinkTimeCodeGeneration>UseLinkTimeCodeGeneration</LinkTimeCodeGeneration>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PreprocessorDefinitions>WIN32;WIN32_LEAN_AND_MEAN;NOSOUND;NOMINMAX;NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<CsCompile>
<Optimize>true</Optimize>
<NoWarn>1591;1668;%(NoWarn)</NoWarn>
<WarningLevel>3</WarningLevel>
</CsCompile>
<Link>
<GenerateDebugInformation>false</GenerateDebugInformation>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='NativeGen|x64'">
<PreBuildEvent>
<Command>tools\NativeGen.exe http://github.com/UnknownModder/gta5-nativedb-data/raw/master/natives.json source\scripting_v3\GTA.Native\NativeHashes.cs</Command>
</PreBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\ProjectSchema.xml" />
</ItemGroup>
<!-- Assembly references and source files -->
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="source\core\DllMain.cpp" />
</ItemGroup>
<ItemGroup>
<CsCompile Include="source\core\Console.cs" />
<CsCompile Include="source\core\Log.cs" />
<CsCompile Include="source\core\NativeFunc.cs" />
<CsCompile Include="source\core\NativeMemory.cs" />
<CsCompile Include="source\core\Script.cs" />
<CsCompile Include="source\core\ScriptDomain.cs" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<!-- Compile C# source files -->
<Target
Name="CsCompile"
BeforeTargets="ClCompile"
Inputs="@(CsCompile)"
Outputs="$(IntDir)$(TargetName).netmodule">
<Csc
Sources="@(CsCompile)"
AllowUnsafeBlocks="%(CsCompile.AllowUnsafeBlocks)"
DisabledWarnings="%(CsCompile.NoWarn)"
DocumentationFile="$(IntDir)$(TargetName).xdc"
LangVersion="%(CsCompile.LangVersion)"
Optimize="%(CsCompile.Optimize)"
OutputAssembly="$(IntDir)$(TargetName).netmodule"
TargetType="Module"
Utf8Output="%(CsCompile.Utf8Output)"
WarningLevel="%(CsCompile.WarningLevel)"
WarningsAsErrors="%(CsCompile.WarningsAsErrors)"
WarningsNotAsErrors="%(CsCompile.WarningsNotAsErrors)"
ToolExe="$(CscToolExe)"
ToolPath="$(CscToolPath)" />
</Target>
<!-- Verify SDK files exist before generating anything -->
<Target
Name="VerifySDKFiles"
BeforeTargets="BeforeBuildGenerateSources">
<ItemGroup>
<!-- Look for the header files and the library -->
<SDKFiles Include="sdk\inc\*.h" />
<SDKLib Include="sdk\lib\*.lib" />
</ItemGroup>
<PropertyGroup>
<!-- Make sure all necessary files are present -->
<SDKFilesMissing>false</SDKFilesMissing>
<SDKFilesMissing Condition="'@(SDKFiles)'=='' or '@(SDKLib)'==''">true</SDKFilesMissing>
</PropertyGroup>
<Error Text="ScriptHookV SDK files not found. Please copy the SDK files into the 'sdk' folder and try again." Condition="$(SDKFilesMissing)" />
</Target>
</Project>