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):
|
2021-09-02 17:33:03 +00:00
|
|
|
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':
|
2021-09-02 17:33:03 +00:00
|
|
|
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()
|
|
|
|
)
|
|
|
|
|