Skip to content
Browse files

Remove the unused and incomplete CMake build scripts for now.

  • Loading branch information...
1 parent 579faaa commit 32340d1fe2df0da97d5357b876bbcd68871f05f6 @vargaz vargaz committed
View
3,093 CMakeLists.txt
0 additions, 3,093 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
8 eglib/CMakeLists.txt
@@ -1,8 +0,0 @@
-set(SUBDIRS src test)
-
-autoheader("config.h" null)
-
-foreach(subdir ${SUBDIRS})
- add_subdirectory(${subdir})
-endforeach()
-
View
49 eglib/src/CMakeLists.txt
@@ -1,49 +0,0 @@
-set(win_files
- gdate-win32.c gdir-win32.c gfile-win32.c gmisc-win32.c
- gmodule-win32.c gtimer-win32.c)
-
-set(unix_files
- gdate-unix.c gdir-unix.c gfile-unix.c gmisc-unix.c
- gmodule-unix.c gtimer-unix.c)
-
-if (MSVC)
- set(os_files ${win_files})
-else(MSVC)
- set(os_files ${unix_files})
-endif(MSVC)
-
-set(libeglib_la_SOURCES
- ${os_files}
- eglib-config.h
- sort.frag.h
- glib.h
- garray.c
- gerror.c
- ghashtable.c
- gmem.c
- gmodule.h
- goutput.c
- gstr.c
- gslist.c
- gstring.c
- gptrarray.c
- glist.c
- gqueue.c
- gpath.c
- gshell.c
- gspawn.c
- gfile.c
- gfile-posix.c
- gpattern.c
- gmarkup.c
- gutf8.c
- gunicode.c
- unicode-data.h)
-
-set(EXTRA_DIST eglib-config.h.in eglib-config.hw ${win_files} ${unix_files})
-
-INCLUDE_DIRECTORIES(../ ${CMAKE_CURRENT_SOURCE_DIR})
-ADD_DEFINITIONS(${CFLAGS} -D_FORTIFY_SOURCE=2)
-ADD_LIBRARY(eglib-static STATIC ${libeglib_la_SOURCES})
-ADD_LIBRARY(eglib SHARED ${libeglib_la_SOURCES})
-
View
4 ikvm-native/CMakeLists.txt
@@ -1,4 +0,0 @@
-
-ADD_DEFINITIONS(${GMODULE_CFLAGS})
-ADD_LIBRARY(ikvm_native SHARED jni.c os.c jni.h)
-TARGET_LINK_LIBRARIES(ikvm_native ${GMODULE_LIBS})
View
196 libgc/CMakeLists.txt
@@ -1,196 +0,0 @@
-# based on configure.in/Makefile.am, which is:
-
-# Copyright (c) 1999-2001 by Red Hat, Inc. All rights reserved.
-#
-# THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
-# OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
-#
-# Permission is hereby granted to use or copy this program
-# for any purpose, provided the above notices are retained on all copies.
-# Permission to modify the code and to distribute modified code is granted,
-# provided the above notices are retained, and a notice that the code was
-# modified is included with the above copyright notice.
-#
-# Original author: Tom Tromey
-# Modified by: Grzegorz Jakacki <jakacki at acm dot org>
-
-# This is in sync with the configure.in/Makefile.am at r135583
-
-#
-# This is a cmake build file for libgc
-# Only the functionality needed by mono is supported
-#
-
-# FIXME:
-add_definitions("-g -O2")
-
-set(THREADS ${libgc_threads})
-
-set(THREADDLLIBS "")
-
-if (THREADS STREQUAL "no" OR THREADS STREQUAL "none" OR THREADS STREQUAL "single")
- set(THREADS none)
-endif()
-
-if (THREADS STREQUAL "posix" OR THREADS STREQUAL "pthreads")
- set(THREADS posix)
- set(THREADDLLIBS "-lpthread")
- if (${host} MATCHES "x86-.*-linux.*|ia64-.*-linux.*|i386-.*-linux.*|i486-.*-linux.*|i586-.*-linux.*|i686-.*-linux.*|x86_64-.*-linux.*|alpha.*-.*-linux.*|s390.*-.*-linux.*|sparc.*-.*-linux.*|powerpc-.*-linux.*")
- add_definitions(-DGC_LINUX_THREADS -D_REENTRANT)
- set(parallel_mark_supported yes)
- add_definitions(-DTHREAD_LOCAL_ALLOC)
- elseif(${host} MATCHES ".*-linux.*")
- add_definitions(-DGC_LINUX_THREADS -D_REENTRANT)
- elseif(${host} MATCHES ".*-aix.*")
- add_definitions(-DGC_AIX_THREADS -D_REENTRANT)
- elseif(${host} MATCHES ".*-hpux.*")
- message("Only HP/UX 11 threads are supported.")
- add_definitions(-DGC_HPUX_THREADS -D_REENTRANT -D_POSIX_C_SOURCE=199506L)
- add_definitions(-DTHREAD_LOCAL_ALLOC)
- set(parallel_mark_supported yes)
- set(THREADDLLIBS "-lpthread -lrt")
- elseif(${host} ".*-.*-freebsd.*")
- add_definitions(-DGC_FREEBSD_THREADS)
- message(FATAL_ERROR "todo")
-### if test "x$PTHREAD_CFLAGS" != "x"; then
-### INCLUDES="$INCLUDES $PTHREAD_CFLAGS"
-### fi
-### if test "x$PTHREAD_LIBS" = "x"; then
-### THREADDLLIBS=-pthread
-### else
-### THREADDLLIBS="$PTHREAD_LIBS"
-### fi
- elseif(${host} ".*-.*-freebsd.*")
- add_definitions(-DGC_SOLARIS_THREADS -DGC_SOLARIS_PTHREADS)
- elseif(${host} ".*-.*-irix.*")
- add_definitions(-DGC_IRIX_THREADS)
- elseif(${host} ".*-.*-cygwin.*")
- add_definitons(-DGC_WIN32_THREADS)
- elseif(${host} ".*-.*-darwin.*")
- add_definitons(-DGC_DARWIN_THREADS -DTHREAD_LOCAL_ALLOC)
- set(parallel_mark_supported yes)
- elseif(${host} ".*-.*-netbsd.*")
- add_definitions(-DGC_NETBSD_THREADS -DTHREAD_LOCAL_ALLOC)
- set(parallel_mark_supported yes)
- elseif(${host} ".*-.*-osf.*")
- add_definitions(GC_OSF1_THREADS -DTHREAD_LOCAL_ALLOC)
- set(parallel_mark_supported yes)
- add_definitions(-pthread)
- set(THREADDLLIBS "-lpthread -lrt")
- else()
- message(FATAL_ERROR "Pthreads not supported by the GC on this platform.")
- endif()
-endif()
-
-if(THREADS STREQUAL "win32")
- add_definitions(GC_WIN32_THREADS)
- # Wine getenv may not return NULL for missing entry
- add_definitions(NO_GETENV)
- if (enable_win32_dllmain)
- add_definitions(gc_inside_dll)
- endif()
-endif()
-
-if(${host} MATCHES "powerpc-.*-darwin.*")
- set(powerpc_darwin yes)
-endif()
-
-if(parallel_mark_supported AND enable_parallel_mark)
- add_definitions("-DPARALLEL_MARK")
-endif()
-
-# Configuration of machine-dependent code
-
-ac_msg_checking("which machine-dependent code should be used")
-
-###AC_MSG_CHECKING(
-###machdep=
-###case "$host" in
-### alpha-*-openbsd*)
-### machdep="alpha_mach_dep.lo"
-### if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then
-### AC_MSG_WARN(OpenBSD/Alpha without dlopen(). Shared library support is disabled)
-### fi
-### ;;
-### alpha*-*-linux*)
-### machdep="alpha_mach_dep.lo"
-### ;;
-### i?86-*-solaris2.[[89]]|i?86-*-solaris2.1?)
-### AC_DEFINE(SOLARIS25_PROC_VDB_BUG_FIXED)
-### ;;
-### mipstx39-*-elf*)
-### machdep="mips_ultrix_mach_dep.lo"
-### AC_DEFINE(STACKBASE, __stackbase)
-### AC_DEFINE(DATASTART_IS_ETEXT)
-### ;;
-### mips-dec-ultrix*)
-### machdep="mips_ultrix_mach-dep.lo"
-### ;;
-### mips-nec-sysv*|mips-unknown-sysv*)
-### ;;
-### mips*-*-linux*)
-### ;;
-### mips-*-*)
-### machdep="mips_sgi_mach_dep.lo"
-### AC_DEFINE(NO_EXECUTE_PERMISSION)
-### ;;
-### sparc-*-netbsd*)
-### machdep="sparc_netbsd_mach_dep.lo"
-### ;;
-### sparc-sun-solaris2.3)
-### machdep="sparc_mach_dep.lo"
-### AC_DEFINE(SUNOS53_SHARED_LIB)
-### ;;
-### sparc*-sun-solaris2.*)
-### machdep="sparc_mach_dep.lo"
-### ;;
-### ia64-*-*)
-### machdep="mach_dep.lo ia64_save_regs_in_stack.lo"
-### ;;
-###esac
-if(NOT machdep)
- set(machdep "mach_dep.c")
-endif()
-ac_msg_result("${machdep}")
-
-ac_msg_checking("for threads package to use")
-ac_msg_result("${THREADS}")
-
-# Include defines that have become de facto standard.
-# ALL_INTERIOR_POINTERS can be overridden in startup code.
-add_definitions(-DSILENT -DNO_SIGNALS -DNO_EXECUTE_PERMISSION)
-# AC_DEFINE(ALL_INTERIOR_POINTERS)
-
-# By default, make the library as general as possible.
-add_definitions(-DJAVA_FINALIZATION -DGC_GCJ_SUPPORT -DATOMIC_UNCOLLECTABLE)
-
-add_definitions(-D_IN_LIBGC)
-
-set(SUBDIRS include doc)
-
-foreach(dir ${SUBDIRS})
- add_subdirectory(${dir})
-endforeach()
-
-set(top_srcdir ../)
-
-# .. is needed for mono/utils/mono-compiler.h
-INCLUDE_DIRECTORIES(. .. include)
-add_definitions(${CPPFLAGS})
-
-if(powerpc_darwin)
- set(asm_libgc_sources powerpc_darwin_mach_dep.s)
-endif()
-
-set(libmonogc_la_SOURCES
- allchblk.c alloc.c blacklst.c checksums.c dbg_mlc.c
- dyn_load.c finalize.c gc_dlopen.c gcj_mlc.c headers.c
- malloc.c mallocx.c mark.c mark_rts.c misc.c new_hblk.c
- obj_map.c os_dep.c pcr_interface.c ptr_chck.c real_malloc.c reclaim.c
- solaris_pthreads.c solaris_threads.c specific.c stubborn.c typd_mlc.c
- backgraph.c win32_threads.c
- pthread_support.c pthread_stop_world.c darwin_stop_world.c
- ${asm_libgc_sources} ${machdep})
-
-add_library(monogc-static STATIC ${libmonogc_la_SOURCES})
-target_link_libraries (${THREADDLLIBS} ${UNWINDLIBS})
View
6 mono/CMakeLists.txt
@@ -1,6 +0,0 @@
-set(SUBDIRS utils io-layer cil metadata
- arch interpreter mini dis monograph tests benchmark profiler)
-
-foreach(subdir ${SUBDIRS})
- add_subdirectory(${subdir})
-endforeach()
View
42 mono/dis/CMakeLists.txt
@@ -1,42 +0,0 @@
-if(HOST_WIN32)
-###export HOST_CC
-endif()
-
-set(libmonodis_a_SOURCES
- get.c
- get.h
- dis-cil.c
- dis-cil.h
- util.c
- util.h)
-
-set(monodis_SOURCES
- dump.c
- dump.h
- main.c
- meta.h
- declsec.c
- declsec.h)
-
-set(monodis_LDADD
- libmonodis.a
- ${runtime_lib}
- ${GLIB_LIBS})
-
-include_directories(${top_srcdir})
-include_directories(${GLIB2_INCLUDE_DIRS})
-set(CMAKE_C_FLAGS "${CFLAGS} ${CPPFLAGS}")
-
-# FIXME: cmake doesn't seem to link the libs together into libmono-static.a
-link_directories(../../libgc/.libs)
-
-add_executable(monodis ${libmonodis_a_SOURCES} ${monodis_SOURCES})
-target_link_libraries(monodis mono-static ${GLIB_LIBS})
-
-###bin_PROGRAMS monodis
-
-###noinst_LIBRARIES libmonodis.a
-
-###man_MANS monodis.1
-
-###EXTRA_DIST ${man_MANS}
View
142 mono/io-layer/CMakeLists.txt
@@ -1,142 +0,0 @@
-
-# Last synched with Makefile.am at r134597
-
-set(OTHER_H
- access.h
- atomic.h
- collection.h
- context.h
- critical-sections.h
- error.h
- events.h
- handles.h
- io.h
- io-layer.h
- io-portability.h
- macros.h
- messages.h
- mono-mutex.h
- mutexes.h
- processes.h
- security.h
- semaphores.h
- sockets.h
- status.h
- system.h
- threads.h
- timefuncs.h
- types.h
- uglify.h
- versioninfo.h
- wait.h
- wapi.h)
-
-set(OTHER_SRC
- access.h
- atomic.c
- atomic.h
- collection.c
- collection.h
- context.c
- context.h
- critical-sections.c
- critical-sections.h
- critical-section-private.h
- error.c
- error.h
- events.c
- events.h
- event-private.h
- handles.c
- handles.h
- handles-private.h
- io.c
- io.h
- io-portability.c
- io-portability.h
- io-private.h
- io-layer.h
- locking.c
- macros.h
- messages.c
- messages.h
- misc.c
- misc-private.h
- mutexes.c
- mutexes.h
- mutex-private.h
- mono-mutex.c
- mono-mutex.h
- mono-spinlock.h
- posix.c
- processes.c
- processes.h
- process-private.h
- security.c
- security.h
- semaphores.c
- semaphores.h
- semaphore-private.h
- shared.c
- shared.h
- sockets.c
- sockets.h
- socket-private.h
- socket-wrappers.h
- status.h
- system.c
- system.h
- threads.h
- thread-private.h
- timefuncs.c
- timefuncs.h
- timefuncs-private.h
- types.h
- uglify.h
- versioninfo.c
- versioninfo.h
- wait.c
- wait.h
- wapi_glob.h
- wapi_glob.c
- wapi.h
- wapi-private.h
- wthreads.c)
-
-set(WINDOWS_H
- io-layer.h)
-
-set(WINDOWS_SRC
- io-layer.h
- io-layer-dummy.c)
-
-set(HPPA_SRC
- hppa_atomic.S)
-
-if(HOST_WIN32)
-###if HOST_WIN32
-###libwapi_la_SOURCES = $(WINDOWS_SRC)
-###libwapiinclude_HEADERS = $(WINDOWS_H)
-else()
-###if HPPA
-###libwapi_la_SOURCES = $(OTHER_SRC) $(HPPA_SRC)
-#### to enable pick up of config.h
-###libwapi_la_CCASFLAGS = -I$(top_builddir)
-###else
-set(libwapi_la_SOURCES ${OTHER_SRC})
-###endif
-###libwapiinclude_HEADERS = $(OTHER_H)
-###endif
-endif()
-
-###EXTRA_DIST =
-### $(WINDOWS_SRC)
-### $(HPPA_SRC) \
-### $(OTHER_SRC)
-
-set(top_srcdir ../../)
-include_directories(${top_srcdir} ${top_srcdir}/mono ${GLIB2_INCLUDE_DIRS})
-add_definitions(${CFLAGS} ${LIBGC_CFLAGS} ${CPPFLAGS})
-
-add_library(wapi-static STATIC ${libwapi_la_SOURCES})
-add_library(wapi SHARED ${libwapi_la_SOURCES})
View
234 mono/metadata/CMakeLists.txt
@@ -1,234 +0,0 @@
-if(HOST_WIN32)
-###win32_sources = \
-### console-win32.c
-
-###platform_sources = $(win32_sources)
-
-#### Use -m here. This will use / as directory separator (C:/WINNT).
-#### The files that use MONO_ASSEMBLIES and/or MONO_CFG_DIR replace the
-#### / by \ if running under WIN32.
-###if CROSS_COMPILING
-###assembliesdir = ${libdir}
-###confdir = ${sysconfdir}
-###else
-###assembliesdir = `cygpath -m "${libdir}"`
-###confdir = `cygpath -m "${sysconfdir}"`
-###endif
-###export HOST_CC
-#### The mingw math.h has "extern inline" functions that dont appear in libs, so
-#### optimisation is required to actually inline them
-###AM_CFLAGS = -O
-
-else()
-
-# FIXME:
-set(assembliesdir ${CMAKE_INSTALL_PREFIX}/lib)
-set(sysconfdir ${CMAKE_INSTALL_PREFIX}/etc)
-set(confdir ${sysconfdir})
-###assembliesdir = $(exec_prefix)/lib
-###confdir = $(sysconfdir)
-
-set(unix_sources
- console-unix.c)
-
-set(platform_sources ${unix_sources})
-
-endif(HOST_WIN32)
-
-###bin_PROGRAMS = pedump
-
-#
-#### libtool is not capable of creating static/shared versions of the same
-#### convenience lib, so we have to do it ourselves
-#
-###noinst_LTLIBRARIES = libmonoruntime.la libmonoruntime-static.la
-
-set(top_srcdir ../../)
-INCLUDE_DIRECTORIES(${top_srcdir} ${top_srcdir}/mono ${GLIB2_INCLUDE_DIRS})
-ADD_DEFINITIONS("-DMONO_BINDIR=\"${CMAKE_BINARY_DIR}\"")
-ADD_DEFINITIONS("-DMONO_ASSEMBLIES=\"${assembliesdir}\"")
-ADD_DEFINITIONS("-DMONO_CFG_DIR=\"${confdir}\"")
-ADD_DEFINITIONS(${CFLAGS} ${LIBGC_CFLAGS} ${CPPFLAGS})
-
-#
-#### Make sure any prefix changes are updated in the binaries too.
-#
-#### assembly.c uses MONO_ASSEMBLIES
-#### mono-config.c uses MONO_CFG_DIR
-#
-#### This won't result in many more false positives than AC_DEFINEing them
-#### in configure.in.
-#
-###assembly.lo mono-config.lo: Makefile
-
-###CLEANFILES = mono-bundle.stamp
-
-###libmonoruntime_static_la_LIBADD = $(bundle_obj) $(libmonoruntime_la_LIBADD)
-
-set(null_sources
- console-null.c)
-
-set(libmonoruntime_la_SOURCES
- ${platform_sources}
- appdomain.c
- assembly.c
- attach.h
- attach.c
- boehm-gc.c
- char-conversions.h
- cil-coff.h
- class.c
- class-internals.h
- cominterop.c
- cominterop.h
- console-io.h
- coree.c
- coree.h
- culture-info.h
- culture-info-tables.h
- debug-helpers.c
- debug-mono-symfile.h
- debug-mono-symfile.c
- decimal.c
- decimal.h
- domain.c
- domain-internals.h
- environment.c
- environment.h
- exception.c
- exception.h
- file-io.c
- file-io.h
- filewatcher.c
- filewatcher.h
- gc.c
- gc-internal.h
- generic-sharing.c
- icall.c
- icall-def.h
- image.c
- loader.c
- locales.c
- locales.h
- lock-tracer.c
- lock-tracer.h
- marshal.c
- marshal.h
- mempool.c
- mempool-internals.h
- metadata.c
- metadata-verify.c
- metadata-internals.h
- method-builder.h
- method-builder.c
- mono-config.c
- mono-debug.h
- mono-debug.c
- mono-debug-debugger.h
- mono-debug-debugger.c
- mono-endian.c
- mono-endian.h
- mono-mlist.c
- mono-mlist.h
- mono-perfcounters.c
- mono-perfcounters.h
- mono-perfcounters-def.h
- monitor.c
- monitor.h
- normalization-tables.h
- null-gc.c
- number-formatter.h
- object.c
- object-internals.h
- opcodes.c
- socket-io.c
- socket-io.h
- process.c
- process.h
- profiler.c
- profiler-private.h
- rand.h
- rand.c
- reflection.c
- security.c
- security.h
- security-core-clr.c
- security-core-clr.h
- security-manager.c
- security-manager.h
- sgen-gc.c
- sgen-gc.h
- sgen-archdep.h
- sgen-scan-object.h
- string-icalls.c
- string-icalls.h
- sysmath.h
- sysmath.c
- tabledefs.h
- threads.c
- threads-types.h
- threadpool.c
- threadpool.h
- threadpool-internals.h
- verify.c
- verify-internals.h
- wrapper-types.h)
-
-set(libmonoruntime_static_la_SOURCES ${libmonoruntime_la_SOURCES})
-
-###libmonoruntimeincludedir = $(includedir)/mono-$(API_VER)/mono/metadata
-
-###libmonoruntimeinclude_HEADERS = \
-### assembly.h \
-### attrdefs.h \
-### appdomain.h \
-### blob.h \
-### class.h \
-### debug-helpers.h \
-### debug-mono-symfile.h \
-### threads.h \
-### environment.h \
-### exception.h \
-### image.h \
-### loader.h \
-### mempool.h \
-### metadata.h \
-### mono-config.h \
-### mono-debug.h \
-### mono-gc.h \
-### object.h \
-### opcodes.h \
-### profiler.h \
-### reflection.h \
-### row-indexes.h \
-### tokentype.h \
-### verify.h
-
-#ADD_LIBRARY(libmonoruntime SHARED ${libmonoruntime_la_SOURCES})
-
-###if DTRACE_G_REQUIRED
-
-###PEDUMP_DTRACE_OBJECT = pedump-dtrace.$(OBJEXT)
-
-###pedump-dtrace.$(OBJEXT): $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
-### DTRACE="$(DTRACE)" DTRACEFLAGS="$(DTRACEFLAGS)" AR="$(AR)" $(SHELL) $(top_srcdir)/data/dtrace-prelink.sh \
-### --pic pedump-dtrace.$(OBJEXT) $(top_srcdir)/data/mono.d libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la
-
-###else
-###PEDUMP_DTRACE_OBJECT =
-###endif
-
-add_library(monoruntime-static STATIC ${libmonoruntime_static_la_SOURCES})
-#add_library(monoruntime SHARED ${libmonoruntime_static_la_SOURCES})
-#target_link_libraries(monoruntime wapi monoutils monogc ${GLIB2_LIBRARIES} ${LIBS})
-
-# FIXME:
-link_directories(../../libgc/.libs)
-add_executable(pedump pedump.c)
-target_link_libraries(pedump monoruntime-static wapi monoutils monogc-static ${GLIB2_LIBRARIES} ${LIBS})
-
-###pedump_LDADD = libmonoruntime.la ../io-layer/libwapi.la ../utils/libmonoutils.la \
-### $(LIBGC_LIBS) $(GLIB_LIBS) -lm $(PEDUMP_DTRACE_OBJECT)
-
-###EXTRA_DIST = make-bundle.pl sample-bundle $(win32_sources) $(unix_sources) $(null_sources)
-
View
694 mono/mini/CMakeLists.txt
@@ -1,694 +0,0 @@
-
-# Last synched with Makefile.am at r134597
-
-cmake_policy(SET CMP0010 NEW)
-
-# Helper functions
-
-function(add_cs_target target sources args depends)
- separate_arguments(sources)
- separate_arguments(args)
- separate_arguments(depends)
- add_custom_command(
- OUTPUT ${target}
- COMMAND ${MCS} -out:${target} ${args} ${sources}
- DEPENDS ${sources} ${depends}
- )
- add_custom_target (${target}-target DEPENDS ${target})
-endfunction()
-
-function(add_cs_dll target sources args depends)
- add_cs_target(${target} ${sources} "-target:library ${args}" "${depends}")
-endfunction()
-
-function(add_cs_exe target sources args depends)
- add_cs_target(${target} ${sources} "-target:exe ${args}" "${depends}")
-endfunction()
-
-function(add_il_target target sources args)
- separate_arguments(sources)
- separate_arguments(args)
- add_custom_command(
- OUTPUT ${target}
- COMMAND ${ILASM} -output=${target} ${args} ${sources}
- DEPENDS ${sources}
- )
- add_custom_target (${target}-target DEPENDS ${target})
-endfunction()
-
-
-
-
-set(count 100000)
-set(mtest for_loop)
-set(monodir ${top_builddir})
-
-set(CLASS ${mcs_topdir}/class/lib/net_2_0)
-
-set(RUNTIME MONO_PATH=${CLASS} ${top_builddir}/runtime/mono-wrapper)
-set(RUNTIME_AOTCHECK MONO_PATH=${CLASS}:. ${top_builddir}/runtime/mono-wrapper)
-
-set(MCS ${RUNTIME} ${CLASS}/gmcs.exe -unsafe -nowarn:0162)
-set(ILASM ${RUNTIME} ${CLASS}/ilasm.exe)
-
-set(x86_sources
- mini-x86.c
- mini-x86.h
- exceptions-x86.c
- tramp-x86.c)
-
-set(amd64_sources
- mini-amd64.c
- mini-amd64.h
- exceptions-amd64.c
- tramp-amd64.c)
-
-set(ppc_sources
- mini-ppc.c
- mini-ppc.h
- exceptions-ppc.c
- tramp-ppc.c)
-
-set(arm_sources
- mini-arm.c
- mini-arm.h
- exceptions-arm.c
- tramp-arm.c)
-
-set(mips_sources
- mini-mips.c
- mini-mips.h
- exceptions-mips.c
- tramp-mips.c)
-
-set(sparc_sources
- mini-sparc.c
- mini-sparc.h
- exceptions-sparc.c
- tramp-sparc.c)
-
-set(s390_sources
- mini-s390.c
- mini-s390.h
- exceptions-s390.c
- tramp-s390.c)
-
-set(s390x_sources
- mini-s390x.c
- mini-s390x.h
- exceptions-s390x.c
- tramp-s390x.c)
-
-set(ia64_sources
- mini-ia64.c
- mini-ia64.h
- exceptions-ia64.c
- tramp-ia64.c)
-
-set(alpha_sources
- mini-alpha.c
- mini-alpha.h
- exceptions-alpha.c
- tramp-alpha.c)
-
-set(hppa_sources
- mini-hppa.c
- mini-hppa.h
- exceptions-hppa.c
- tramp-hppa.c)
-
-set(darwin_sources
- mini-darwin.c)
-
-set(windows_sources
- mini-windows.c)
-
-set(posix_sources
- mini-posix.c)
-
-set(common_sources
- mini.c
- ir-emit.h
- method-to-ir.c
- decompose.c
- mini.h
- version.h
- optflags-def.h
- jit-icalls.h
- jit-icalls.c
- trace.c
- trace.h
- patch-info.h
- mini-ops.h
- mini-arch.h
- dominators.c
- cfold.c
- regalloc.c
- regalloc.h
- helpers.c
- liveness.c
- ssa.c
- abcremoval.c
- abcremoval.h
- ssapre.c
- ssapre.h
- local-propagation.c
- driver.c
- debug-mini.c
- debug-mini.h
- linear-scan.c
- aot-compiler.c
- aot-runtime.c
- graph.c
- mini-codegen.c
- mini-exceptions.c
- mini-trampolines.c
- declsec.c
- declsec.h
- wapihandles.c
- branch-opts.c
- mini-generic-sharing.c
- regalloc2.c
- simd-methods.h
- tasklets.c
- tasklets.h
- simd-intrinsics.c
- unwind.h
- unwind.c
- image-writer.h
- image-writer.c
- dwarfwriter.h
- dwarfwriter.c
- mini-gc.h
- mini-gc.c)
-
-set(test_sources
- basic-calls.cs
- basic-long.cs
- bench.cs
- objects.cs
- arrays.cs
- basic-float.cs
- basic-math.cs
- basic.cs
- exceptions.cs
- devirtualization.cs
- iltests.il.in
- test.cs
- generics.cs
- generics-variant-types.il
- basic-simd.cs)
-
-if(MONO_DEBUGGER_SUPPORTED)
-if(PLATFORM_DARWIN)
-set(mono_debugger_arch_sources mdb-debug-info32-darwin.s)
-elseif(AMD64)
-set(mono_debugger_arch_sources mdb-debug-info64.s)
-elseif(X86)
-set(mono_debugger_arch_sources mdb-debug-info32.s)
-endif()
-enable_language(ASM-ATT)
-set(mono_debugger_sources debug-debugger.c debug-debugger.h ${mono_debugger_arch_sources})
-
-set(ASM-ATT_FLAGS)
-else(MONO_DEBUGGER_SUPPORTED)
-set(mono_debugger_sources)
-endif(MONO_DEBUGGER_SUPPORTED)
-
-set(regtests basic.exe basic-float.exe basic-long.exe basic-calls.exe objects.exe arrays.exe basic-math.exe exceptions.exe iltests.exe devirtualization.exe generics.exe basic-simd.exe)
-
-if(X86)
-set(arch_sources ${x86_sources} ${mono_debugger_sources})
-set(arch_built cpu-x86.h)
-set(arch_define __i386__)
-endif()
-
-if(AMD64)
-set(arch_sources ${amd64_sources} ${mono_debugger_sources})
-set(arch_built cpu-amd64.h)
-set(arch_define __x86_64__)
-endif()
-
-if(POWERPC)
-set(arch_sources ${ppc_sources})
-set(arch_built cpu-ppc.h)
-set(arch_define __ppc__)
-endif()
-
-if(POWERPC64)
-set(arch_sources ${ppc_sources})
-set(arch_built cpu-ppc64.h)
-set(arch_define __ppc64__)
-endif()
-
-if(MIPS)
-set(arch_sources ${mips_sources})
-set(arch_built cpu-mips.h)
-set(arch_define __mips__)
-endif()
-
-if(ARM)
-# pick up arm_dpimacros.h and arm_fpamacros.h
-set(ARCH_CFLAGS -I../arch/arm)
-set(arch_sources ${arm_sources})
-set(arch_built cpu-arm.h)
-set(arch_define __arm__)
-endif()
-
-if(SPARC)
-set(arch_sources ${sparc_sources})
-set(arch_built cpu-sparc.h)
-set(arch_define __sparc__)
-endif()
-
-if(SPARC64)
-set(arch_sources ${sparc_sources})
-set(arch_built cpu-sparc.h)
-set(arch_define __sparc__)
-endif()
-
-if(S390)
-set(arch_sources ${s390_sources})
-set(arch_built cpu-s390.h)
-set(arch_define __s390__)
-endif()
-
-if(S390x)
-set(arch_sources ${s390x_sources})
-set(arch_built cpu-s390x.h)
-set(arch_define __s390__)
-endif()
-
-if(IA64)
-set(arch_sources ${ia64_sources})
-set(arch_built cpu-ia64.h)
-set(arch_define __ia64__)
-endif()
-
-if(ALPHA)
-set(arch_sources ${alpha_sources} ${mono_debugger_sources})
-set(arch_built cpu-alpha.h)
-set(arch_define __alpha__)
-endif()
-
-if(HPPA)
-# Only support 32-bit targets for now
-set(arch_sources ${hppa_sources})
-set(arch_built cpu-hppa.h)
-set(arch_define __hppa__)
-endif()
-
-if(HOST_WIN32)
-set(os_sources ${windows_sources})
-set(monobin_platform_ldflags)
-endif()
-
-if(PLATFORM_SIGPOSIX)
-set(os_sources ${posix_sources})
-set(monobin_platform_ldflags)
-endif()
-
-if(PLATFORM_DARWIN)
-set(os_sources ${darwin_sources} ${posix_sources})
-set(monobin_platform_ldflags "-sectcreate __TEXT __info_plist ${top_srcdir}/mono/mini/Info.plist")
-endif()
-
-#### we don't always use the perl impl because it's an additional
-#### build dependency for the poor windows users
-#### ${arch_define} is the preprocessor symbol that enables all the opcodes
-#### for the specific platform in mini-ops.h
-###if CROSS_COMPILING
-###GENMDESC_PRG=perl ${srcdir)/genmdesc.pl ${arch_define} ${srcdir)
-###else !CROSS_COMPILING
-set(GENMDESC_PRG ${CMAKE_CURRENT_BINARY_DIR}/genmdesc)
-###endif !CROSS_COMPILING
-
-function(add_genmdesc_target target source define)
- add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${target}
- COMMAND ${GENMDESC_PRG} ${CMAKE_CURRENT_BINARY_DIR}/${target} ${define} ${source}
- DEPENDS genmdesc ${source}
- )
-endfunction()
-
-foreach(arch x86 amd64 sparc ia64 alpha hppa mips)
- add_genmdesc_target(cpu-${arch}.h cpu-${arch}.md ${arch}_desc)
-endforeach()
-
-add_genmdesc_target(cpu-ppc.h cpu-ppc.md ppcg4)
-add_genmdesc_target(cpu-ppc64.h cpu-ppc64.md ppc64_cpu_desc)
-add_genmdesc_target(cpu-arm.h cpu-arm.md arm_cpu_desc)
-add_genmdesc_target(cpu-s390.h cpu-s390.md s390_cpu_desc)
-add_genmdesc_target(cpu-s390x.h cpu-s390x.md s390x_cpu_desc)
-
-include_directories(../..)
-include_directories(${GLIB2_INCLUDE_DIRS})
-include_directories(${LIBGC_INCLUDE_DIRS})
-# FIXME:
-link_directories(../../libgc/.libs)
-set(CMAKE_C_FLAGS "${CFLAGS} ${LIBGC_CFLAGS} ${CPPFLAGS}")
-
-# genmdesc
-add_executable(genmdesc genmdesc.c helpers.c)
-target_link_libraries(genmdesc monoutils-static monoruntime-static ${GLIB2_LIBRARIES})
-
-# libmono
-
-set(libmono_la_SOURCES ${common_sources} ${llvm_sources} ${arch_sources} ${os_sources})
-
-# FIXME: cmake doesn't seem to recognize the ${arch_built} dependency
-add_library(libmono-static STATIC ${libmono_la_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/${arch_built})
-target_link_libraries(libmono-static monoruntime-static monoutils-static monogc-static wapi-static ${GLIB2_LIBRARIES} ${LIBS})
-set_target_properties(libmono-static PROPERTIES OUTPUT_NAME "mono-static")
-
-# Since cmake has no support for convenience libraries, we have to link the
-# final libmono.a ourselves, similarly to how libtool does it
-add_custom_target(libmono.a
- COMMAND rm -rf .libs/tmp libmono.a
- COMMAND mkdir -p .libs/tmp/{1,2,3,4,5}
- COMMAND cd .libs/tmp/1 && ar x ../../../../metadata/libmonoruntime-static.a
- COMMAND cd .libs/tmp/2 && ar x ../../../../utils/libmonoutils-static.a
- COMMAND cd .libs/tmp/3 && ar x ../../../../io-layer/libwapi-static.a
- COMMAND cd .libs/tmp/3 && ar x ../../../../mini/libmono-static.a
- COMMAND cd .libs/tmp/4 && ar x ../../../../../libgc/libmonogc-static.a
- COMMAND ar r libmono.a `find .libs/tmp/ -name '*.o'`
-)
-
-# FIXME: cmake has no support for convenience libraries, so we would end up
-# creating a lot of shared libraries linking to each other
-#add_library(libmono SHARED ${libmono_la_SOURCES} ${CMAKE_CURRENT_BINARY_DIR}/${arch_built})
-#set_target_properties(libmono PROPERTIES OUTPUT_NAME "mono")
-#target_link_libraries(libmono monoruntime monoutils monogc wapi ${GLIB2_LIBRARIES} ${LIBS})
-
-# version.h
-
-# Its a pain to try to pass a complex shell script to add_custom_command (), so
-# write it to disk instead
-# " needs to be escaped as \"
-# \ needs to be escaped as \\
-set(top_srcdir ../../)
-file(WRITE create-version.h.sh "
- if test -d ${top_srcdir}/.git/svn; then svn_info=\"git log --no-color --first-parent -n1 --grep=git-svn-id: --pretty=format:%b | sed -n -e 's,git-svn-id: \\(.*\\)@\\(.*\\) .*,URL: \\1 Revision: \\2,p'\"; fi;
- if test -d ${srcdir}/.svn; then svn_info='svn info'; fi;
- if test -n \"$svn_info\"; then
- (cd ${top_srcdir};
- LANG=C; export LANG;
- branch=`eval $$svn_info | sed -n -e '/URL/ s,.*source/\\(.*\\)/mono.*,/\\1/mono,p'`;
- version=`eval $$svn_info | sed -n -e '/Revision/ s/.*: //p'`;
- echo \"#define FULL_VERSION \\\"$branch r$version\\\"\";
- );
- else
- echo \"#define FULL_VERSION \\\"tarball\\\"\";
- fi > version.h
-")
-
-# FIXME: dependencies ?
-add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/version.h
- COMMAND chmod a+x ./create-version.h.sh
- COMMAND ./create-version.h.sh
- VERBATIM
-)
-
-# buildver.h
-
-# We build this after libmono was built so it contains the date when the final
-# link was done
-add_custom_command(
- OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/buildver.h
- PRE_LINK
- COMMAND sh -c "X='\"'; echo \"const char *build_date = $X`date`$X;\" > ${CMAKE_CURRENT_BINARY_DIR}/buildver.h"
- DEPENDS libmono-static
- VERBATIM
-)
-set_source_files_properties(main.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/buildver.h)
-set_source_files_properties(main.c PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/buildver.h)
-
-# mono
-
-add_executable(mono main.c ${CMAKE_CURRENT_BINARY_DIR}/buildver.h)
-add_dependencies(mono libmono-static)
-target_link_libraries(mono libmono-static ${GLIB2_LIBRARIES})
-
-install(
- TARGETS mono
- RUNTIME DESTINATION bin)
-
-# FIXME: Can't specify a dependency on libmono.a, and we don't want to build
-# libmono.a until needed
-install(
- FILES libmono.a DESTINATION lib)
-
-# Test file targets
-
-foreach(test ${test_sources})
- if (${test} MATCHES ".*\\.cs")
- string(REPLACE ".cs" ".exe" exe_name ${test})
- add_cs_exe(${exe_name} ${test} "-r:TestDriver.dll -r:generics-variant-types.dll -r:Mono.Simd.dll" "TestDriver.dll generics-variant-types.dll")
- endif()
-endforeach()
-
-set(il_source "iltests.il")
-set(exe_name "iltests.exe")
-add_custom_command(
- OUTPUT ${exe_name}
- COMMAND ${ILASM} -output=${exe_name} ${il_source}
- DEPENDS ${il_source}
- )
-add_custom_target(${exe_name}-exe DEPENDS ${exe_name})
-
-add_custom_command(
- OUTPUT "iltests.il"
- COMMAND echo // DO NOT EDIT: This file has been generated from iltests.il.in > iltests.il
- COMMAND cpp -Darch=${arch_define} < iltests.il.in | sed "s/^#.*//" >> iltests.il
- DEPENDS iltests.il.in
- VERBATIM
-)
-
-add_cs_dll("TestDriver.dll" "TestDriver.cs" "-r:System.dll -r:System.dll" "")
-
-add_il_target("generics-variant-types.dll" "generics-variant-types.il" "-dll")
-
-# Testing targets
-
-add_custom_target(rcheck
- COMMAND ${RUNTIME} --regression ${regtests}
- DEPENDS mono ${regtests}
-)
-
-# FIXME: make runs rcheck, but then says: 'No rule to make target `rcheck', needed by `mono/mini/CMakeFiles/check'
-#add_custom_target(check
-# DEPENDS rcheck)
-add_custom_target(check
- COMMAND ${RUNTIME} --regression ${regtests}
- DEPENDS mono ${regtests}
-)
-
-add_custom_target(testi
- COMMAND ${RUNTIME} -v -v --ncompile 1 --compile Test:${mtest} test.exe
- DEPENDS mono test.exe
-)
-
-# ensure the tests are actually correct
-add_custom_target(checktests
- COMMAND for i in ${regtests}\; do ${RUNTIME} $$i\; done
- DEPENDS ${regtests}
-)
-
-add_custom_target(aotcheck
- COMMAND rm -f *.exe.so
- COMMAND ${RUNTIME} --aot ${regtests} || exit 1
- COMMAND for i in ${regtests}\; do ${RUNTIME_AOTCHECK} --regression $$i || exit 1\; done
- COMMAND rm -f *.exe.so
- DEPENDS mono ${regtests}
-)
-
-# This currently only works on amd64/arm
-add_custom_target(fullaotcheck
- COMMAND rm -rf fullaot-tmp
- COMMAND mkdir fullaot-tmp
- COMMAND cp ${CLASS}/mscorlib.dll ${CLASS}/System.Core.dll ${CLASS}/System.dll ${CLASS}/Mono.Posix.dll ${CLASS}/System.Configuration.dll ${CLASS}/System.Security.dll ${CLASS}/System.Xml.dll ${CLASS}/Mono.Security.dll ${CLASS}/Mono.Simd.dll ${regtests} generics-variant-types.dll TestDriver.dll fullaot-tmp/
- COMMAND cp ${regtests} fullaot-tmp/
- COMMAND MONO_PATH=fullaot-tmp ${top_builddir}/runtime/mono-wrapper --aot=full fullaot-tmp/* || exit 1
- COMMAND for i in ${regtests}\; do echo $$i\; MONO_PATH=fullaot-tmp ${top_builddir}/runtime/mono-wrapper --full-aot fullaot-tmp/$$i --exclude '!FULLAOT' || exit 1\; done
- DEPENDS mono ${regtests}
-)
-
-add_custom_target(bench
- COMMAND time env ${RUNTIME} --ncompile ${count} --compile Test:${mtest} test.exe
- DEPENDS mono test.exe
-)
-
-add_custom_target(stat1
- COMMAND ${RUNTIME} --verbose --statfile stats.pl --regression bench.exe
- COMMAND perl viewstat.pl stats.pl
- DEPENDS mono bench.exe
-)
-
-add_custom_target(stat2
- COMMAND ${RUNTIME} --verbose --statfile stats.pl --regression basic.exe
- COMMAND perl viewstat.pl -e stats.pl
- DEPENDS mono basic.exe
-)
-
-add_custom_target(stat3
- COMMAND ${RUNTIME} --statfile stats.pl --ncompile 1000 --compile Tests:test_0_many_nested_loops bench.exe
- COMMAND perl viewstat.pl stats.pl
- DEPENDS mono bench.exe
-)
-
-#### This is needed for automake dependency generation
-###if INCLUDED_LIBGC
-###libgc_libs=${monodir)/libgc/libmonogc.la
-###libgc_static_libs=${monodir)/libgc/libmonogc-static.la
-###else
-###libgc_libs=${LIBGC_LIBS)
-###libgc_static_libs=${LIBGC_STATIC_LIBS)
-###endif
-
-###AM_CFLAGS = \
-### -I${top_srcdir} \
-### ${LIBGC_CFLAGS) \
-### ${GLIB_CFLAGS)
-### ${PLATFORM_CFLAGS} ${ARCH_CFLAGS)
-
-###AM_CXXFLAGS = ${LLVM_CXXFLAGS} ${GLIB_CFLAGS)
-
-###if PLATFORM_WIN32
-###export HOST_CC
-#### The mingw math.h has "extern inline" functions that dont appear in libs, so
-#### optimisation is required to actually inline them
-###PLATFORM_CFLAGS = -O
-###endif
-
-#### hack for automake to have the same source file in a library and a bin
-###genmdesc_CFLAGS = ${AM_CFLAGS)
-
-###if NO_VERSION_SCRIPT
-###monoldflags=${export_ldflags)
-###monobinldflags=${export_ldflags)
-###else
-###monoldflags=-Wl,-version-script=${srcdir)/ldscript ${export_ldflags)
-###monobinldflags=-Wl,-version-script=${srcdir)/ldscript.mono ${export_ldflags)
-###endif
-
-###if PLATFORM_WIN32
-###libmono_la_LDFLAGS=-no-undefined -avoid-version -Wl,--kill-at ${monoldflags)
-###else
-###libmono_la_LDFLAGS=${monoldflags)
-###endif
-
-###if JIT_SUPPORTED
-
-###if PLATFORM_WIN32
-###bin_PROGRAMS = mono monow
-###else
-###bin_PROGRAMS = mono
-###endif
-
-###noinst_PROGRAMS = genmdesc
-
-###lib_LTLIBRARIES = libmono.la
-###noinst_LTLIBRARIES = libmono-static.la
-###endif
-
-###if DTRACE_G_REQUIRED
-###LIBMONO_DTRACE_OBJECT = .libs/mono-dtrace.${OBJEXT)
-###if STATIC_MONO
-###MONO_DTRACE_OBJECT = mono-dtrace.${OBJEXT)
-###else
-###MONO_DTRACE_OBJECT =
-###endif
-###else
-###MONO_DTRACE_OBJECT =
-###LIBMONO_DTRACE_OBJECT =
-###endif
-
-###if STATIC_MONO
-#### Link libmono into mono statically
-#### This leads to higher performance, especially with TLS
-###MONO_LIB=libmono-static.la
-###else
-###MONO_LIB=libmono.la
-###endif
-
-###mono_LDADD = \
-### ${MONO_LIB) \
-### ${GLIB_LIBS) \
-### ${LLVM_LIBS) \
-### -lm \
-### ${MONO_DTRACE_OBJECT) \
-### ${LLVM_LDFLAGS}
-
-###mono_LDFLAGS = \
-### ${static_flags} -export-dynamic ${monobinldflags) ${monobin_platform_ldflags}
-
-###if DTRACE_G_REQUIRED
-
-###mono-dtrace.${OBJEXT): ${top_srcdir)/data/mono.d mini.lo ${monodir)/mono/metadata/libmonoruntime-static.la
-### DTRACE="${DTRACE)" DTRACEFLAGS="${DTRACEFLAGS)" AR="${AR)" ${SHELL} ${top_srcdir)/data/dtrace-prelink.sh \
-### $@ ${top_srcdir)/data/mono.d ${monodir)/mono/metadata/libmonoruntime-static.la mini.lo
-
-###.libs/mono-dtrace.${OBJEXT): ${top_srcdir)/data/mono.d mini.lo ${monodir)/mono/metadata/libmonoruntime.la
-### DTRACE="${DTRACE)" DTRACEFLAGS="${DTRACEFLAGS)" AR="${AR)" ${SHELL} ${top_srcdir)/data/dtrace-prelink.sh \
-### --pic $@ ${top_srcdir)/data/mono.d ${monodir)/mono/metadata/libmonoruntime.la mini.lo
-
-###endif
-
-#### Create monow.exe, linked for the 'windows' subsystem
-###if PLATFORM_WIN32
-###monow_LDADD = ${mono_LDADD)
-###monow_LDFLAGS = ${mono_LDFLAGS} -mwindows
-###monow_SOURCES = ${mono_SOURCES)
-###endif
-
-#### Don't link this against libmonoruntime to speed up rebuilds
-###genmdesc_LDADD = \
-### ${monodir)/mono/utils/libmonoutils.la ${monodir)/mono/metadata/opcodes.lo -lm \
-### ${GLIB_LIBS)
-
-###if ENABLE_LLVM
-#### Disabled for now to fix the windows build
-####llvm_sources = \
-#### mini-llvm.c \
-#### mini-llvm-cpp.cpp
-###endif
-
-###libmono_static_la_LIBADD = ${static_libs} ${MONO_DTRACE_OBJECT)
-
-###libmonoincludedir = ${includedir)/mono-${API_VER)/mono/jit
-
-###libmonoinclude_HEADERS = jit.h
-
-###libmono_la_LIBADD = \
-### ${libs} ${LIBMONO_DTRACE_OBJECT)
-
-###clean-local:
-### rm -f mono a.out gmon.out *.o buildver.h test.exe
-
-###pkgconfigdir = ${libdir)/pkgconfig
-
-###if JIT_SUPPORTED
-###BUILT_SOURCES = version.h ${arch_built)
-###else
-###BUILT_SOURCES = version.h
-###endif
-
-###CLEANFILES= ${BUILT_SOURCES} *.exe *.dll
-###EXTRA_DIST = TestDriver.cs ldscript ldscript.mono \
-### genmdesc.pl \
-### ${test_sources} \
-### ${x86_sources} cpu-x86.md \
-### ${amd64_sources} cpu-amd64.md \
-### ${ppc_sources} cpu-ppc.md cpu-ppc64.md \
-### ${arm_sources} cpu-arm.md \
-### ${mips_sources} cpu-mips.md \
-### ${sparc_sources} cpu-sparc.md \
-### ${s390_sources} cpu-s390.md \
-### ${s390x_sources} cpu-s390x.md \
-### ${ia64_sources} cpu-ia64.md \
-### ${alpha_sources} cpu-alpha.md \
-### ${hppa_sources} cpu-hppa.md \
-### ${windows_sources) \
-### ${darwin_sources) Info.plist \
-### ${posix_sources)
View
90 mono/utils/CMakeLists.txt
@@ -1,90 +0,0 @@
-###noinst_LTLIBRARIES = libmonoutils.la
-
-###INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/mono $(LIBGC_CFLAGS) $(GLIB_CFLAGS)
-
-###if ENABLE_DTRACE
-
-###BUILT_SOURCES = mono-dtrace.h
-
-###mono-dtrace.h: $(top_srcdir)/data/mono.d
-### $(DTRACE) $(DTRACEFLAGS) -h -s $(top_srcdir)/data/mono.d -o $@ || > $@
-###
-###endif
-
-if(EGLIB_BUILD)
- set(hash_sources mono-ehash.c)
-else()
- set(hash_sources mono-hash.c)
-endif()
-
-set(libmonoutils_la_SOURCES
- ${hash_sources}
- mono-md5.c
- mono-sha1.c
- mono-logger.c
- mono-codeman.c
- dlmalloc.h
- dlmalloc.c
- mono-counters.c
- mono-compiler.h
- mono-dl.c
- mono-dl.h
- mono-internal-hash.c
- mono-internal-hash.h
- mono-io-portability.c
- mono-io-portability.h
- monobitset.c
- mono-filemap.c
- mono-math.c
- mono-mmap.c
- mono-mmap.h
- mono-proclib.c
- mono-proclib.h
- mono-string.h
- mono-time.c
- mono-time.h
- strtod.h
- strtod.c
- strenc.h
- strenc.c
- mono-uri.c
- mono-poll.c
- mono-path.c
- mono-semaphore.h
- mono-sigcontext.h
- mono-stdlib.c
- mono-property-hash.h
- mono-property-hash.c
- mono-value-hash.h
- mono-value-hash.c
- freebsd-elf_common.h
- freebsd-elf32.h
- freebsd-elf64.h
- freebsd-dwarf.h
- dtrace.h
- gc_wrapper.h)
-
-set(libmonoutilsincludedir ${includedir}/mono-${API_VER}/mono/utils)
-
-set(libmonoutilsinclude_HEADERS
- monobitset.h
- mono-codeman.h
- mono-counters.h
- mono-digest.h
- mono-embed.h
- mono-logger.h
- mono-hash.h
- mono-math.h
- mono-membar.h
- mono-path.h
- mono-poll.h
- mono-uri.h
- mono-stdlib.h)
-
-set(EXTRA_DIST ChangeLog mono-hash.c mono-hash.h mono-ehash.c)
-
-set(top_srcdir ../../)
-INCLUDE_DIRECTORIES(${top_srcdir} ${top_srcdir}/mono ${GLIB2_INCLUDE_DIRS})
-ADD_DEFINITIONS(${CFLAGS} ${LIBGC_CFLAGS} ${CPPFLAGS})
-ADD_LIBRARY(monoutils-static STATIC ${libmonoutils_la_SOURCES})
-ADD_LIBRARY(monoutils SHARED ${libmonoutils_la_SOURCES})
View
0 samples/CMakeLists.txt
No changes.
View
230 scripts/CMakeLists.txt
@@ -1,230 +0,0 @@
-#
-# Scripts that we install
-#
-# Starting with Mono 2.0, the majority of the tools default to the
-# 2.0 profile. Commands that support the 1.0 toolchain and must
-# run under 1.0 have the number 1 appended to their command names
-# (for example mcs1 is the C# 1.0 compiler) and are listed in the
-# scripts_1_0 compat variable.
-#
-# To preserve compatibility with old Makefiles and tools we keep the
-# command names that had the suffix 2 (like wsdl2)
-#
-if(USE_BATCH_FILES)
-message(FATAL_ERROR FIXME)
-set(SCRIPT_IN script.bat.in)
-set(FILTER sed -e 's,\.bat\.exe,\.exe,g' -e 's,/,\\,g')
-set(SCRIPT_SUFFIX .bat)
-else()
-set(SCRIPT_IN script.in)
-set(FILTER cat)
-set(SCRIPT_SUFFIX)
-endif()
-
-set(COMPAT_1_0_SUFFIX 1${SCRIPT_SUFFIX})
-set(COMPAT_2_0_SUFFIX 2${SCRIPT_SUFFIX})
-
-set(scripts_1_0_compat
- al1${SCRIPT_SUFFIX}
- genxs1${SCRIPT_SUFFIX}
- ilasm1${SCRIPT_SUFFIX}
- mcs1${SCRIPT_SUFFIX}
- mkbundle1${SCRIPT_SUFFIX}
- gacutil1${SCRIPT_SUFFIX}
- monop1${SCRIPT_SUFFIX}
- resgen1${SCRIPT_SUFFIX}
- wsdl1${SCRIPT_SUFFIX})
-
-set(scripts_1_0
- caspol${SCRIPT_SUFFIX}
- cert2spc${SCRIPT_SUFFIX}
- certmgr${SCRIPT_SUFFIX}
- chktrust${SCRIPT_SUFFIX}
- cilc${SCRIPT_SUFFIX}
- disco${SCRIPT_SUFFIX}
- dtd2xsd${SCRIPT_SUFFIX}
- dtd2rng${SCRIPT_SUFFIX}
- installvst${SCRIPT_SUFFIX}
- genxs${SCRIPT_SUFFIX}
- macpack${SCRIPT_SUFFIX}
- mcs${SCRIPT_SUFFIX}
- mjs${SCRIPT_SUFFIX}
- monolinker${SCRIPT_SUFFIX}
- mono-cil-strip${SCRIPT_SUFFIX}
- mozroots${SCRIPT_SUFFIX}
- permview${SCRIPT_SUFFIX}
- prj2make${SCRIPT_SUFFIX}
- secutil${SCRIPT_SUFFIX}
- setreg${SCRIPT_SUFFIX}
- signcode${SCRIPT_SUFFIX}
- soapsuds${SCRIPT_SUFFIX}
- xsd${SCRIPT_SUFFIX})
-
-set(scripts_1_0_umask
- makecert${SCRIPT_SUFFIX}
- sn${SCRIPT_SUFFIX})
-
-set(scripts_2_0
- al2${SCRIPT_SUFFIX}
- csharp${SCRIPT_SUFFIX}
- gacutil2${SCRIPT_SUFFIX}
- gmcs${SCRIPT_SUFFIX}
- httpcfg${SCRIPT_SUFFIX}
- ilasm2${SCRIPT_SUFFIX}
- mconfig${SCRIPT_SUFFIX}
- mkbundle2${SCRIPT_SUFFIX}
- mdoc${SCRIPT_SUFFIX}
- mono-api-info${SCRIPT_SUFFIX}
- mono-shlib-cop${SCRIPT_SUFFIX}
- monop2${SCRIPT_SUFFIX}
- resgen2${SCRIPT_SUFFIX}
- pdb2mdb${SCRIPT_SUFFIX}
- wsdl2${SCRIPT_SUFFIX}
- xsd2${SCRIPT_SUFFIX}
- mono-xmltool${SCRIPT_SUFFIX}
- sgen${SCRIPT_SUFFIX}
- sqlmetal${SCRIPT_SUFFIX}
- sqlsharp${SCRIPT_SUFFIX}
- svcutil${SCRIPT_SUFFIX}
- xbuild${SCRIPT_SUFFIX})
-
-set(MDOC_SUBCOMMANDS
- mdoc-assemble
- mdoc-export-html
- mdoc-export-msxdoc
- mdoc-update
- mdoc-validate)
-
-set(MDOC_COMPAT
- mdassembler
- mdvalidater
- monodocer
- monodocs2html
- monodocs2slashdoc)
-
-set(bin_SCRIPTS
- ${scripts_1_0}
- ${scripts_1_0_umask}
- ${scripts_1_0_compat}
- ${scripts_defaults}
- ${scripts_2_0}
- ${scripts_service}
- ${scripts_nunit}
- ${scripts_rpmhelpers}
- ${MDOC_SUBCOMMANDS}
- ${MDOC_COMPAT}
- mod
- mono-test-install)
-
-#
-# these are the new defaults, 2.0 profile-based commands
-#
-# we can move scripts_1_0 scripts here as we see fit, if(we need to
-# keep a 1.0 command available, we should additionally put it on
-# the scripts_1_0_compat list
-#
-set(scripts_defaults
- al${SCRIPT_SUFFIX}
- ilasm${SCRIPT_SUFFIX}
- gacutil${SCRIPT_SUFFIX}
- mkbundle${SCRIPT_SUFFIX}
- monop${SCRIPT_SUFFIX}
- resgen${SCRIPT_SUFFIX}
- wsdl${SCRIPT_SUFFIX})
-
-###scripts_service = mono-service mono-service2
-###scripts_nunit = nunit-console${SCRIPT_SUFFIX} nunit-console2${SCRIPT_SUFFIX}
-###scripts_rpmhelpers = mono-find-provides mono-find-requires
-###
-###CLEANFILES = ${scripts_1_0} ${scripts_1_0_umask} ${scripts_2_0} ${scripts_defaults} ${scripts_1_0_compat} mono-service mono-service2 nunit-console nunit-console2 mono-find-provides mono-find-requires mod ${MDOC_SUBCOMMANDS}
-###DISTCLEANFILES = ${pkgconfig_DATA} ${scripts_rpmhelpers}
-###
-###EXTRA_DIST = \
-### script.in \
-### script.bat.in \
-### script_umask.in \
-### script_umask.bat.in \
-### mod.in \
-### mono-service.in \
-### mono-find-provides.in \
-### mono-find-requires.in \
-### mono-test-install \
-### ${MDOC_COMPAT} \
-### patch-quiet.sh
-###
-if(USE_JIT)
-set(mono_interp mono)
-else()
-set(mono_interp mint)
-endif()
-
-if(PLATFORM_WIN32)
-if(CROSS_COMPILING)
-set(plat_bindir ${bindir})
-set(mono_instdir ${prefix}/lib/mono)
-else()
-set(plat_bindir ${shell cygpath -m ${libdir}})
-set(mono_instdir ${shell cygpath -m ${libdir}}/mono)
-endif()
-else()
-set(plat_bindir ${bindir})
-set(mono_instdir ${prefix}/lib/mono)
-endif()
-
-function(rewrite input output exe version)
- file(READ ${input} s)
- string(REPLACE "\@bindir\@" "${bindir_full}" s ${s})
- string(REPLACE "\@mono_instdir\@" "${mono_instdir}" s ${s})
- string(REPLACE "\@mono_interp\@" "${mono_interp}" s ${s})
- string(REPLACE "\@framework_version\@" "${version}" s ${s})
- string(REPLACE "\@exe_name\@" "${exe}" s ${s})
- file(WRITE ${output} ${s})
-endfunction()
-
-function(rewrite_debug input output exe version)
- file(READ ${input} s)
- string(REPLACE "\@bindir\@" "${bindir_full}" s ${s})
- string(REPLACE "\@mono_instdir\@" "${mono_instdir}" s ${s})
- string(REPLACE "\@mono_interp\@" "${mono_interp} --debug" s ${s})
- string(REPLACE "\@framework_version\@" "${version}" s ${s})
- string(REPLACE "\@exe_name\@" "${exe}" s ${s})
- file(WRITE ${output} ${s})
-endfunction()
-
-set(srcdir ${top_srcdir}/scripts)
-
-# FIXME: Make these into targets
-rewrite(mono-service.in mono-service mono-service 1.0)
-rewrite(mono-service.in mono-service2 mono-service2 2.0)
-rewrite_debug(${SCRIPT_IN} nunit-console${SCRIPT_SUFFIX} nunit-console 1.0)
-rewrite_debug(${SCRIPT_IN} nunit-console2${SCRIPT_SUFFIX} nunit-console 2.0)
-rewrite(mod.in mod${SCRIPT_SUFFIX} mod 1.0)
-
-foreach(script ${scripts_1_0})
- rewrite(${srcdir}/script.in ${script} ${script} 1.0)
-endforeach()
-
-foreach(script ${scripts_1_0_umask})
- rewrite(${srcdir}/script_umask.in ${script} ${script} 1.0)
-endforeach()
-
-foreach(script ${scripts_1_0_compat})
- string(REPLACE ${COMPAT_1_0_SUFFIX} "" exe ${script})
- rewrite(${srcdir}/script_umask.in ${script} ${exe} 1.0)
-endforeach()
-
-foreach(script ${scripts_defaults})
- rewrite(${srcdir}/script.in ${script} ${script} 2.0)
-endforeach()
-
-foreach(script ${scripts_2_0})
- string(REPLACE ${COMPAT_2_0_SUFFIX} "" exe ${script})
- rewrite(${srcdir}/script.in ${script} ${exe} 2.0)
-endforeach()
-
-foreach(script ${MDOC_SUBCOMMANDS})
- string(REPLACE "mdoc-" "" cmd ${script})
- file(WRITE ${script} "#!/bin/sh\nexec mdoc ${cmd} \"$@\"\n")
-endforeach()
-
-install(PROGRAMS ${bin_SCRIPTS} DESTINATION bin)
View
162 support/CMakeLists.txt
@@ -1,162 +0,0 @@
-
-# Source code which helps implement the ANSI C standards, and thus *should* be
-# portable to any platform having a C compiler.
-set(MPH_C_SOURCE
- errno.c
- map.c
- map.h
- mph.h
- signal.c
- stdio.c
- string.c
- stdlib.c)
-
-# Source code which helps implement POSIX and other related Unix standards,
-# and *may* be portable between Unix platforms.
-set(MPH_UNIX_SOURCE
- dirent.c
- fcntl.c
- fstab.c
- grp.c
- macros.c
- old-map.c
- old-map.h
- pwd.c
- serial.c
- sys-mman.c
- sys-sendfile.c
- sys-stat.c
- sys-statvfs.c
- sys-time.c
- sys-utsname.c
- sys-wait.c
- sys-xattr.c
- syslog.c
- time.c
- unistd.c
- utime.c
- x-struct-str.c)
-
-if(PLATFORM_WIN32)
-set(MPH_SOURCE ${MPH_C_SOURCE})
-set(MPH_LIBS ${GLIB_LIBS})
-else()
-set(MPH_SOURCE ${MPH_C_SOURCE} ${MPH_UNIX_SOURCE})
-set(MPH_LIBS ${GLIB_LIBS})
-endif()
-
-set(MINIZIP_SOURCE
- minizip/crypt.h
- minizip/ioapi.c
- minizip/ioapi.h
- minizip/unzip.c
- minizip/unzip.h
- minizip/zip.c
- minizip/zip.h)
-
-set(ZLIB_SOURCES
- adler32.c
- compress.c
- crc32.c
- gzio.c
- uncompr.c
- deflate.c
- trees.c
- zutil.c
- inflate.c
- infback.c
- inftrees.c
- inffast.c
- crc32.h
- deflate.h
- inffast.h
- inffixed.h
- inflate.h
- inftrees.h
- trees.h
- zconf.h
- zlib.h
- zutil.h)
-
-if(HAVE_ZLIB)
-set(Z_SOURCE zlib-helper.c)
-set(Z_LIBS -lz)
-else()
-set(Z_SOURCE zlib-helper.c ${ZLIB_SOURCES})
-set(Z_LIBS)
-endif()
-
-set(libMonoPosixHelper_la_SOURCES
- ${MPH_SOURCE}
- ${Z_SOURCE}
- ${MINIZIP_SOURCE})
-
-set(libMonoPosixHelper_la_LIBADD
- ${MPH_LIBS}
- ${Z_LIBS}
- ${XATTR_LIB})
-
-# set(libMonoPosixHelper_la_LDFLAGS -no-undefined -version-info 1:0:1
-###set(libMonoPosixHelper_la_LDFLAGS -no-undefined -avoid-version)
-###set(libMonoSupportW_la_LDFLAGS -no-undefined -avoid-version)
-
-set(libMonoSupportW_la_SOURCES
- supportw.c
- support-heap.c
- supportw.h)
-
-set(libMonoSupportW_la_LIBADD
- ${GLIB_LIBS})
-
-include_directories(${top_srcdir})
-include_directories(${GLIB2_INCLUDE_DIRS})
-set(CMAKE_C_FLAGS "${CFLAGS} ${CPPFLAGS}")
-link_directories(../mini)
-
-add_library(MonoPosixHelper SHARED ${libMonoPosixHelper_la_SOURCES})
-target_link_libraries(MonoPosixHelper ${libMonoPosixHelper_la_LIBADD})
-
-if(PLATFORM_WIN32)
-else()
-###set(lib_LTLIBRARIES
-### libMonoPosixHelper.la
-### ${SUPPORT})
-endif()
-
-#
-# Use this target to refresh the values in map.[ch]
-#
-add_custom_target(refresh
- COMMAND cp `pkg-config --variable=Programs create-native-map` .
- COMMAND ${top_builddir}/runtime/mono-wrapper create-native-map.exe
- --autoconf-member=d_off
- --autoconf-member=d_reclen
- --autoconf-member=d_type
- --exclude-native-symbol=Mono_Posix_Stdlib_snprintf
- --impl-macro=_GNU_SOURCE --impl-macro=_XOPEN_SOURCE
- --impl-header="<sys/types.h>"
- --impl-header="<sys/stat.h>"
- --autoconf-header="<sys/time.h>"
- --autoconf-header="<sys/poll.h>"
- --autoconf-header="<sys/wait.h>"
- --autoconf-header="<sys/statvfs.h>"
- --autoconf-header="<sys/xattr.h>"
- --autoconf-header="<sys/mman.h>"
- --autoconf-header="<unistd.h>"
- --impl-header="<fcntl.h>"
- --impl-header="<signal.h>"
- --autoconf-header="<poll.h>"
- --autoconf-header="<grp.h>"
- --impl-header="<errno.h>"
- --autoconf-header="<syslog.h>"
- --autoconf-header="<dirent.h>"
- --autoconf-header="<utime.h>"
- --impl-header="<time.h>"
- --impl-header=""mph.h""
- --rename-member=st_atime=st_atime_
- --rename-member=st_ctime=st_ctime_
- --rename-member=st_mtime=st_mtime_
- --rename-namespace=Mono.Unix.Native=Mono.Posix
- --library=MonoPosixHelper
- ${mcs_topdir}/class/lib/net_2_0/Mono.Posix.dll map
-)

0 comments on commit 32340d1

Please sign in to comment.
Something went wrong with that request. Please try again.