diff options
| author | Marvin W <git@larma.de> | 2025-04-05 12:54:09 +0200 |
|---|---|---|
| committer | Marvin W <git@larma.de> | 2025-04-06 13:58:06 +0200 |
| commit | 12c0d27814bf6079b7a86da7796fb89271c416eb (patch) | |
| tree | 1bbae1c8fd7f7792d10788a82c778bf1770a43c0 /cmake/FindVala.cmake | |
| parent | e434f51103430b0692ff5d330199c69f67e22744 (diff) | |
Drop CMake support
Diffstat (limited to 'cmake/FindVala.cmake')
| -rw-r--r-- | cmake/FindVala.cmake | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/cmake/FindVala.cmake b/cmake/FindVala.cmake deleted file mode 100644 index 91bfe86d..00000000 --- a/cmake/FindVala.cmake +++ /dev/null @@ -1,73 +0,0 @@ -## -# Find module for the Vala compiler (valac) -# -# This module determines wheter a Vala compiler is installed on the current -# system and where its executable is. -# -# Call the module using "find_package(Vala) from within your CMakeLists.txt. -# -# The following variables will be set after an invocation: -# -# VALA_FOUND Whether the vala compiler has been found or not -# VALA_EXECUTABLE Full path to the valac executable if it has been found -# VALA_VERSION Version number of the available valac -# VALA_USE_FILE Include this file to define the vala_precompile function -## - -## -# Copyright 2009-2010 Jakob Westhoff. All rights reserved. -# Copyright 2010-2011 Daniel Pfeifer -# -# Redistribution and use in source and binary forms, with or without -# modification, are permitted provided that the following conditions are met: -# -# 1. Redistributions of source code must retain the above copyright notice, -# this list of conditions and the following disclaimer. -# -# 2. Redistributions in binary form must reproduce the above copyright notice, -# this list of conditions and the following disclaimer in the documentation -# and/or other materials provided with the distribution. -# -# THIS SOFTWARE IS PROVIDED BY JAKOB WESTHOFF ``AS IS'' AND ANY EXPRESS OR -# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO -# EVENT SHALL JAKOB WESTHOFF OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, -# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT -# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE -# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF -# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -# -# The views and conclusions contained in the software and documentation are those -# of the authors and should not be interpreted as representing official policies, -# either expressed or implied, of Jakob Westhoff -## - -# Search for the valac executable in the usual system paths -# Some distributions rename the valac to contain the major.minor in the binary name -find_package(GObject REQUIRED) -find_program(VALA_EXECUTABLE NAMES valac valac-0.38 valac-0.36 valac-0.34 valac-0.32) -mark_as_advanced(VALA_EXECUTABLE) - -# Determine the valac version -if(VALA_EXECUTABLE) - file(TO_NATIVE_PATH "${VALA_EXECUTABLE}" VALA_EXECUTABLE) - execute_process(COMMAND ${VALA_EXECUTABLE} "--version" - OUTPUT_VARIABLE VALA_VERSION - OUTPUT_STRIP_TRAILING_WHITESPACE) - string(REPLACE "Vala " "" VALA_VERSION "${VALA_VERSION}") -endif(VALA_EXECUTABLE) - -# Handle the QUIETLY and REQUIRED arguments, which may be given to the find call. -# Furthermore set VALA_FOUND to TRUE if Vala has been found (aka. -# VALA_EXECUTABLE is set) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(Vala - FOUND_VAR VALA_FOUND - REQUIRED_VARS VALA_EXECUTABLE - VERSION_VAR VALA_VERSION) - -set(VALA_USE_FILE "${CMAKE_CURRENT_LIST_DIR}/UseVala.cmake") - |
