diff --git a/src/mono/mono/metadata/Makefile.am b/src/mono/mono/metadata/Makefile.am index f8bb45da5d0a10..0415d87bee410c 100644 --- a/src/mono/mono/metadata/Makefile.am +++ b/src/mono/mono/metadata/Makefile.am @@ -455,6 +455,7 @@ libmonoruntimeinclude_HEADERS = \ mono-config.h \ mono-debug.h \ mono-gc.h \ + mono-private-unstable.h \ object.h \ object-forward.h \ opcodes.h \ diff --git a/src/mono/mono/metadata/mono-private-unstable.h b/src/mono/mono/metadata/mono-private-unstable.h new file mode 100644 index 00000000000000..7fd11db4d7828c --- /dev/null +++ b/src/mono/mono/metadata/mono-private-unstable.h @@ -0,0 +1,19 @@ +/** + * \file + * + * Private unstable APIs. + * + * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at + * any time. + * + */ + + +#ifndef __MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__ +#define __MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__ + +#include + + + +#endif /*__MONO_METADATA_MONO_PRIVATE_UNSTABLE_H__*/ diff --git a/src/mono/mono/mini/Makefile.am.in b/src/mono/mono/mini/Makefile.am.in index 567313b6c7f4a7..4fa894984cc16e 100755 --- a/src/mono/mono/mini/Makefile.am.in +++ b/src/mono/mono/mini/Makefile.am.in @@ -783,7 +783,9 @@ libmonoincludedir = $(includedir)/mono-$(API_VER)/mono/jit # These are public headers. # They should not use glib.h, G_BEGIN_DECLS, guint, etc. # They should be wrapped in MONO_BEGIN_DECLS / MONO_END_DECLS. -libmonoinclude_HEADERS = jit.h +libmonoinclude_HEADERS = \ + jit.h \ + mono-private-unstable.h CSFLAGS = -unsafe -nowarn:0219,0169,0414,0649,0618 diff --git a/src/mono/mono/mini/mono-private-unstable.h b/src/mono/mono/mini/mono-private-unstable.h new file mode 100644 index 00000000000000..805edd25c4759c --- /dev/null +++ b/src/mono/mono/mini/mono-private-unstable.h @@ -0,0 +1,19 @@ +/** + * \file + * + * Private unstable APIs. + * + * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at + * any time. + * + */ + + +#ifndef __MONO_JIT_MONO_PRIVATE_UNSTABLE_H__ +#define __MONO_JIT_MONO_PRIVATE_UNSTABLE_H__ + +#include + + + +#endif /*__MONO_JIT_MONO_PRIVATE_UNSTABLE_H__*/ diff --git a/src/mono/mono/utils/Makefile.am b/src/mono/mono/utils/Makefile.am index 79856efb6c6d8b..f4565f380dbe13 100644 --- a/src/mono/mono/utils/Makefile.am +++ b/src/mono/mono/utils/Makefile.am @@ -343,6 +343,7 @@ libmonoutilsinclude_HEADERS = \ mono-publib.h \ mono-jemalloc.h \ mono-dl-fallback.h \ + mono-private-unstable.h \ mono-counters.h EXTRA_DIST = mono-errno.h mono-embed.h mono-embed.c ../../support/libm/complex.c mono-experiments.def diff --git a/src/mono/mono/utils/mono-private-unstable.h b/src/mono/mono/utils/mono-private-unstable.h new file mode 100644 index 00000000000000..241a7234479579 --- /dev/null +++ b/src/mono/mono/utils/mono-private-unstable.h @@ -0,0 +1,19 @@ +/** + * \file + * + * Private unstable APIs. + * + * WARNING: The declarations and behavior of functions in this header are NOT STABLE and can be modified or removed at + * any time. + * + */ + + +#ifndef __MONO_UTILS_MONO_PRIVATE_UNSTABLE_H__ +#define __MONO_UTILS_MONO_PRIVATE_UNSTABLE_H__ + +#include + + + +#endif /*__MONO_UTILS_MONO_PRIVATE_UNSTABLE_H__*/ diff --git a/src/mono/msvc/libmono.bat b/src/mono/msvc/libmono.bat index b06d3721f3872b..fc52ac1fb04758 100755 --- a/src/mono/msvc/libmono.bat +++ b/src/mono/msvc/libmono.bat @@ -69,6 +69,7 @@ metadata.h ^ mono-config.h ^ mono-debug.h ^ mono-gc.h ^ +mono-private-unstable.h ^ object.h ^ object-forward.h ^ opcodes.h ^ @@ -88,15 +89,22 @@ mono-error.h ^ mono-forward.h ^ mono-jemalloc.h ^ mono-logger.h ^ +mono-private-unstable.h ^ mono-publib.h +SET JIT_FILES=^ +jit.h ^ +mono-private-unstable.h + ECHO Copying mono include files from %SOURCE_ROOT% to %TARGET_ROOT% ... SET RUN=%XCOPY_COMMAND% "%SOURCE_ROOT%\cil\opcode.def" "%TARGET_ROOT%\cil\" %OPTIONS% call :runCommand "%RUN%" %ARGUMENTS% -SET RUN=%XCOPY_COMMAND% "%SOURCE_ROOT%\mini\jit.h" "%TARGET_ROOT%\jit\" %OPTIONS% -call :runCommand "%RUN%" %ARGUMENTS% +FOR %%a IN (%JIT_FILES%) DO ( + SET RUN=%XCOPY_COMMAND% "%SOURCE_ROOT%\mini\%%a" "%TARGET_ROOT%\jit\" %OPTIONS% + call :runCommand "!RUN!" %ARGUMENTS% +) FOR %%a IN (%META_DATA_FILES%) DO ( SET RUN=%XCOPY_COMMAND% "%SOURCE_ROOT%\metadata\%%a" "%TARGET_ROOT%\metadata\" %OPTIONS% diff --git a/src/mono/msvc/libmonoruntime-common.targets b/src/mono/msvc/libmonoruntime-common.targets index a1d02521cf8ff9..3e6f62e64d1558 100644 --- a/src/mono/msvc/libmonoruntime-common.targets +++ b/src/mono/msvc/libmonoruntime-common.targets @@ -244,6 +244,7 @@ + diff --git a/src/mono/msvc/libmonoruntime-common.targets.filters b/src/mono/msvc/libmonoruntime-common.targets.filters index 7bb69e615e8239..d614b6bcc49f7e 100644 --- a/src/mono/msvc/libmonoruntime-common.targets.filters +++ b/src/mono/msvc/libmonoruntime-common.targets.filters @@ -675,6 +675,9 @@ Header Files$(MonoRuntimeFilterSubFolder)\common\public + + Header Files$(MonoRuntimeFilterSubFolder)\common\public + Header Files$(MonoRuntimeFilterSubFolder)\common\public diff --git a/src/mono/msvc/libmonoutils-common.targets b/src/mono/msvc/libmonoutils-common.targets index 19dca2758646af..88cc2c34979a92 100644 --- a/src/mono/msvc/libmonoutils-common.targets +++ b/src/mono/msvc/libmonoutils-common.targets @@ -207,6 +207,7 @@ + diff --git a/src/mono/msvc/libmonoutils-common.targets.filters b/src/mono/msvc/libmonoutils-common.targets.filters index 33813fd98c31b2..88f842fa5cee07 100644 --- a/src/mono/msvc/libmonoutils-common.targets.filters +++ b/src/mono/msvc/libmonoutils-common.targets.filters @@ -492,6 +492,9 @@ Header Files$(MonoUtilsFilterSubFolder)\common\public + + Header Files$(MonoUtilsFilterSubFolder)\common\public + Header Files$(MonoUtilsFilterSubFolder)\common\public