You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
1.5 KiB
76 lines
1.5 KiB
#! /usr/bin/env python |
|
# encoding: utf-8 |
|
|
|
from waflib import Utils |
|
import os |
|
|
|
top = '.' |
|
PROJECT_NAME = 'dedicated' |
|
|
|
def options(opt): |
|
# stub |
|
return |
|
|
|
def configure(conf): |
|
conf.define('LAUNCHERONLY',1) |
|
conf.define('SUPPORT_PACKED_STORE',1) |
|
conf.define('DEDICATED',1) |
|
|
|
def build(bld): |
|
source = [ |
|
'filesystem.cpp', |
|
'../public/filesystem_init.cpp', |
|
'../common/netapi.cpp', |
|
'../common/SteamAppStartup.cpp', |
|
'sys_common.cpp', |
|
'sys_ded.cpp', |
|
'console/conproc.cpp', |
|
'console/textconsole.cpp', |
|
'../filesystem/filetracker.cpp', |
|
'../filesystem/basefilesystem.cpp', |
|
'../filesystem/packfile.cpp', |
|
'../filesystem/filesystem_async.cpp', |
|
'../filesystem/filesystem_stdio.cpp', |
|
'../filesystem/QueuedLoader.cpp', |
|
'../public/zip_utils.cpp', |
|
'../public/tier0/memoverride.cpp' |
|
] |
|
|
|
if bld.env.DEST_OS == 'win32': |
|
source += [ |
|
'sys_windows.cpp' |
|
] |
|
else: |
|
source += [ |
|
'sys_linux.cpp', # [$POSIX] |
|
'console/TextConsoleUnix.cpp', # [$POSIX] |
|
'../filesystem/linux_support.cpp' # [$POSIX] |
|
] |
|
|
|
includes = [ |
|
'.', |
|
'../public', |
|
'../public/tier0', |
|
'../public/tier1', |
|
'../common' |
|
] + bld.env.INCLUDES_SDL2 |
|
|
|
defines = [] |
|
|
|
libs = ['tier0','vpklib','tier1','tier2','tier3','vstdlib','steam_api','appframework','mathlib', 'EDIT'] |
|
|
|
install_path = bld.env.LIBDIR |
|
|
|
bld.shlib( |
|
source = source, |
|
target = PROJECT_NAME, |
|
name = PROJECT_NAME, |
|
features = 'c cxx', |
|
includes = includes, |
|
defines = defines, |
|
use = libs, |
|
install_path = install_path, |
|
subsystem = bld.env.MSVC_SUBSYSTEM, |
|
idx = bld.get_taskgen_count() |
|
) |
|
|
|
|