* fix a link flag * another hack to find weirdly named libraries * Fix handling VCRedistInstall.exe * add src folders to win-scons include paths * use path.join * more weird library suffixes * fix old python syntax in an SConscript file * find vcpkg libraries and headers * add icon dir to windows include paths * remove non-recursive os.listdir line * remove bad lib paths * tools build with env["bits"] * hard-code vcvarsall.bat path, with a note * pass in other lib paths * fix syntax without trying to use f-strings * more bundled libs on windows * add bin folders for windows installation to find dlls * fix CheckLib stuff * test scons pass X86 correctly * make 64-bit builds the default for scons * add package flag for building installers
35 lines
1.1 KiB
Python
35 lines
1.1 KiB
Python
|
|
from os.path import normpath as makepath
|
|
from glob import glob
|
|
import sys
|
|
|
|
root = makepath(sys.argv[1])
|
|
|
|
# To add directories to the list of sources to generate file lists from,
|
|
# simply edit this dictionary. The key is the directory path (relative to
|
|
# the build output directory), and the value is either a glob pattern to include,
|
|
# or an explicit list of files to include.
|
|
|
|
# All paths should be in UNIX format, since makepath() will be used to convert them.
|
|
# There should be no trailing slashes.
|
|
|
|
files = {
|
|
'data/dialogs': '*.xml',
|
|
'data/strings': '*.txt',
|
|
'data/fonts': '*.ttf',
|
|
'data/shaders': ['mask.frag', 'mask.vert'],
|
|
'data/graphics': '*.png',
|
|
'data/cursors': '*.gif',
|
|
'data/sounds': '*.WAV',
|
|
}
|
|
|
|
for path, pattern in files.items():
|
|
print('SetOutPath "' + makepath('$INSTDIR/' + path + '/') + '"')
|
|
if type(pattern) == list:
|
|
check_files = [root + '/' + path + '/' + x for x in pattern]
|
|
else:
|
|
check_files = glob(makepath(root + '/' + path + '/' + pattern))
|
|
for fname in check_files:
|
|
print('File "' + makepath(fname.replace(root, '${RELEASE_DIR}')) + '"')
|
|
|