2014-02-08 01:14:15 -08:00
|
|
|
# vim: set sts=2 ts=8 sw=2 tw=99 et ft=python:
|
|
|
|
import os.path
|
|
|
|
|
2014-07-30 09:51:01 +02:00
|
|
|
binary = AMXX.MetaModule(builder, 'geoip')
|
2014-02-08 01:14:15 -08:00
|
|
|
|
2014-07-30 09:51:01 +02:00
|
|
|
binary.compiler.defines += [
|
|
|
|
'HAVE_STDINT_H'
|
|
|
|
]
|
2014-07-29 11:47:23 +02:00
|
|
|
|
2014-02-08 01:14:15 -08:00
|
|
|
binary.sources = [
|
2014-08-09 20:59:21 +02:00
|
|
|
'../../public/sdk/amxxmodule.cpp',
|
2014-07-29 11:47:23 +02:00
|
|
|
'GeoIP2/maxminddb.cpp',
|
2014-07-31 23:08:58 +02:00
|
|
|
'geoip_main.cpp',
|
|
|
|
'geoip_natives.cpp',
|
|
|
|
'geoip_util.cpp',
|
2014-02-08 01:14:15 -08:00
|
|
|
]
|
|
|
|
|
2014-12-08 01:44:27 +01:00
|
|
|
if builder.target_platform == 'windows':
|
|
|
|
binary.sources += ['version.rc']
|
|
|
|
|
2014-02-08 16:09:29 -08:00
|
|
|
if builder.target_platform == 'windows':
|
|
|
|
binary.compiler.postlink += ['ws2_32.lib']
|
2014-07-30 09:51:01 +02:00
|
|
|
binary.compiler.includes += [os.path.join(builder.sourcePath, 'dlls', 'geoip', 'GeoIP2')]
|
2014-02-08 16:09:29 -08:00
|
|
|
|
2014-02-08 01:14:15 -08:00
|
|
|
AMXX.modules += [builder.Add(binary)]
|