build: Only build gui-thread-check profiler module on mono

The profiler module will only work with mono, so we don't need to build
it on Windows with the .Net framework.
This commit is contained in:
Bertrand Lorentz 2014-02-23 16:18:28 +01:00
parent 8a9f49e2b0
commit 49295c119b
2 changed files with 7 additions and 3 deletions

View file

@ -98,9 +98,6 @@ AC_SUBST(OFF_T_FLAGS)
MONO_REQUIRED_VERSION=2.8
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
#libmono and glib required for gui-thread-check profiler module
PKG_CHECK_MODULES(PROFILER, mono-2 glib-2.0)
AC_PATH_PROG(GACUTIL, gacutil, no)
if test "x$GACUTIL" = "xno" ; then
AC_MSG_ERROR([No gacutil tool found. You need to install either the mono or .Net SDK.])
@ -116,6 +113,10 @@ GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(DESTDIR)$(prefix)/lib'
GENERATED_SOURCES=generated/*.cs
AC_PATH_PROG(RUNTIME, mono, no)
#libmono and glib required for gui-thread-check profiler module
PKG_CHECK_MODULES(PROFILER, mono-2 glib-2.0)
AM_CONDITIONAL(ENABLE_THREADCHECK, true)
# If mono is found, it's in the path. Require it to be in the path at runtime as well
if test "x$RUNTIME" != "no" ; then
RUNTIME="mono$RUNTIME_DEBUG_FLAGS"
@ -139,6 +140,7 @@ else
AC_PATH_PROG(CSC, csc.exe, no)
GACUTIL_FLAGS=
GENERATED_SOURCES=generated\\\\*.cs
AM_CONDITIONAL(ENABLE_THREADCHECK, false)
enable_dotnet=yes
if test x$CSC = "xno"; then

View file

@ -1,5 +1,7 @@
if ENABLE_THREADCHECK
lib_LTLIBRARIES = libmono-profiler-gui-thread-check.la
endif
libmono_profiler_gui_thread_check_la_SOURCES = gui-thread-check.c