Added precompiled headers
This commit is contained in:
parent
29befa8769
commit
9292d41dfe
3 changed files with 36 additions and 6 deletions
|
@ -31,6 +31,10 @@ def configure(conf):
|
||||||
if game not in games.keys():
|
if game not in games.keys():
|
||||||
conf.fatal("Couldn't find game: ", game)
|
conf.fatal("Couldn't find game: ", game)
|
||||||
|
|
||||||
|
if conf.env.COMPILER_CC != 'msvc':
|
||||||
|
conf.options.with_pch = True
|
||||||
|
conf.load('pch')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
game = vpc_parser.parse_vpcs( bld.env, games[bld.env.GAMES], '../..' )
|
game = vpc_parser.parse_vpcs( bld.env, games[bld.env.GAMES], '../..' )
|
||||||
|
|
||||||
|
@ -79,6 +83,17 @@ def build(bld):
|
||||||
|
|
||||||
defines.remove('PROTECTED_THINGS_ENABLE')
|
defines.remove('PROTECTED_THINGS_ENABLE')
|
||||||
|
|
||||||
|
if bld.env.COMPILER_CC != 'msvc':
|
||||||
|
bld(features='cxx pch',
|
||||||
|
target='client-precompiled-headers',
|
||||||
|
name='client-precompiled-headers',
|
||||||
|
headers='cbase.h',
|
||||||
|
includes = includes,
|
||||||
|
defines = defines,
|
||||||
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
||||||
|
)
|
||||||
|
libs += 'client-precompiled-headers'
|
||||||
|
|
||||||
bld.shlib(
|
bld.shlib(
|
||||||
source = source,
|
source = source,
|
||||||
target = PROJECT_NAME,
|
target = PROJECT_NAME,
|
||||||
|
|
|
@ -38,6 +38,10 @@ def configure(conf):
|
||||||
if game not in games.keys():
|
if game not in games.keys():
|
||||||
conf.fatal("Couldn't find game: ", game)
|
conf.fatal("Couldn't find game: ", game)
|
||||||
|
|
||||||
|
if conf.env.COMPILER_CC != 'msvc':
|
||||||
|
conf.options.with_pch = True
|
||||||
|
conf.load('pch')
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
game = vpc_parser.parse_vpcs( bld.env, games[bld.env.GAMES], '../..' )
|
game = vpc_parser.parse_vpcs( bld.env, games[bld.env.GAMES], '../..' )
|
||||||
|
|
||||||
|
@ -69,6 +73,17 @@ def build(bld):
|
||||||
|
|
||||||
defines.remove('PROTECTED_THINGS_ENABLE')
|
defines.remove('PROTECTED_THINGS_ENABLE')
|
||||||
|
|
||||||
|
if bld.env.COMPILER_CC != 'msvc':
|
||||||
|
bld(features='cxx pch',
|
||||||
|
target='server-precompiled-headers',
|
||||||
|
name='server-precompiled-headers',
|
||||||
|
headers='cbase.h',
|
||||||
|
includes = includes,
|
||||||
|
defines = defines,
|
||||||
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
||||||
|
)
|
||||||
|
libs += 'server-precompiled-headers'
|
||||||
|
|
||||||
bld.shlib(
|
bld.shlib(
|
||||||
source = source,
|
source = source,
|
||||||
target = PROJECT_NAME,
|
target = PROJECT_NAME,
|
||||||
|
|
12
waf
vendored
12
waf
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue