xash3d-fwgs/game_launch/wscript
Jonathan Poncelet 37255354d4 Various: Fixed obscure crashes on Mac
There were a couple of out-of-range/post-free accesses going on, which caused the Mac
build to crash when optimisations were turned on.
2019-07-12 18:18:42 +03:00

38 lines
639 B
Python

#! /usr/bin/env python
# encoding: utf-8
# a1batross, mittorn, 2018
from waflib import Logs
import os
import sys
top = '.'
def options(opt):
return
def configure(conf):
if conf.env.DEST_OS == 'win32':
conf.load('winres')
def build(bld):
source = ['game.cpp']
includes = '. ../common ../public'
libs = []
if bld.env.DEST_OS != 'win32':
libs += [ 'DL' ]
else:
libs += ['USER32', 'SHELL32']
source += ['game.rc']
bld(
source = source,
target = 'xash3d', # hl.exe
features = 'c cxx cxxprogram',
includes = includes,
use = libs,
install_path = bld.env.BINDIR,
subsystem = bld.env.MSVC_SUBSYSTEM
)