File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/rezplugins/build_system Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ class CMakeBuildSystem(BuildSystem):
4141 'codeblocks' : "CodeBlocks - Unix Makefiles" ,
4242 'make' : "Unix Makefiles" ,
4343 'nmake' : "NMake Makefiles" ,
44+ 'mingw' : "MinGW Makefiles" ,
4445 'xcode' : "Xcode" }
4546
4647 build_targets = ["Debug" , "Release" , "RelWithDebInfo" ]
@@ -175,14 +176,20 @@ def _pr(s):
175176 return ret
176177
177178 # assemble make command
179+ make_binary = self .settings .make_binary
178180 if self .settings .make_binary :
179181 cmd = [self .settings .make_binary ]
182+ elif self .cmake_build_system == 'mingw' :
183+ cmd = ["mingw32-make" ]
184+ elif self .cmake_build_system == 'nmake' :
185+ make_binary = 'nmake'
186+ cmd = ["nmake" ]
180187 else :
181188 cmd = ["make" ]
182189 cmd += (self .child_build_args or [])
183190
184191 # nmake has no -j
185- if self . settings . make_binary != 'nmake' :
192+ if make_binary != 'nmake' :
186193 if not any (x .startswith ("-j" ) for x in (self .child_build_args or [])):
187194 n = variant .config .build_thread_count
188195 cmd .append ("-j%d" % n )
Original file line number Diff line number Diff line change 3030
3131if os .name != "posix" :
3232 cmake ["build_system" ] = "nmake"
33- cmake ["make_binary" ] = "nmake"
3433
3534
3635# Copyright 2013-2016 Allan Johns.
You can’t perform that action at this time.
0 commit comments