mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-15 13:41:33 +01:00
38 lines
623 B
Python
38 lines
623 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'
|
|
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 cprogram',
|
|
includes = includes,
|
|
use = libs,
|
|
install_path = bld.env.BINDIR,
|
|
subsystem = bld.env.MSVC_SUBSYSTEM
|
|
)
|