Skip to content

Commit 24f6b1f

Browse files
committed
Added conditional auto-copy to game folder.
1 parent 06ed9f3 commit 24f6b1f

File tree

3 files changed

+63
-11
lines changed

3 files changed

+63
-11
lines changed

d3d11/d3d11.vcxproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@
101101
<EnableUAC>false</EnableUAC>
102102
<ModuleDefinitionFile>deffile.def</ModuleDefinitionFile>
103103
</Link>
104+
<PostBuildEvent>
105+
<Command>IF DEFINED GW2_INSTALL_DIR (
106+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
107+
)</Command>
108+
</PostBuildEvent>
104109
</ItemDefinitionGroup>
105110
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
106111
<ClCompile>
@@ -117,6 +122,11 @@
117122
<EnableUAC>false</EnableUAC>
118123
<ModuleDefinitionFile>deffile.def</ModuleDefinitionFile>
119124
</Link>
125+
<PostBuildEvent>
126+
<Command>IF DEFINED GW2_INSTALL_DIR (
127+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
128+
)</Command>
129+
</PostBuildEvent>
120130
</ItemDefinitionGroup>
121131
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
122132
<ClCompile>
@@ -133,6 +143,11 @@
133143
<EnableUAC>false</EnableUAC>
134144
<ModuleDefinitionFile>deffile.def</ModuleDefinitionFile>
135145
</Link>
146+
<PostBuildEvent>
147+
<Command>IF DEFINED GW2_INSTALL_DIR (
148+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
149+
)</Command>
150+
</PostBuildEvent>
136151
</ItemDefinitionGroup>
137152
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
138153
<ClCompile>
@@ -153,6 +168,11 @@
153168
<EnableUAC>false</EnableUAC>
154169
<ModuleDefinitionFile>deffile.def</ModuleDefinitionFile>
155170
</Link>
171+
<PostBuildEvent>
172+
<Command>IF DEFINED GW2_INSTALL_DIR (
173+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
174+
)</Command>
175+
</PostBuildEvent>
156176
</ItemDefinitionGroup>
157177
<ItemGroup>
158178
<ClCompile Include="dllmain.cpp" />

dxgi/dxgi.vcxproj

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,12 @@
8484
</PropertyGroup>
8585
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
8686
<ClCompile>
87-
<PrecompiledHeader>NotUsing</PrecompiledHeader>
8887
<WarningLevel>Level3</WarningLevel>
8988
<FunctionLevelLinking>true</FunctionLevelLinking>
9089
<IntrinsicFunctions>true</IntrinsicFunctions>
9190
<SDLCheck>true</SDLCheck>
9291
<PreprocessorDefinitions>NDEBUG;DXGI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
9392
<ConformanceMode>true</ConformanceMode>
94-
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
9593
</ClCompile>
9694
<Link>
9795
<SubSystem>Windows</SubSystem>
@@ -101,58 +99,72 @@
10199
<EnableUAC>false</EnableUAC>
102100
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
103101
</Link>
102+
<PostBuildEvent>
103+
<Command>IF DEFINED GW2_INSTALL_DIR (
104+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
105+
)</Command>
106+
</PostBuildEvent>
104107
</ItemDefinitionGroup>
105108
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
106109
<ClCompile>
107-
<PrecompiledHeader>Use</PrecompiledHeader>
108110
<WarningLevel>Level3</WarningLevel>
109111
<SDLCheck>true</SDLCheck>
110112
<PreprocessorDefinitions>WIN32;_DEBUG;DXGI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
111113
<ConformanceMode>true</ConformanceMode>
112-
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
113114
</ClCompile>
114115
<Link>
115116
<SubSystem>Windows</SubSystem>
116117
<GenerateDebugInformation>true</GenerateDebugInformation>
117118
<EnableUAC>false</EnableUAC>
118-
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
119+
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
119120
</Link>
121+
<PostBuildEvent>
122+
<Command>IF DEFINED GW2_INSTALL_DIR (
123+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
124+
)</Command>
125+
</PostBuildEvent>
120126
</ItemDefinitionGroup>
121127
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
122128
<ClCompile>
123-
<PrecompiledHeader>Use</PrecompiledHeader>
124129
<WarningLevel>Level3</WarningLevel>
125130
<SDLCheck>true</SDLCheck>
126131
<PreprocessorDefinitions>_DEBUG;DXGI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
127132
<ConformanceMode>true</ConformanceMode>
128-
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
129133
</ClCompile>
130134
<Link>
131135
<SubSystem>Windows</SubSystem>
132136
<GenerateDebugInformation>true</GenerateDebugInformation>
133137
<EnableUAC>false</EnableUAC>
134-
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
138+
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
135139
</Link>
140+
<PostBuildEvent>
141+
<Command>IF DEFINED GW2_INSTALL_DIR (
142+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
143+
)</Command>
144+
</PostBuildEvent>
136145
</ItemDefinitionGroup>
137146
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
138147
<ClCompile>
139-
<PrecompiledHeader>Use</PrecompiledHeader>
140148
<WarningLevel>Level3</WarningLevel>
141149
<FunctionLevelLinking>true</FunctionLevelLinking>
142150
<IntrinsicFunctions>true</IntrinsicFunctions>
143151
<SDLCheck>true</SDLCheck>
144152
<PreprocessorDefinitions>WIN32;NDEBUG;DXGI_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
145153
<ConformanceMode>true</ConformanceMode>
146-
<PrecompiledHeaderFile>pch.h</PrecompiledHeaderFile>
147154
</ClCompile>
148155
<Link>
149156
<SubSystem>Windows</SubSystem>
150157
<EnableCOMDATFolding>true</EnableCOMDATFolding>
151158
<OptimizeReferences>true</OptimizeReferences>
152159
<GenerateDebugInformation>true</GenerateDebugInformation>
153160
<EnableUAC>false</EnableUAC>
154-
<ModuleDefinitionFile>Source.def</ModuleDefinitionFile>
161+
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
155162
</Link>
163+
<PostBuildEvent>
164+
<Command>IF DEFINED GW2_INSTALL_DIR (
165+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
166+
)</Command>
167+
</PostBuildEvent>
156168
</ItemDefinitionGroup>
157169
<ItemGroup>
158170
<ClCompile Include="dllmain.cpp" />

loader_core/loader_core.vcxproj

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@
102102
<GenerateDebugInformation>true</GenerateDebugInformation>
103103
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
104104
</Link>
105+
<PostBuildEvent>
106+
<Command>IF DEFINED GW2_INSTALL_DIR (
107+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
108+
)</Command>
109+
</PostBuildEvent>
105110
</ItemDefinitionGroup>
106111
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
107112
<ClCompile>
@@ -117,6 +122,11 @@
117122
<GenerateDebugInformation>true</GenerateDebugInformation>
118123
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
119124
</Link>
125+
<PostBuildEvent>
126+
<Command>IF DEFINED GW2_INSTALL_DIR (
127+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
128+
)</Command>
129+
</PostBuildEvent>
120130
</ItemDefinitionGroup>
121131
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
122132
<ClCompile>
@@ -135,6 +145,11 @@
135145
<OptimizeReferences>true</OptimizeReferences>
136146
<GenerateDebugInformation>true</GenerateDebugInformation>
137147
</Link>
148+
<PostBuildEvent>
149+
<Command>IF DEFINED GW2_INSTALL_DIR (
150+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
151+
)</Command>
152+
</PostBuildEvent>
138153
</ItemDefinitionGroup>
139154
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
140155
<ClCompile>
@@ -155,6 +170,11 @@
155170
<GenerateDebugInformation>true</GenerateDebugInformation>
156171
<ModuleDefinitionFile>deffile</ModuleDefinitionFile>
157172
</Link>
173+
<PostBuildEvent>
174+
<Command>IF DEFINED GW2_INSTALL_DIR (
175+
xcopy "$(TargetPath)" "$(GW2_INSTALL_DIR)\" /Y
176+
)</Command>
177+
</PostBuildEvent>
158178
</ItemDefinitionGroup>
159179
<ItemGroup>
160180
<ClInclude Include="..\include\gw2al_api.h" />

0 commit comments

Comments
 (0)