mirror of
https://github.com/osm-search/Nominatim.git
synced 2024-11-23 05:35:13 +03:00
b5480f6e36
CONST_BasePath is split into separate configuration variables for binaries, libraries and data. These variables as well as the installation path are now set in the executable directly and no longer configurable via project settings. This is the first step towards an installable software. The executables should know per installation where to find their necessary data to execute. Project configuration needs to be restricted to settings that really concern the specific Nominatim installation.
9 lines
350 B
Cheetah
Executable File
9 lines
350 B
Cheetah
Executable File
<?php
|
|
@define('CONST_Debug', (isset($_GET['debug']) && $_GET['debug']));
|
|
@define('CONST_LibDir', '@CMAKE_SOURCE_DIR@/lib');
|
|
@define('CONST_DataDir', '@CMAKE_SOURCE_DIR@');
|
|
@define('CONST_InstallDir', '@CMAKE_BINARY_DIR@');
|
|
require_once(CONST_InstallDir.'/settings/settings-frontend.php');
|
|
|
|
require_once('@CMAKE_SOURCE_DIR@/website/@script_source@');
|