mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2025-01-12 06:48:04 +03:00
Zlib: Use the generated static library with MySQL module
This commit is contained in:
parent
9bbeb1f578
commit
85b7c26bb0
@ -19,17 +19,17 @@ if AMXX.mysql_path:
|
|||||||
binary.compiler.defines += ['stricmp=strcasecmp']
|
binary.compiler.defines += ['stricmp=strcasecmp']
|
||||||
binary.compiler.linkflags += [
|
binary.compiler.linkflags += [
|
||||||
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
|
os.path.join(AMXX.mysql_path, 'lib', 'libmysqlclient_r.a'),
|
||||||
'-lz',
|
|
||||||
'-lpthread',
|
'-lpthread',
|
||||||
'-lm'
|
'-lm'
|
||||||
]
|
]
|
||||||
elif builder.target_platform is 'windows':
|
elif builder.target_platform is 'windows':
|
||||||
binary.compiler.linkflags += [
|
binary.compiler.linkflags += [
|
||||||
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'mysqlclient.lib'),
|
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'mysqlclient.lib'),
|
||||||
os.path.join(AMXX.mysql_path, 'lib', 'opt', 'zlib.lib'),
|
|
||||||
'ws2_32.lib'
|
'ws2_32.lib'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
binary.compiler.linkflags += [AMXX.zlib.binary]
|
||||||
|
|
||||||
binary.sources = [
|
binary.sources = [
|
||||||
'basic_sql.cpp',
|
'basic_sql.cpp',
|
||||||
'handles.cpp',
|
'handles.cpp',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user