Skip to content

Commit 2aee30f

Browse files
committed
Updated GITechDemo and Synesthesia3D with spaces instead of tabs for more consistency across text editors and IDEs
1 parent 2e1fb44 commit 2aee30f

File tree

194 files changed

+25241
-25241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

194 files changed

+25241
-25241
lines changed

GITechDemo/Build/build_data_win.py

Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
#=============================================================================
2-
# This file is part of the "GITechDemo" application
3-
# Copyright (C) Iftode Bogdan-Marius <[email protected]>
2+
# This file is part of the "GITechDemo" application
3+
# Copyright (C) Iftode Bogdan-Marius <[email protected]>
44
#
5-
# File: build_data_win.py
6-
# Author: Bogdan Iftode
5+
# File: build_data_win.py
6+
# Author: Bogdan Iftode
77
#
8-
# This program is free software: you can redistribute it and/or modify
9-
# it under the terms of the GNU General Public License as published by
10-
# the Free Software Foundation, either version 3 of the License, or
11-
# (at your option) any later version.
8+
# This program is free software: you can redistribute it and/or modify
9+
# it under the terms of the GNU General Public License as published by
10+
# the Free Software Foundation, either version 3 of the License, or
11+
# (at your option) any later version.
1212
#
13-
# This program is distributed in the hope that it will be useful,
14-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16-
# GNU General Public License for more details.
13+
# This program is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
# GNU General Public License for more details.
1717
#
18-
# You should have received a copy of the GNU General Public License
19-
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
# You should have received a copy of the GNU General Public License
19+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
2020
#=============================================================================
2121

2222
import os
@@ -33,62 +33,62 @@
3333

3434

3535
#############################################################################
36-
# Arguments: #
36+
# Arguments: #
3737
#---------------------------------------------------------------------------#
38-
# 'win32' to use the 32 bit version of the tools #
39-
# 'x64' to use the 64 bit version of the tools (default) #
40-
# 'rebuild' to force rebuilding all data assets #
38+
# 'win32' to use the 32 bit version of the tools #
39+
# 'x64' to use the 64 bit version of the tools (default) #
40+
# 'rebuild' to force rebuilding all data assets #
4141
#############################################################################
4242

4343

4444

4545
def Run():
46-
#################
47-
# Configuration #
48-
#################
49-
50-
# Path to folder with data build scripts (relative to this script's folder)
51-
dataSrcDir = "/../DataSrc/"
52-
53-
# List of scripts to run for building data
54-
dataBuildScript = [
55-
"compile_sponza_model.py",
56-
"compile_utility_textures.py"
57-
]
58-
59-
#################
60-
61-
62-
63-
# Start timer
64-
start = time.clock()
65-
66-
# Compile data
67-
if(dataBuildScript):
68-
absDataSrcDir = os.path.realpath(utils.GetScriptAbsolutePath() + dataSrcDir)
69-
logging.info("Starting data build process...")
70-
logging.info("Data source directory: " + absDataSrcDir)
71-
logging.info("")
72-
for script in dataBuildScript:
73-
logging.info("Running script: \"" + script + "\"")
74-
proc = subprocess.Popen( \
75-
['python.exe', '-u', absDataSrcDir + "/" + script] + sys.argv[1:], \
76-
stdout = subprocess.PIPE, \
77-
stderr = subprocess.STDOUT, \
78-
cwd = absDataSrcDir)
79-
for line in iter(proc.stdout.readline, ""):
80-
logging.info(line.replace('\n', '').replace('\r', ''))
81-
if proc.wait() != 0:
82-
logging.info(script + " has failed!")
83-
exit()
84-
logging.info("")
85-
86-
87-
88-
# Done! Print some info.
89-
logging.info("Done compiling data in " + str(time.clock() - start) + " seconds.")
90-
91-
return 0
46+
#################
47+
# Configuration #
48+
#################
49+
50+
# Path to folder with data build scripts (relative to this script's folder)
51+
dataSrcDir = "/../DataSrc/"
52+
53+
# List of scripts to run for building data
54+
dataBuildScript = [
55+
"compile_sponza_model.py",
56+
"compile_utility_textures.py"
57+
]
58+
59+
#################
60+
61+
62+
63+
# Start timer
64+
start = time.clock()
65+
66+
# Compile data
67+
if(dataBuildScript):
68+
absDataSrcDir = os.path.realpath(utils.GetScriptAbsolutePath() + dataSrcDir)
69+
logging.info("Starting data build process...")
70+
logging.info("Data source directory: " + absDataSrcDir)
71+
logging.info("")
72+
for script in dataBuildScript:
73+
logging.info("Running script: \"" + script + "\"")
74+
proc = subprocess.Popen( \
75+
['python.exe', '-u', absDataSrcDir + "/" + script] + sys.argv[1:], \
76+
stdout = subprocess.PIPE, \
77+
stderr = subprocess.STDOUT, \
78+
cwd = absDataSrcDir)
79+
for line in iter(proc.stdout.readline, ""):
80+
logging.info(line.replace('\n', '').replace('\r', ''))
81+
if proc.wait() != 0:
82+
logging.info(script + " has failed!")
83+
exit()
84+
logging.info("")
85+
86+
87+
88+
# Done! Print some info.
89+
logging.info("Done compiling data in " + str(time.clock() - start) + " seconds.")
90+
91+
return 0
9292

9393
########
9494

@@ -99,5 +99,5 @@ def Run():
9999
##############
100100

101101
if __name__ == "__main__":
102-
utils.SetupLogging("DataBuild")
103-
Run()
102+
utils.SetupLogging("DataBuild")
103+
Run()

0 commit comments

Comments
 (0)