Remove unused engine defines
This commit is contained in:
parent
38bb77a077
commit
e53cbe79f6
3 changed files with 1 additions and 84 deletions
|
@ -26,7 +26,7 @@ cd ../..
|
|||
|
||||
2. Setup Meson build folder
|
||||
```
|
||||
meson setup -D engine=tf2 -D arch=x86 -D buildtype=debug build
|
||||
meson setup -D arch=x86 -D buildtype=debug build
|
||||
```
|
||||
|
||||
3. Build with Meson
|
||||
|
|
77
meson.build
77
meson.build
|
@ -143,83 +143,6 @@ else
|
|||
error('Unsupported arch "@0@"', arch)
|
||||
endif
|
||||
|
||||
# Engine defines
|
||||
compiler_args += [
|
||||
'-DSE_EPISODEONE=1',
|
||||
'-DSE_DARKMESSIAH=2',
|
||||
'-DSE_ORANGEBOX=3',
|
||||
'-DSE_BLOODYGOODTIME=4',
|
||||
'-DSE_EYE=5',
|
||||
'-DSE_CSS=6',
|
||||
'-DSE_HL2DM=7',
|
||||
'-DSE_DODS=8',
|
||||
'-DSE_SDK2013=9',
|
||||
'-DSE_BMS=10',
|
||||
'-DSE_TF2=11',
|
||||
'-DSE_LEFT4DEAD=12',
|
||||
'-DSE_NUCLEARDAWN=13',
|
||||
'-DSE_CONTAGION=14',
|
||||
'-DSE_LEFT4DEAD2=15',
|
||||
'-DSE_ALIENSWARM=16',
|
||||
'-DSE_PORTAL2=17',
|
||||
'-DSE_BLADE=18',
|
||||
'-DSE_INSURGENCY=19',
|
||||
'-DSE_DOI=20',
|
||||
'-DSE_CSGO=21',
|
||||
'-DSE_DOTA=22',
|
||||
]
|
||||
|
||||
engine = get_option('engine')
|
||||
|
||||
# Selected engine defines
|
||||
if engine == 'episodeone'
|
||||
compiler_args += ['-DSOURCE_ENGINE=1']
|
||||
elif engine == 'darkmessiah'
|
||||
compiler_args += ['-DSOURCE_ENGINE=2']
|
||||
elif engine == 'orangebox'
|
||||
compiler_args += ['-DSOURCE_ENGINE=3']
|
||||
elif engine == 'bloodygoodtime'
|
||||
compiler_args += ['-DSOURCE_ENGINE=4']
|
||||
elif engine == 'eye'
|
||||
compiler_args += ['-DSOURCE_ENGINE=5']
|
||||
elif engine == 'css'
|
||||
compiler_args += ['-DSOURCE_ENGINE=6']
|
||||
elif engine == 'hl2dm'
|
||||
compiler_args += ['-DSOURCE_ENGINE=7']
|
||||
elif engine == 'dods'
|
||||
compiler_args += ['-DSOURCE_ENGINE=8']
|
||||
elif engine == 'sdk2013'
|
||||
compiler_args += ['-DSOURCE_ENGINE=9']
|
||||
elif engine == 'bms'
|
||||
compiler_args += ['-DSOURCE_ENGINE=10']
|
||||
elif engine == 'tf2'
|
||||
compiler_args += ['-DSOURCE_ENGINE=11']
|
||||
elif engine == 'left4dead'
|
||||
compiler_args += ['-DSOURCE_ENGINE=12']
|
||||
elif engine == 'nucleardawn'
|
||||
compiler_args += ['-DSOURCE_ENGINE=13']
|
||||
elif engine == 'contagion'
|
||||
compiler_args += ['-DSOURCE_ENGINE=14']
|
||||
elif engine == 'left4dead2'
|
||||
compiler_args += ['-DSOURCE_ENGINE=15']
|
||||
elif engine == 'alienswarm'
|
||||
compiler_args += ['-DSOURCE_ENGINE=16']
|
||||
elif engine == 'portal2'
|
||||
compiler_args += ['-DSOURCE_ENGINE=17']
|
||||
elif engine == 'blade'
|
||||
compiler_args += ['-DSOURCE_ENGINE=18']
|
||||
elif engine == 'insurgency'
|
||||
compiler_args += ['-DSOURCE_ENGINE=19']
|
||||
elif engine == 'doi'
|
||||
compiler_args += ['-DSOURCE_ENGINE=20']
|
||||
elif engine == 'csgo'
|
||||
compiler_args += ['-DSOURCE_ENGINE=21']
|
||||
elif engine == 'dota'
|
||||
compiler_args += ['-DSOURCE_ENGINE=22']
|
||||
else
|
||||
error('Unsupported engine "@0@"', engine)
|
||||
endif
|
||||
|
||||
# Target specific workarounds
|
||||
if host_system == 'linux' and buildtype == 'release'
|
||||
compiler_args += [
|
||||
|
|
|
@ -1,9 +1,3 @@
|
|||
option(
|
||||
'engine',
|
||||
description: 'The engine version to target',
|
||||
type: 'string',
|
||||
value: 'tf2'
|
||||
)
|
||||
option(
|
||||
'arch',
|
||||
description: 'The architecture to target',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue