source-engine/gameui/wscript

138 lines
3.3 KiB
Plaintext
Raw Normal View History

2021-03-31 17:12:00 +00:00
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
PROJECT_NAME = 'GameUI'
def options(opt):
# stub
return
def configure(conf):
conf.define('GAMEUI_EXPORTS',1)
conf.define('NO_STEAM',1)
2021-03-31 17:12:00 +00:00
conf.define('VERSION_SAFE_STEAM_API_INTERFACES',1)
def build(bld):
source = [
'BackgroundMenuButton.cpp',
'BasePanel.cpp',
'GameConsole.cpp',
'GameUI_Interface.cpp',
'ModInfo.cpp',
'MouseMessageForwardingPanel.cpp',
'../common/GameUI/ObjectList.cpp',
'PanelListPanel.cpp',
'RunGameEngine.cpp',
'../common/GameUI/scriptobject.cpp',
'Sys_Utils.cpp',
'TextEntryBox.cpp',
'TGAImagePanel.cpp',
'../public/vgui_controls/vgui_controls.cpp',
'VGuiSystemModuleLoader.cpp',
'BonusMapsDatabase.cpp',
'../common/language.cpp',
'../common/imageutils.cpp',
'SaveGameBrowserDialog.cpp',
'gameui_util.cpp',
'BitmapImagePanel.cpp',
'CommandCheckButton.cpp',
'CvarNegateCheckButton.cpp',
'../common/GameUI/cvarslider.cpp',
'CvarTextEntry.cpp',
'CvarToggleCheckButton.cpp',
'HapticControlBox.cpp',
'KeyToggleCheckButton.cpp',
'LabeledCommandComboBox.cpp',
'URLButton.cpp',
'vcontrolslistpanel.cpp',
'BenchmarkDialog.cpp',
'BonusMapsDialog.cpp',
'CommentaryDialog.cpp',
'CommentaryExplanationDialog.cpp',
'ContentControlDialog.cpp',
'CustomTabExplanationDialog.cpp',
'GameConsoleDialog.cpp',
'LoadGameDialog_Xbox.cpp',
'LoadGameDialog.cpp',
'MultiplayerAdvancedDialog.cpp',
'NewGameDialog.cpp',
'PlayerListDialog.cpp',
'SaveGameDialog_Xbox.cpp',
'SaveGameDialog.cpp',
'LoadCommentaryDialog.cpp',
'LoadingDialog.cpp',
'BaseSaveGameDialog.cpp',
'CreateMultiplayerGameBotPage.cpp',
'CreateMultiplayerGameDialog.cpp',
'CreateMultiplayerGameGameplayPage.cpp',
'CreateMultiplayerGameServerPage.cpp',
'OptionsDialog_Xbox.cpp',
'ControllerDialog.cpp',
'matchmaking/achievementsdialog.cpp',
'matchmaking/basedialog.cpp',
'matchmaking/dialogmenu.cpp',
'matchmaking/leaderboarddialog.cpp',
'matchmaking/matchmakingbasepanel.cpp',
'matchmaking/pausedialog.cpp',
'matchmaking/sessionlobbydialog.cpp',
'matchmaking/sessionoptionsdialog.cpp',
'matchmaking/sessionbrowserdialog.cpp',
'matchmaking/welcomedialog.cpp',
'OptionsDialog.cpp',
'OptionsSubAudio.cpp',
'OptionsSubDifficulty.cpp',
'OptionsSubGame.cpp',
'OptionsSubKeyboard.cpp',
'OptionsSubMouse.cpp',
'OptionsSubTouch.cpp',
2021-03-31 17:12:00 +00:00
'OptionsSubMultiplayer.cpp',
'OptionsSubPortal.cpp',
'OptionsSubVideo.cpp',
'OptionsSubVoice.cpp',
'../public/tier0/memoverride.cpp',
2021-03-31 17:12:00 +00:00
]
2022-03-19 12:40:11 +00:00
if bld.env.DEST_OS == 'win32':
source += [
'LogoFile.cpp',
'ChangeGameDialog.cpp',
'OptionsSubHaptics.cpp'
]
2021-03-31 17:12:00 +00:00
includes = [
'.',
'../public',
'../public/tier0',
'../public/tier1',
'../common',
'../common/GameUI',
'../thirdparty'
2021-03-31 17:12:00 +00:00
]
defines = []
libs = ['tier0','vgui_controls','tier1','tier2','tier3','vstdlib','vtf','bitmap','mathlib','SDL2','steam_api','matsys_controls','JPEG','PNG','ZLIB']
2021-03-31 17:12:00 +00:00
2022-03-19 12:40:11 +00:00
if bld.env.DEST_OS == 'win32':
libs += ['USER32', 'GDI32']
2021-04-06 20:22:52 +00:00
install_path = bld.env.LIBDIR
2021-03-31 17:12:00 +00:00
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()
)