mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Add defines for all 3 db backends.
This commit is contained in:
parent
4a81108677
commit
07b262c841
@ -58,11 +58,14 @@ def configure(env):
|
||||
|
||||
if not mariadb_error:
|
||||
env.ParseConfig("pkg-config mariadb --cflags --libs")
|
||||
env.Append(CPPDEFINES=["MYSQL_PRESENT"])
|
||||
return
|
||||
|
||||
if not mysql_error:
|
||||
env.ParseConfig("pkg-config mysql --cflags --libs")
|
||||
|
||||
env.Append(CPPDEFINES=["MYSQL_PRESENT"])
|
||||
|
||||
# Link those statically for portability
|
||||
#if env["use_static_cpp"]:
|
||||
#env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"])
|
||||
|
@ -47,6 +47,8 @@ def get_flags():
|
||||
|
||||
def configure(env):
|
||||
env.ParseConfig("pkg-config libpq --cflags --libs")
|
||||
|
||||
env.Append(CPPDEFINES=["PGSQL_PRESENT"])
|
||||
|
||||
# Link those statically for portability
|
||||
#if env["use_static_cpp"]:
|
||||
|
@ -48,6 +48,8 @@ def get_flags():
|
||||
def configure(env):
|
||||
env.ParseConfig("pkg-config sqlite3 --cflags --libs")
|
||||
|
||||
env.Append(CPPDEFINES=["SQLITE_PRESENT"])
|
||||
|
||||
# Link those statically for portability
|
||||
#if env["use_static_cpp"]:
|
||||
#env.Append(LINKFLAGS=["-static-libgcc", "-static-libstdc++"])
|
||||
|
Loading…
Reference in New Issue
Block a user