css_enhanced_waf/launcher_main/wscript

61 lines
1.1 KiB
Text
Raw Permalink Normal View History

2021-03-31 19:12:00 +02:00
#! /usr/bin/env python
# encoding: utf-8
from waflib import Utils
import os
top = '.'
2021-04-06 22:22:52 +02:00
PROJECT_NAME = 'hl2_launcher'
2021-03-31 19:12:00 +02:00
def options(opt):
# stub
return
def configure(conf):
return
def build(bld):
if bld.env.DEST_OS == 'android':
return
2021-03-31 19:12:00 +02:00
source = ['main.cpp']
includes = ['../public']
defines = []
libs = []
if bld.env.DEST_OS != 'win32':
libs += [ 'DL', 'LOG' ]
2021-03-31 19:12:00 +02:00
else:
libs += ['USER32', 'SHELL32']
source += ['launcher_main.rc']
2021-04-06 22:22:52 +02:00
install_path = bld.env.BINDIR
2024-09-15 22:05:45 +02:00
if 'cstrike' == bld.options.GAMES:
bld(
source = source,
target = 'css_enhanced',
name = 'css_enhanced',
features = 'c cxx cxxprogram',
includes = includes,
defines = defines + ['CSS_ENHANCED_EXECUTABLE'],
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)
else:
bld(
source = source,
target = PROJECT_NAME,
name = PROJECT_NAME,
features = 'c cxx cxxprogram',
includes = includes,
defines = defines,
use = libs,
install_path = install_path,
subsystem = bld.env.MSVC_SUBSYSTEM,
idx = bld.get_taskgen_count()
)
2021-03-31 19:12:00 +02:00