forked from mono/mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[runtime] Add a new mono-config-dirs.c file which is the only one dep…
…ending on the MONO_CFG_DIR etc. defines defined in metadata/Makefile.am.
- Loading branch information
Showing
6 changed files
with
75 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* mono-config-dirs.c: | ||
* | ||
* Copyright 2015 Xamarin Inc (http://www.xamarin.com) | ||
*/ | ||
|
||
/* | ||
* This file contains functions to return the values of various directories defined in Makefile.am. | ||
*/ | ||
|
||
#include <mono/metadata/mono-config-dirs.h> | ||
|
||
const char* | ||
mono_config_get_assemblies_dir (void) | ||
{ | ||
#ifdef MONO_ASSEMBLIES | ||
return MONO_ASSEMBLIES; | ||
#else | ||
return NULL; | ||
#endif | ||
} | ||
|
||
const char* | ||
mono_config_get_cfg_dir (void) | ||
{ | ||
#ifdef MONO_CFG_DIR | ||
return MONO_CFG_DIR; | ||
#else | ||
return NULL; | ||
#endif | ||
} | ||
|
||
const char* | ||
mono_config_get_bin_dir (void) | ||
{ | ||
#ifdef MONO_BINDIR | ||
return MONO_BINDIR; | ||
#else | ||
return NULL; | ||
#endif | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef __MONO_CONFIG_INTERNAL_H__ | ||
#define __MONO_CONFIG_INTERNAL_H__ | ||
|
||
#include <config.h> | ||
#include <glib.h> | ||
|
||
const char* | ||
mono_config_get_assemblies_dir (void); | ||
|
||
const char* | ||
mono_config_get_cfg_dir (void); | ||
|
||
const char* | ||
mono_config_get_bin_dir (void); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters