drisw: move build logic to build systems

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Eric Engestrom
2018-11-23 17:04:25 +00:00
committed by Eric Engestrom
parent 1cbe2ad394
commit 6a9dd62882
4 changed files with 13 additions and 7 deletions

View File

@@ -371,6 +371,9 @@ def generate(env):
if check_functions(env, ['timespec_get']):
cppdefines += ['HAVE_TIMESPEC_GET']
if check_header(env, 'sys/shm.h'):
cppdefines += ['HAVE_SYS_SHM_H']
if platform == 'windows':
cppdefines += [
'WIN32',