forked from ValveSoftware/source-sdk-2013
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsettings.py
More file actions
65 lines (55 loc) · 2.24 KB
/
Copy pathsettings.py
File metadata and controls
65 lines (55 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
import os
# srcpath is the folder containing the game directory with source code (i.e. server, client and shared)
srcpath = '..'
# Paths to be searched by Python for modules containing the binding code
searchpaths = [
os.path.normpath('game/client/python/modules/'),
os.path.normpath('game/server/python/modules/'),
os.path.normpath('game/shared/python/modules/'),
]
# Output folder name, used for creating filters by VPC (see srcpypp.genvpc)
autogenfoldername = 'autogenerated'
# Output paths for generated binding code (must use autogenfoldername)
client_path = os.path.normpath('game/client/python/modules/%s/' % (autogenfoldername))
server_path = os.path.normpath('game/server/python/modules/%s/' % (autogenfoldername))
shared_path = os.path.normpath('game/shared/python/modules/%s/' % (autogenfoldername))
# Branch (currently either "swarm" or "source2013")
branch = "source2013"
# VPC Project name
vpcgamename = 'pysource'
# VPC Project file paths
vpcserverpath = os.path.join(srcpath, 'game/server/server_pysource.vpc')
vpcclientpath = os.path.join(srcpath, 'game/client/client_pysource.vpc')
# Output paths for generated VPC file, to be included in the game VPC files
vpcserverautopath = os.path.join(os.path.dirname(vpcserverpath), '%s_autogen.vpc' % (os.path.splitext(os.path.basename(vpcserverpath))[0]))
vpcclientautopath = os.path.join(os.path.dirname(vpcclientpath), '%s_autogen.vpc' % (os.path.splitext(os.path.basename(vpcclientpath))[0]))
# The list of modules
# The parse code looks in the above paths
modules = [
# Base
('srcbuiltins', 'SrcBuiltins'),
('_srcbase', 'SrcBase'),
('_vmath', 'VMath'),
('_filesystem', 'SrcFilesystem'),
# Game
('_animation', 'Animation'),
('_entities', 'Entities'),
('_entitiesmisc', 'EntitiesMisc'),
('_gameinterface', 'GameInterface'),
('_gamerules', 'GameRules'),
('_utils', 'Utils'),
('_physics', 'Physics'),
('_sound', 'Sound'),
('_particles', 'Particles'),
('materials', 'Materials'),
('_te', 'TE'),
# Client
('_input', 'Input'),
('_vgui', 'VGUI'),
('_vguicontrols', 'VGUIControls'),
# Misc
('_steam', 'Steam'),
('_ndebugoverlay', 'NDebugOverlay'),
('vprof', 'VProf'),
('_srctests', '_SrcTests'),
]