1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
// ====================================================================
// Yann COLLETTE
// Copyright 2009
// This file is released into the public domain
// ====================================================================
list_add_inter = ['sqlconnect', 'sciMysqlConnect'; ...
'sqldisconnect', 'sciMysqlDisconnect'; ...
'sqlquerydouble', 'sciMysqlQueryDouble'];
files_to_compile = ['sciMysqlConnect.cpp','sciMysqlQueryDouble.cpp','sciMysqlDisconnect.cpp'];
path_builder = get_absolute_file_path('builder_gateway_cpp.sce');
if MSDOS then
include_mysql = '""c:/Program Files/MySQL/MySQL Server 5.1/include/""';
windows_sdk_include = '""c:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Include/""';
mysql_lib = '""c:/Program Files/MySQL/MySQL Server 5.1/lib/opt/libmysql.lib""';
//windows_sdk_lib = '""c:/Program Files/Microsoft Platform SDK for Windows Server 2003 R2/Lib/AMD64/uuid.lib""';
windows_sdk_lib = '';
link_options = '';//'/NODEFAULTLIB:LIBCMT'; // /NODEFAULTLIB:MSVCPRT /NODEFAULTLIB:MSVCRT
cflags = '/I . /I ' + windows_sdk_include + ' /I ' + include_mysql;
ldflags = windows_sdk_lib + ' ' + mysql_lib + ' ' + link_options;
else
include_mysql = '/usr/include/';
mysql_lib = '-L/usr/lib64 -lmysqlclient';
cflags = '-I. -I' + include_mysql;
ldflags = mysql_lib;
end
tbx_build_gateway('mysql_c', list_add_inter, files_to_compile, get_absolute_file_path('builder_gateway_cpp.sce'), [], ldflags, cflags);
clear tbx_build_gateway; |
Partager