Created database_modules folder again, and moved db_settings from the core to it.

This commit is contained in:
Relintai 2022-02-05 16:36:27 +01:00
parent 4d9f55941a
commit ffd1f7eb68
5 changed files with 40 additions and 1 deletions

View File

@ -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")

View 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])

View File

@ -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);

View 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