summaryrefslogtreecommitdiffhomepage
path: root/cmake/modules/IntrospectSystem.cmake
diff options
context:
space:
mode:
authorYuichiro MASUI <[email protected]>2012-12-29 05:37:55 +0900
committerYuichiro MASUI <[email protected]>2013-01-03 02:24:15 +0900
commit7c469c0b9dadd1de09fed18c3e5cc551012c38c1 (patch)
treeb79aa703ef7c528896c4f1be8280d0691314008b /cmake/modules/IntrospectSystem.cmake
parenta48fc0d7952ad1f10ae777637269fe6a3f9ad0a2 (diff)
downloadmruby-7c469c0b9dadd1de09fed18c3e5cc551012c38c1.tar.gz
mruby-7c469c0b9dadd1de09fed18c3e5cc551012c38c1.zip
Rebuild CRuby based building script without Makefile
Tested CRuby 1.8.6 and 1.9.3 You can see building configuration in build_config.rb
Diffstat (limited to 'cmake/modules/IntrospectSystem.cmake')
-rw-r--r--cmake/modules/IntrospectSystem.cmake54
1 files changed, 0 insertions, 54 deletions
diff --git a/cmake/modules/IntrospectSystem.cmake b/cmake/modules/IntrospectSystem.cmake
deleted file mode 100644
index 559b884b8..000000000
--- a/cmake/modules/IntrospectSystem.cmake
+++ /dev/null
@@ -1,54 +0,0 @@
-# system capabilities checking
-
-# initial system defaults
-if(CMAKE_COMPILER_IS_GNUCC)
- set(MRUBY_DEFAULT_CFLAGS "-std=gnu99 -Wall -Werror-implicit-function-declaration -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-missing-field-initializers -Wformat=2 -Wstrict-aliasing=2 -Wdisabled-optimization -Wpointer-arith -Wdeclaration-after-statement -Wbad-function-cast -Wcast-align -Wredundant-decls")
- set(CMAKE_C_FLAGS "${MRUBY_DEFAULT_CFLAGS}")
- set(CMAKE_C_FLAGS_DEBUG "-O3 -ggdb")
- set(CMAKE_C_FLAGS_MINSIZEREL "-Os -DNDEBUG")
- set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O3 -g")
- set(CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG")
-
- set(MRUBY_LIBS m)
-else()
- if(MSVC)
- # TODO default MSVC flags
- add_definitions(
- -D_CRT_SECURE_NO_WARNINGS
- -wd4018 # suppress 'signed/unsigned mismatch'
- )
- endif()
-endif()
-
-add_definitions(-DDISABLE_GEMS)
-
-if(MSVC)
- add_definitions(
- -DRUBY_EXPORT # required by oniguruma.h
- )
-endif()
-
-
-# include helpers
-include(CheckIncludeFile)
-include(CheckSymbolExists)
-
-# header checks
-CHECK_INCLUDE_FILE(string.h HAVE_STRING_H)
-if(HAVE_STRING_H)
- add_definitions(-DHAVE_STRING_H)
-endif()
-
-CHECK_INCLUDE_FILE(float.h HAVE_FLOAT_H)
-if(HAVE_FLOAT_H)
- add_definitions(-DHAVE_FLOAT_H)
-endif()
-
-
-# symbol checks
-CHECK_SYMBOL_EXISTS(gettimeofday sys/time.h HAVE_GETTIMEOFDAY)
-if(NOT HAVE_GETTIMEOFDAY)
- add_definitions(-DNO_GETTIMEOFDAY)
-endif()
-
-# vim: ts=2 sts=2 sw=2 et