mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Added an easy build option for the setup script. Also changed the contrast a bit.
This commit is contained in:
parent
afcfcea3ba
commit
c4c5d9fe82
66
SConstruct
66
SConstruct
@ -186,6 +186,72 @@ def setup_all():
|
||||
setup_addons_third_party_addons()
|
||||
|
||||
env = Environment()
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
|
||||
arg = sys.argv[1]
|
||||
|
||||
if arg[0] == 'b':
|
||||
build_string = 'scons '
|
||||
|
||||
build_string += 'tools='
|
||||
if 'e' in arg:
|
||||
build_string += 'yes'
|
||||
else:
|
||||
build_string += 'no'
|
||||
build_string += ' '
|
||||
|
||||
build_string += 'target='
|
||||
if 'r' in arg:
|
||||
build_string += 'release'
|
||||
if 'd' in arg:
|
||||
build_string += 'debug'
|
||||
else:
|
||||
build_string += 'release_debug'
|
||||
build_string += ' '
|
||||
|
||||
build_string += 'custom_modules_shared='
|
||||
if 's' in arg:
|
||||
build_string += 'yes'
|
||||
else:
|
||||
build_string += 'no'
|
||||
build_string += ' '
|
||||
|
||||
build_string += 'platform='
|
||||
if 'l' in arg:
|
||||
build_string += 'x11'
|
||||
elif 'w' in arg:
|
||||
build_string += 'windows'
|
||||
else:
|
||||
print('No platform specified')
|
||||
exit()
|
||||
|
||||
build_string += ' '
|
||||
|
||||
for i in range(2, len(sys.argv)):
|
||||
build_string += ' ' + sys.argv[i] + ' '
|
||||
|
||||
print('Running command: ' + build_string)
|
||||
|
||||
cwd = os.getcwd()
|
||||
full_path = cwd + '/engine/'
|
||||
|
||||
if not os.path.isdir(full_path):
|
||||
print("engine directory doesnt exists.")
|
||||
exit()
|
||||
|
||||
os.chdir(full_path)
|
||||
|
||||
subprocess.call('export SCONS_CACHE=~/.scons_cache', shell=True)
|
||||
subprocess.call('export SCONS_CACHE_LIMIT=5000', shell=True)
|
||||
|
||||
subprocess.call(build_string, shell=True)
|
||||
|
||||
#if arg[0] == 'r':
|
||||
# pass
|
||||
|
||||
exit()
|
||||
|
||||
opts = Variables(args=ARGUMENTS)
|
||||
|
||||
opts.Add('a', 'What to do', '')
|
||||
|
@ -9,7 +9,6 @@ resource_name = "Close Wounds"
|
||||
id = 16
|
||||
spell_type = 8
|
||||
target_type = 2
|
||||
target_relation_type = -870457328
|
||||
rank = 1
|
||||
icon = ExtResource( 2 )
|
||||
caster_aura_applys = [ ExtResource( 3 ) ]
|
||||
|
@ -53,7 +53,7 @@ glow_bloom = 0.1
|
||||
glow_hdr_luminance_cap = 1.0
|
||||
adjustment_enabled = true
|
||||
adjustment_brightness = 1.1
|
||||
adjustment_contrast = 1.25
|
||||
adjustment_contrast = 1.22
|
||||
|
||||
[node name="World" type="VoxelWorld" groups=[
|
||||
"save",
|
||||
|
Loading…
Reference in New Issue
Block a user