File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -175,10 +175,20 @@ def run(self):
175
175
else :
176
176
platform = "x64" if IS_64_BIT else "x86"
177
177
config = "Release"
178
+ properties = {
179
+ "Configuration" : config ,
180
+ "Platform" : platform ,
181
+ "IntermediateOutputPath" : str (build_temp / platform / "obj" ) + "\\ " , # Must end with trailing slash.
182
+ "OutDir" : str (build_temp / platform / config ) + "\\ " ,
183
+ #IntermediateOutputPath
184
+ #OutputPath
185
+ }
186
+
187
+ property_values = ';' .join (f'{ k } ={ v } ' for k , v in properties .items ())
188
+ msbuild_cmd = f'msbuild -p:{ property_values } { VS_PROJ } '
178
189
179
190
try :
180
- self .spawn (['cmd.exe' , '/c' , f'{ VSENV_SCRIPT } && '
181
- f'msbuild -p:Configuration={ config } -p:Platform={ platform } { VS_PROJ } ' ])
191
+ self .spawn (['cmd.exe' , '/c' , f'{ VSENV_SCRIPT } && { msbuild_cmd } ' ])
182
192
except Exception as err :
183
193
# See comment above for notes about this exception handler.
184
194
raise LibusbBuildError (str (err )) from err
You can’t perform that action at this time.
0 commit comments