1 Star 1 Fork 2

libsdl-org/SDL

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.github
VisualC-GDK
VisualC-WinRT
VisualC
Xcode
android-project
build-scripts
cmake
android
test
3rdparty.cmake
CPackProjectConfig.cmake.in
CheckCPUArchitecture.cmake
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
PkgConfigHelper.cmake
SDL3Config.cmake.in
cmake_uninstall.cmake.in
macros.cmake
sdl3.pc.in
sdlchecks.cmake
sdlcompilers.cmake
sdlmanpages.cmake
sdlplatform.cmake
sdltargets.cmake
xxd.py
docs
include
mingw/pkg-support/cmake
src
test
wayland-protocols
.clang-format
.clang-tidy
.editorconfig
.gitignore
.wikiheaders-options
Android.mk
BUGS.txt
CMakeLists.txt
CREDITS.txt
INSTALL.txt
LICENSE.txt
README-SDL.txt
README.md
TODO.txt
WhatsNew.txt
克隆/下载
GetGitRevisionDescription.cmake.in 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
#
# Internal file for GetGitRevisionDescription.cmake
#
# Requires CMake 2.6 or newer (uses the 'function' command)
#
# Original Author:
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright 2009-2012, Iowa State University
# Copyright 2011-2015, Contributors
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# SPDX-License-Identifier: BSL-1.0
set(HEAD_HASH)
file(READ "@HEAD_FILE@" HEAD_CONTENTS LIMIT 1024)
string(STRIP "${HEAD_CONTENTS}" HEAD_CONTENTS)
if(HEAD_CONTENTS MATCHES "ref")
# named branch
string(REPLACE "ref: " "" HEAD_REF "${HEAD_CONTENTS}")
if(EXISTS "@GIT_DIR@/${HEAD_REF}")
configure_file("@GIT_DIR@/${HEAD_REF}" "@GIT_DATA@/head-ref" COPYONLY)
else()
configure_file("@GIT_DIR@/packed-refs" "@GIT_DATA@/packed-refs" COPYONLY)
file(READ "@GIT_DATA@/packed-refs" PACKED_REFS)
if(${PACKED_REFS} MATCHES "([0-9a-z]*) ${HEAD_REF}")
set(HEAD_HASH "${CMAKE_MATCH_1}")
endif()
endif()
else()
# detached HEAD
configure_file("@GIT_DIR@/HEAD" "@GIT_DATA@/head-ref" COPYONLY)
endif()
if(NOT HEAD_HASH)
file(READ "@GIT_DATA@/head-ref" HEAD_HASH LIMIT 1024)
string(STRIP "${HEAD_HASH}" HEAD_HASH)
endif()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/libsdl-org/SDL.git
git@gitee.com:libsdl-org/SDL.git
libsdl-org
SDL
SDL
main

搜索帮助