29 lines
745 B
Python
29 lines
745 B
Python
# vim: set filetype=py
|
|
|
|
Import('dev source_path')
|
|
|
|
env, target, sources = dev.prepare_build(source_path, 'adchppd', 'adchppd.cpp')
|
|
|
|
if dev.is_win32():
|
|
sources += [dev.get_build_path(source_path) + 'adchppdw.cpp', env.RES(dev.get_sources(source_path, 'res/*.rc'))]
|
|
else:
|
|
sources += [dev.get_build_path(source_path) + 'adchppdu.cpp']
|
|
|
|
env.Append(CPPPATH = ['.', '#'])
|
|
env.Append(LIBS=['adchpp'])
|
|
|
|
if env['CC'] == 'cl': # MSVC
|
|
|
|
from build_util import array_remove
|
|
array_remove(env['CCFLAGS'], '/LD')
|
|
array_remove(env['CCFLAGS'], '/LDd')
|
|
|
|
env.Append(LIBS = ['advapi32'])
|
|
|
|
#if env['nls']:
|
|
# headers=dev.get_sources(source_path, "*.h")
|
|
# dev.i18n(source_path, env, [sources,headers], 'adchppd')
|
|
|
|
ret = env.Program(target, sources)
|
|
Return('ret')
|