mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-07 02:09:52 +03:00
touch: add new commands
This commit is contained in:
18
wscript
18
wscript
@@ -112,8 +112,6 @@ projects={
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Configure.conf
|
||||
def check_pkg(conf, package, uselib_store, fragment, *k, **kw):
|
||||
errormsg = '{0} not available! Install {0} development package. Also you may need to set PKG_CONFIG_PATH environment variable'.format(package)
|
||||
@@ -201,6 +199,9 @@ def options(opt):
|
||||
grp.add_option('--use-togl', action = 'store', dest = 'GL', type = 'int', default = True,
|
||||
help = 'build engine with ToGL [default: %default]')
|
||||
|
||||
grp.add_option('--build-games', action = 'store', dest = 'GAMES', type = 'string', default = 'hl2',
|
||||
help = 'build games [default: %default]')
|
||||
|
||||
grp.add_option('--use-ccache', action = 'store_true', dest = 'CCACHE', default = False,
|
||||
help = 'build using ccache [default: %default]')
|
||||
|
||||
@@ -214,7 +215,6 @@ def options(opt):
|
||||
opt.load('reconfigure')
|
||||
|
||||
def configure(conf):
|
||||
|
||||
conf.load('fwgslib reconfigure')
|
||||
|
||||
# Force XP compability, all build targets should add
|
||||
@@ -238,6 +238,7 @@ def configure(conf):
|
||||
conf.load('force_32bit')
|
||||
|
||||
compiler_optional_flags = [
|
||||
'-pipe',
|
||||
'-Wall',
|
||||
'-fdiagnostics-color=always',
|
||||
'-Wcast-align',
|
||||
@@ -245,6 +246,7 @@ def configure(conf):
|
||||
'-Winit-self',
|
||||
'-Wstrict-aliasing',
|
||||
'-faligned-new'
|
||||
# '-Werror=strict-aliasing'
|
||||
]
|
||||
|
||||
c_compiler_optional_flags = [
|
||||
@@ -267,9 +269,15 @@ def configure(conf):
|
||||
]
|
||||
|
||||
if conf.env.DEST_CPU == 'arm':
|
||||
flags += ['-mfpu=neon', '-fsigned-char']
|
||||
flags += ['-fsigned-char', '-mfpu=neon']
|
||||
|
||||
if conf.env.DEST_OS == 'android':
|
||||
flags += ['-mcpu=cortex-a15', '-mtune=cortex-a15']
|
||||
else:
|
||||
flags += ['-march=native', '-mtune=native']
|
||||
else:
|
||||
flags += ['-march=pentium4','-mtune=core2','-mfpmath=387']
|
||||
flags += ['-march=native','-mtune=native','-mfpmath=sse', '-msse', '-msse2']
|
||||
|
||||
|
||||
cflags += flags
|
||||
linkflags += flags
|
||||
|
||||
Reference in New Issue
Block a user