| author | Nicholas Hastings <skamonkey@gmail.com> |
| Wed May 25 13:31:14 2011 -0400 (2011-05-25) | |
| changeset 3285 | 065beec73902 |
| parent 2784 | 8903397125e6 |
| child 3457 | 387b27fb575b |
| permissions | -rw-r--r-- |
1 # vim: set ts=2 sw=2 tw=99 noet ft=python:
2 compiler = SM.DefaultExtCompiler('extensions/geoip')
4 extension = AMBuild.AddJob('geoip.ext')
5 binary = Cpp.LibraryBuilder('geoip.ext', AMBuild, extension, compiler)
6 binary.AddSourceFiles('extensions/geoip', [
7 'extension.cpp',
8 'GeoIP.c',
9 'sdk/smsdk_ext.cpp'
10 ])
11 if AMBuild.target['platform'] == 'windows':
12 binary['POSTLINKFLAGS'].append('wsock32.lib')
13 SM.AutoVersion('extensions/geoip', binary)
14 binary.SendToJob()