source-engine/launcher_main/wscript

46 lines
769 B
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 = '.'
2021-04-06 20:22:52 +00:00
PROJECT_NAME = 'hl2_launcher'
2021-03-31 17:12:00 +00:00
def options(opt):
# stub
return
def configure(conf):
return
def build(bld):
if bld.env.DEST_OS == 'android':
return
2021-03-31 17:12:00 +00:00
source = ['main.cpp']
includes = ['../public']
defines = []
libs = []
if bld.env.DEST_OS != 'win32':
libs += [ 'DL', 'LOG' ]
2021-03-31 17:12:00 +00:00
else:
libs += ['USER32', 'SHELL32']
source += ['launcher_main.rc']
2021-04-06 20:22:52 +00:00
install_path = bld.env.BINDIR
2021-03-31 17:12:00 +00:00
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()
)