-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore submodules for less widely available libraries.
- Loading branch information
Showing
26 changed files
with
619 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,48 @@ | ||
[submodule "libraries/pugixml"] | ||
path = libraries/pugixml | ||
url = https://github.com/zeux/pugixml.git | ||
[submodule "libraries/libbinrec"] | ||
path = libraries/libbinrec | ||
url = https://github.com/decaf-emu/libbinrec.git | ||
[submodule "libraries/spdlog"] | ||
path = libraries/spdlog | ||
url = https://github.com/gabime/spdlog.git | ||
[submodule "libraries/cereal"] | ||
path = libraries/cereal | ||
url = https://github.com/USCiLab/cereal.git | ||
[submodule "libraries/ovsocket"] | ||
path = libraries/ovsocket | ||
url = https://github.com/exjam/ovsocket.git | ||
[submodule "libraries/gsl-lite"] | ||
path = libraries/gsl-lite | ||
url = https://github.com/decaf-emu/gsl-lite.git | ||
[submodule "libraries/addrlib"] | ||
path = libraries/addrlib | ||
url = https://github.com/decaf-emu/addrlib.git | ||
[submodule "libraries/excmd"] | ||
path = libraries/excmd | ||
url = https://github.com/exjam/excmd | ||
[submodule "libraries/imgui"] | ||
path = libraries/imgui | ||
url = https://github.com/ocornut/imgui.git | ||
[submodule "libraries/cnl"] | ||
path = libraries/cnl | ||
url = https://github.com/decaf-emu/cnl.git | ||
[submodule "libraries/catch"] | ||
path = libraries/catch | ||
url = https://github.com/philsquared/Catch.git | ||
[submodule "libraries/cpptoml"] | ||
path = libraries/cpptoml | ||
url = https://github.com/decaf-emu/cpptoml.git | ||
[submodule "libraries/cpp-peglib"] | ||
path = libraries/cpp-peglib | ||
url = https://github.com/yhirose/cpp-peglib.git | ||
[submodule "libraries/fmt"] | ||
path = libraries/fmt | ||
url = https://github.com/fmtlib/fmt.git | ||
[submodule "libraries/glslang"] | ||
path = libraries/glslang | ||
url = https://github.com/KhronosGroup/glslang.git | ||
[submodule "libraries/qtads"] | ||
path = libraries/qtads | ||
url = https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying | ||
# file Copyright.txt or https://cmake.org/licensing for details. | ||
# | ||
# This is a slight edited version of FindLIBUV.cmake :) | ||
|
||
#[=======================================================================[.rst: | ||
FindCARES | ||
--------- | ||
|
||
Find c-ares includes and library. | ||
|
||
Imported Targets | ||
^^^^^^^^^^^^^^^^ | ||
|
||
An :ref:`imported target <Imported targets>` named | ||
``CARES::CARES`` is provided if c-ares has been found. | ||
|
||
Result Variables | ||
^^^^^^^^^^^^^^^^ | ||
|
||
This module defines the following variables: | ||
|
||
``CARES_FOUND`` | ||
True if c-ares was found, false otherwise. | ||
``CARES_INCLUDE_DIRS`` | ||
Include directories needed to include c-ares headers. | ||
``CARES_LIBRARIES`` | ||
Libraries needed to link to c-ares. | ||
``CARES_VERSION`` | ||
The version of c-ares found. | ||
``CARES_VERSION_MAJOR`` | ||
The major version of c-ares. | ||
``CARES_VERSION_MINOR`` | ||
The minor version of c-ares. | ||
``CARES_VERSION_PATCH`` | ||
The patch version of c-ares. | ||
|
||
Cache Variables | ||
^^^^^^^^^^^^^^^ | ||
|
||
This module uses the following cache variables: | ||
|
||
``CARES_LIBRARY`` | ||
The location of the c-ares library file. | ||
``CARES_INCLUDE_DIR`` | ||
The location of the c-ares include directory containing ``ares.h``. | ||
|
||
The cache variables should not be used by project code. | ||
They may be set by end users to point at c-ares components. | ||
#]=======================================================================] | ||
|
||
set(CARES_NAMES ${CARES_NAMES} cares) | ||
|
||
#----------------------------------------------------------------------------- | ||
find_library(CARES_LIBRARY | ||
NAMES ${CARES_NAMES} | ||
) | ||
mark_as_advanced(CARES_LIBRARY) | ||
|
||
find_path(CARES_INCLUDE_DIR | ||
NAMES ares.h | ||
) | ||
mark_as_advanced(CARES_INCLUDE_DIR) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Extract version number if possible. | ||
set(_CARES_H_REGEX "#[ \t]*define[ \t]+ARES_VERSION_(MAJOR|MINOR|PATCH)[ \t]+[0-9]+") | ||
if(CARES_INCLUDE_DIR AND EXISTS "${CARES_INCLUDE_DIR}/ares_version.h") | ||
file(STRINGS "${CARES_INCLUDE_DIR}/ares_version.h" _CARES_H REGEX "${_CARES_H_REGEX}") | ||
else() | ||
set(_CARES_H "") | ||
endif() | ||
foreach(c MAJOR MINOR PATCH) | ||
if(_CARES_H MATCHES "#[ \t]*define[ \t]+ARES_VERSION_${c}[ \t]+([0-9]+)") | ||
set(_CARES_VERSION_${c} "${CMAKE_MATCH_1}") | ||
else() | ||
unset(_CARES_VERSION_${c}) | ||
endif() | ||
endforeach() | ||
if(DEFINED _CARES_VERSION_MAJOR AND DEFINED _CARES_VERSION_MINOR) | ||
set(CARES_VERSION_MAJOR "${_CARES_VERSION_MAJOR}") | ||
set(CARES_VERSION_MINOR "${_CARES_VERSION_MINOR}") | ||
set(CARES_VERSION "${CARES_VERSION_MAJOR}.${CARES_VERSION_MINOR}") | ||
if(DEFINED _CARES_VERSION_PATCH) | ||
set(CARES_VERSION_PATCH "${_CARES_VERSION_PATCH}") | ||
set(CARES_VERSION "${CARES_VERSION}.${CARES_VERSION_PATCH}") | ||
else() | ||
unset(CARES_VERSION_PATCH) | ||
endif() | ||
else() | ||
set(CARES_VERSION_MAJOR "") | ||
set(CARES_VERSION_MINOR "") | ||
set(CARES_VERSION_PATCH "") | ||
set(CARES_VERSION "") | ||
endif() | ||
unset(_CARES_VERSION_MAJOR) | ||
unset(_CARES_VERSION_MINOR) | ||
unset(_CARES_VERSION_PATCH) | ||
unset(_CARES_H_REGEX) | ||
unset(_CARES_H) | ||
|
||
#----------------------------------------------------------------------------- | ||
include(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(CARES | ||
FOUND_VAR CARES_FOUND | ||
REQUIRED_VARS CARES_LIBRARY CARES_INCLUDE_DIR | ||
VERSION_VAR CARES_VERSION | ||
) | ||
set(CARES_FOUND ${CARES_FOUND}) | ||
|
||
#----------------------------------------------------------------------------- | ||
# Provide documented result variables and targets. | ||
if(CARES_FOUND) | ||
set(CARES_INCLUDE_DIRS ${CARES_INCLUDE_DIR}) | ||
set(CARES_LIBRARIES ${CARES_LIBRARY}) | ||
if(NOT TARGET CARES::CARES) | ||
add_library(CARES::CARES UNKNOWN IMPORTED) | ||
set_target_properties(CARES::CARES PROPERTIES | ||
IMPORTED_LOCATION "${CARES_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${CARES_INCLUDE_DIRS}" | ||
) | ||
endif() | ||
endif() |
Oops, something went wrong.