mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
SCons: Build thirdparty code in own env, disable warnings
Also remove unnecessary `Export('env')` in other SCsubs, Export should only be used when exporting *new* objects.
This commit is contained in:
parent
243bdc4524
commit
3a2ca68af3
85 changed files with 229 additions and 225 deletions
|
@ -19,6 +19,14 @@ def add_source_files(self, sources, filetype, lib_env=None, shared=False):
|
|||
sources.append(self.Object(path))
|
||||
|
||||
|
||||
def disable_warnings(self):
|
||||
# 'self' is the environment
|
||||
if self.msvc:
|
||||
self.Append(CCFLAGS=['/w'])
|
||||
else:
|
||||
self.Append(CCFLAGS=['-w'])
|
||||
|
||||
|
||||
def add_module_version_string(self,s):
|
||||
self.module_version_string += "." + s
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue