mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-15 08:53:07 +09:00
Add support for compiling under MinGW + fix Windows compiling in general
This commit is contained in:
parent
e3a45c193c
commit
a5cf494890
56 changed files with 243 additions and 76 deletions
|
|
@ -66,7 +66,7 @@ class VisualStudioBackend(CommonBackend):
|
|||
self._out_dir = os.path.join(self.environment.topobjdir, 'msvc')
|
||||
self._projsubdir = 'projects'
|
||||
|
||||
self._version = self.environment.substs.get('MSVS_VERSION', '2015')
|
||||
self._version = self.environment.substs.get('MSVS_VERSION')
|
||||
|
||||
self._paths_to_sources = {}
|
||||
self._paths_to_includes = {}
|
||||
|
|
@ -132,6 +132,12 @@ class VisualStudioBackend(CommonBackend):
|
|||
out_dir = self._out_dir
|
||||
out_proj_dir = os.path.join(self._out_dir, self._projsubdir)
|
||||
|
||||
# If we do not have an MSVC version, we should not generate Visual
|
||||
# Studio projects.
|
||||
version = self._version
|
||||
if not version:
|
||||
return
|
||||
|
||||
projects = self._write_projects_for_sources(self._libs_to_paths,
|
||||
"library", out_proj_dir)
|
||||
projects.update(self._write_projects_for_sources(self._progs_to_paths,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue