mirror of
https://github.com/celisej567/source-engine.git
synced 2026-01-04 18:09:53 +03:00
add waf buildsystem
This commit is contained in:
67
vgui2/matsys_controls/wscript
Normal file
67
vgui2/matsys_controls/wscript
Normal file
@@ -0,0 +1,67 @@
|
||||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from waflib import Utils
|
||||
import os
|
||||
|
||||
top = '.'
|
||||
PROJECT_NAME = 'matsys_controls'
|
||||
|
||||
def options(opt):
|
||||
# stub
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
return
|
||||
|
||||
def build(bld):
|
||||
source = [
|
||||
'assetpicker.cpp',
|
||||
'baseassetpicker.cpp',
|
||||
'colorpickerpanel.cpp',
|
||||
'curveeditorpanel.cpp',
|
||||
'gamefiletreeview.cpp',
|
||||
'manipulator.cpp',
|
||||
'matsyscontrols.cpp',
|
||||
'mdlpanel.cpp',
|
||||
'mdlpicker.cpp',
|
||||
'mdlsequencepicker.cpp',
|
||||
'picker.cpp',
|
||||
'potterywheelpanel.cpp',
|
||||
'proceduraltexturepanel.cpp',
|
||||
'QCGenerator.cpp',
|
||||
'sequencepicker.cpp',
|
||||
'tgapreviewpanel.cpp',
|
||||
'vmtpicker.cpp',
|
||||
'vmtpreviewpanel.cpp',
|
||||
'vtfpicker.cpp',
|
||||
'vtfpreviewpanel.cpp',
|
||||
'vmtpanel.cpp'
|
||||
]
|
||||
|
||||
includes = [
|
||||
'.',
|
||||
'../../public',
|
||||
'../../public/tier0',
|
||||
'../../public/tier1'
|
||||
]
|
||||
|
||||
defines = []
|
||||
|
||||
libs = []
|
||||
|
||||
install_path = bld.env.PREFIX
|
||||
|
||||
bld.stlib(
|
||||
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()
|
||||
)
|
||||
|
||||
69
vgui2/src/wscript
Normal file
69
vgui2/src/wscript
Normal file
@@ -0,0 +1,69 @@
|
||||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from waflib import Utils
|
||||
import os
|
||||
|
||||
top = '.'
|
||||
PROJECT_NAME = 'vgui2'
|
||||
|
||||
def options(opt):
|
||||
# stub
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
conf.define('DONT_PROTECT_FILEIO_FUNCTIONS',1)
|
||||
|
||||
def build(bld):
|
||||
source = [
|
||||
'Bitmap.cpp',
|
||||
'Border.cpp',
|
||||
'ScalableImageBorder.cpp',
|
||||
'ImageBorder.cpp',
|
||||
'fileimage.cpp',
|
||||
'../../public/filesystem_helpers.cpp',
|
||||
'../../public/filesystem_init.cpp',
|
||||
'InputWin32.cpp',
|
||||
'LocalizedStringTable.cpp',
|
||||
'MemoryBitmap.cpp',
|
||||
'MessageListener.cpp',
|
||||
'Scheme.cpp',
|
||||
#'Surface.cpp', [$WIN32]
|
||||
#'System.cpp', [$WINDOWS||$X360]
|
||||
'system_posix.cpp',# [$POSIX]
|
||||
'../../public/UnicodeFileHelpers.cpp',
|
||||
'vgui.cpp',
|
||||
'vgui_internal.cpp',
|
||||
'vgui_key_translation.cpp',
|
||||
'VPanel.cpp',
|
||||
'VPanelWrapper.cpp',
|
||||
'keyrepeat.cpp'
|
||||
]
|
||||
|
||||
includes = [
|
||||
'.',
|
||||
'../../public',
|
||||
'../../public/tier0',
|
||||
'../../public/tier1',
|
||||
'../../common'
|
||||
] + bld.env.INCLUDES_SDL2
|
||||
|
||||
defines = []
|
||||
|
||||
libs = ['tier0','tier1','tier2','tier3','vstdlib','SDL2']
|
||||
|
||||
install_path = bld.env.PREFIX
|
||||
|
||||
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()
|
||||
)
|
||||
|
||||
123
vgui2/vgui_controls/wscript
Normal file
123
vgui2/vgui_controls/wscript
Normal file
@@ -0,0 +1,123 @@
|
||||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from waflib import Utils
|
||||
import os
|
||||
|
||||
top = '.'
|
||||
PROJECT_NAME = 'vgui_controls'
|
||||
|
||||
def options(opt):
|
||||
# stub
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
return
|
||||
|
||||
def build(bld):
|
||||
source = [
|
||||
'AnalogBar.cpp',
|
||||
'AnimatingImagePanel.cpp',
|
||||
'AnimationController.cpp',
|
||||
'BitmapImagePanel.cpp',
|
||||
'BuildFactoryHelper.cpp',
|
||||
'BuildGroup.cpp',
|
||||
'BuildModeDialog.cpp',
|
||||
'Button.cpp',
|
||||
'CheckButton.cpp',
|
||||
'CheckButtonList.cpp',
|
||||
'CircularProgressBar.cpp',
|
||||
'ComboBox.cpp',
|
||||
'consoledialog.cpp',
|
||||
'ControllerMap.cpp',
|
||||
'controls.cpp',
|
||||
'cvartogglecheckbutton.cpp',
|
||||
'DirectorySelectDialog.cpp',
|
||||
'Divider.cpp',
|
||||
'EditablePanel.cpp',
|
||||
'ExpandButton.cpp',
|
||||
'FileOpenDialog.cpp',
|
||||
'FileOpenStateMachine.cpp',
|
||||
'../../public/filesystem_helpers.cpp',
|
||||
'FocusNavGroup.cpp',
|
||||
'Frame.cpp',
|
||||
'GraphPanel.cpp',
|
||||
'HTML.cpp',
|
||||
'Image.cpp',
|
||||
'ImageList.cpp',
|
||||
'ImagePanel.cpp',
|
||||
'InputDialog.cpp',
|
||||
'KeyBindingHelpDialog.cpp',
|
||||
'KeyBoardEditorDialog.cpp',
|
||||
'KeyRepeat.cpp',
|
||||
'Label.cpp',
|
||||
'ListPanel.cpp',
|
||||
'ListViewPanel.cpp',
|
||||
'Menu.cpp',
|
||||
'MenuBar.cpp',
|
||||
'MenuButton.cpp',
|
||||
'MenuItem.cpp',
|
||||
'MessageBox.cpp',
|
||||
'MessageDialog.cpp',
|
||||
'Panel.cpp',
|
||||
'PanelListPanel.cpp',
|
||||
'PerforceFileExplorer.cpp',
|
||||
'PerforceFileList.cpp',
|
||||
'perforcefilelistframe.cpp',
|
||||
'ProgressBar.cpp',
|
||||
'ProgressBox.cpp',
|
||||
'PropertyDialog.cpp',
|
||||
'PropertyPage.cpp',
|
||||
'PropertySheet.cpp',
|
||||
'QueryBox.cpp',
|
||||
'RadioButton.cpp',
|
||||
'RichText.cpp',
|
||||
'RotatingProgressBar.cpp',
|
||||
'savedocumentquery.cpp',
|
||||
'ScalableImagePanel.cpp',
|
||||
'ScrollableEditablePanel.cpp',
|
||||
'ScrollBar.cpp',
|
||||
'ScrollBarSlider.cpp',
|
||||
'SectionedListPanel.cpp',
|
||||
'Slider.cpp',
|
||||
'Splitter.cpp',
|
||||
'subrectimage.cpp',
|
||||
'TextEntry.cpp',
|
||||
'TextImage.cpp',
|
||||
'ToggleButton.cpp',
|
||||
'Tooltip.cpp',
|
||||
'ToolWindow.cpp',
|
||||
'TreeView.cpp',
|
||||
'TreeViewListControl.cpp',
|
||||
'URLLabel.cpp',
|
||||
'WizardPanel.cpp',
|
||||
'WizardSubPanel.cpp',
|
||||
'../src/vgui_key_translation.cpp'
|
||||
]
|
||||
|
||||
includes = [
|
||||
'.',
|
||||
'../../public',
|
||||
'../../public/tier0',
|
||||
'../../public/tier1'
|
||||
]
|
||||
|
||||
defines = []
|
||||
|
||||
libs = []
|
||||
|
||||
install_path = bld.env.PREFIX
|
||||
|
||||
bld.stlib(
|
||||
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()
|
||||
)
|
||||
|
||||
54
vgui2/vgui_surfacelib/wscript
Normal file
54
vgui2/vgui_surfacelib/wscript
Normal file
@@ -0,0 +1,54 @@
|
||||
#! /usr/bin/env python
|
||||
# encoding: utf-8
|
||||
|
||||
from waflib import Utils
|
||||
import os
|
||||
|
||||
top = '.'
|
||||
PROJECT_NAME = 'vgui_surfacelib'
|
||||
|
||||
def options(opt):
|
||||
# stub
|
||||
return
|
||||
|
||||
def configure(conf):
|
||||
return
|
||||
|
||||
def build(bld):
|
||||
source = [
|
||||
'BitmapFont.cpp',
|
||||
'FontAmalgam.cpp',
|
||||
'FontManager.cpp',
|
||||
'FontEffects.cpp',
|
||||
#'Win32Font.cpp', [$WIN32 && !$X360]
|
||||
#'Win32Font_x360.cpp', [$X360]
|
||||
#'osxfont.cpp', [$OSXALL]
|
||||
'linuxfont.cpp' # [$LINUXALL]
|
||||
]
|
||||
|
||||
includes = [
|
||||
'.',
|
||||
'../../public',
|
||||
'../../public/tier0',
|
||||
'../../public/tier1',
|
||||
'../../common'
|
||||
] + bld.env.INCLUDES_FT2
|
||||
|
||||
defines = []
|
||||
|
||||
libs = []
|
||||
|
||||
install_path = bld.env.PREFIX
|
||||
|
||||
bld.stlib(
|
||||
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()
|
||||
)
|
||||
Reference in New Issue
Block a user