Changeset 20916

Show
Ignore:
Timestamp:
10/07/08 19:48:46 (2 months ago)
Author:
mattn
Message:

does not work on win32.

Location:
lang/cplusplus/llv8call/trunk/ext/mysql
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/cplusplus/llv8call/trunk/ext/mysql/SConscript

    r20031 r20916  
     1import platform 
     2 
    13Import("env") 
    24Import("conf") 
    35 
    4 if conf.CheckLib('mysqlclient'): 
    5     env.SharedLibrary( 
    6         "mysql", 
    7         ['mysql.cc'], 
    8         LIBS=['v8', 'mysqlclient'], 
    9     ) 
     6if not platform.system() == 'Windows': 
     7    if conf.CheckLib('mysqlclient'): 
     8        env.SharedLibrary( 
     9            "mysql", 
     10            ['mysql.cc'], 
     11            LIBS=['v8', 'mysqlclient'], 
     12        ) 
     13else: 
     14    if conf.CheckLib('mysqlclient'): 
     15        env.SharedLibrary( 
     16            "mysql", 
     17            ['mysql.cc'], 
     18            LIBS=['v8', 'mysqlclient', 'ws2_32', 'advapi32'], 
     19        ) 
  • lang/cplusplus/llv8call/trunk/ext/mysql/mysql.cc

    r20816 r20916  
    44//   http://www.python.jp/doc/contrib/peps/pep-0249.txt 
    55 
     6#ifdef _WIN32 
     7#include <winsock2.h> 
     8#include <mysql.h> 
     9#else 
    610#include <mysql/mysql.h> 
     11#endif 
    712#include <v8.h> 
    813#include <string>