Skip to content

Instantly share code, notes, and snippets.

@sjb-gist
Created September 27, 2013 19:50
Show Gist options
  • Save sjb-gist/6734240 to your computer and use it in GitHub Desktop.
Save sjb-gist/6734240 to your computer and use it in GitHub Desktop.
waf: dll wscript_build script
#!/usr/bin/env python
# encoding: utf-8
# Copyright (c) 2012 SjB <[email protected]>. All Rights Reserved.
dll_name = 'DLL_DEFAULT_NAME'
srcs = []
external_libs = []
[bld.read_assembly(x, install_path = bld.env.default_app_install_path) for x in external_libs]
uselib = []
uselib.extend(external_libs)
bld(
features = 'cs',
source = srcs,
install_path = bld.env.default_app_install_path,
type = 'library',
gen = '{0}.dll'.format(dll_name),
name = dll_name,
use = uselib)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment