mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Created database_modules folder again, and moved db_settings from the core to it.
This commit is contained in:
parent
4d9f55941a
commit
ffd1f7eb68
@ -227,6 +227,7 @@ if env_base["databases"]:
|
||||
modfol = env_base["module_folders"].split(";")
|
||||
modfol.append("modules")
|
||||
modfol.append("web_modules")
|
||||
modfol.append("database_modules")
|
||||
#temporarily, these should be handled in a different pass
|
||||
modfol.append("backends")
|
||||
modfol.append("web_backends")
|
||||
|
12
database_modules/db_settings/SCsub
Normal file
12
database_modules/db_settings/SCsub
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
Import("env_mod")
|
||||
Import("env")
|
||||
|
||||
env_mod.core_sources = []
|
||||
|
||||
env_mod.add_source_files(env_mod.core_sources, "*.cpp")
|
||||
|
||||
# Build it all as a library
|
||||
lib = env_mod.add_library("db_settings", env_mod.core_sources)
|
||||
env.Prepend(LIBS=[lib])
|
@ -1,7 +1,7 @@
|
||||
#ifndef DB_SETTINGS_H
|
||||
#define DB_SETTINGS_H
|
||||
|
||||
#include "settings.h"
|
||||
#include "core/settings/settings.h"
|
||||
|
||||
class DBSettings : public Settings {
|
||||
RCPP_OBJECT(DBSettings, Settings);
|
26
database_modules/db_settings/detect.py
Normal file
26
database_modules/db_settings/detect.py
Normal file
@ -0,0 +1,26 @@
|
||||
import os
|
||||
import platform
|
||||
import sys
|
||||
|
||||
|
||||
def is_active():
|
||||
return True
|
||||
|
||||
|
||||
def get_name():
|
||||
return "db_settings"
|
||||
|
||||
|
||||
def can_build():
|
||||
return True
|
||||
|
||||
|
||||
def get_opts():
|
||||
return []
|
||||
|
||||
def get_flags():
|
||||
|
||||
return []
|
||||
|
||||
def configure(env):
|
||||
pass
|
Loading…
Reference in New Issue
Block a user