blob: 321afa812d2c56d2ad690e9ad0dd9af6f114cad6 [file] [log] [blame]
# -----------------------------------------------------------------------------
# Find common packages (used by all ports)
# -----------------------------------------------------------------------------
find_package(BISON 2.1 REQUIRED)
if (!APPLE)
find_package(FLEX 2.5.34 REQUIRED)
endif ()
# TODO Enforce version requirement for gperf
find_package(Gperf 3.0.1 REQUIRED)
# TODO Enforce version requirement for perl
find_package(Perl 5.10.0 REQUIRED)
find_package(PythonInterp 2.7.0 REQUIRED)
# We cannot check for RUBY_FOUND because it is set only when the full package is installed and
# the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
# for finding only the Ruby interpreter.
find_package(Ruby 1.9)
if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 1.9)
message(FATAL_ERROR "Ruby 1.9 or higher is required.")
endif ()
include(WebKitMacros)
include(WebKitFS)
include(WebKitHelpers)
include(WebKitFeatures)
include(OptionsCommon)
include(Options${PORT})
CREATE_CONFIGURATION_HEADER()