Configure Doxyfile according to the value of USE_OPENGL variable.

This commit is contained in:
weitjong 2013-10-03 17:41:17 +08:00
Родитель 402a027ae4
Коммит 242f317ddd
7 изменённых файлов: 12 добавлений и 10 удалений

Просмотреть файл

@ -717,7 +717,7 @@ EXCLUDE_SYMLINKS = NO
EXCLUDE_PATTERNS = */*API*.cpp \
*/*API*.h \
*/OpenGL/*
*/@EXCLUDE_GRAPHICS_API@/*
# The EXCLUDE_SYMBOLS tag can be used to specify one or more symbol names
# (namespaces, classes, functions, etc.) that should be excluded from the

Просмотреть файл

@ -179,6 +179,17 @@ if (NOT URHO3D_BUILD_TYPE STREQUAL URHO3D_EXPORTS_BUILD_TYPE OR ${CMAKE_SOURCE_D
configure_file (${CMAKE_SOURCE_DIR}/Engine/Urho3D.h.in ${CMAKE_BINARY_DIR}/Engine/Urho3D.h)
endif ()
# Generate platform specific Doxyfile automatically
if (NOT USE_OPENGL EQUAL DOXYFILE_USE_OPENGL OR ${PROJECT_ROOT_DIR}/Docs/Doxyfile.in IS_NEWER_THAN ${PROJECT_ROOT_DIR}/Doxyfile)
set (DOXYFILE_USE_OPENGL ${USE_OPENGL} CACHE INTERNAL "USE_OPENGL flag when Doxyfile was last generated")
if (USE_OPENGL)
set (EXCLUDE_GRAPHICS_API Direct3D9)
else ()
set (EXCLUDE_GRAPHICS_API OpenGL)
endif ()
configure_file (${PROJECT_ROOT_DIR}/Docs/Doxyfile.in ${PROJECT_ROOT_DIR}/Doxyfile)
endif ()
# Reference supported build options that are potentially not being referenced due to platform or build type branching to suppress "unused variable" warning
if (ENABLE_SAMPLES AND ENABLE_EXTRAS AND ENABLE_TOOLS AND ENABLE_MINIDUMPS AND ENABLE_SAFE_LUA AND USE_MKLINK AND USE_STATIC_RUNTIME AND SCP_TO_TARGET AND ANDROID_ABI)
endif()

Просмотреть файл

@ -46,6 +46,5 @@ if "%use_mklink%" == "1" (
if exist android-Build\CMakeCache.txt. del /F android-Build\CMakeCache.txt
if exist android-Build\CMakeFiles. rd /S /Q android-Build\CMakeFiles
)
cmake -E copy_if_different Docs\Doxyfile.in Doxyfile
echo on
cmake -E chdir %build% cmake -G "Unix Makefiles" -DANDROID=1 -DCMAKE_TOOLCHAIN_FILE=%source%\CMake\Toolchains\android.toolchain.cmake -DLIBRARY_OUTPUT_PATH_ROOT=. %* %source%

Просмотреть файл

@ -119,9 +119,6 @@ msg "Native build" && cmake -E chdir Build cmake $OPT -G $GENERATOR $PLATFORM $@
[ $ANDROID_NDK ] && msg "Android build" && cmake -E chdir android-Build cmake $OPT -G $GENERATOR -DANDROID=1 -DCMAKE_TOOLCHAIN_FILE=$SOURCE/CMake/Toolchains/android.toolchain.cmake -DLIBRARY_OUTPUT_PATH_ROOT=. $@ $SOURCE && post_cmake android-Build
unset IFS
# Assume GCC user uses OpenGL, comment out below sed if this is not true
sed 's/OpenGL/Direct3D9/g' Docs/Doxyfile.in >Doxyfile
# Create symbolic links in the build directories
if [ $ANDROID_NDK ]; then
for dir in CoreData Data; do

Просмотреть файл

@ -34,9 +34,6 @@ cmake -E make_directory $BUILD
# Create project with the Xcode generator
cmake -E chdir $BUILD cmake -G "Xcode" $@ $SOURCE
# Apple always uses OpenGL
sed 's/OpenGL/Direct3D9/g' Docs/Doxyfile.in >Doxyfile
if [ $1 == "-DIOS=1" ]; then
# Due to a bug in the CMake/Xcode generator where it has wrongly assumed the IOS bundle structure to be the same as MacOSX bundle structure,
# below temporary fix is required in order to solve the auto-linking issue when dependent libraries are changed

Просмотреть файл

@ -22,6 +22,5 @@
@echo off
cmake -E make_directory Build
cmake -E copy_if_different Docs\Doxyfile.in Doxyfile
echo on
cmake -E chdir Build cmake -G "MinGW Makefiles" %* ..\Source

Просмотреть файл

@ -32,6 +32,5 @@ if not "%1" == "" (
shift
goto loop
)
cmake -E copy_if_different Docs\Doxyfile.in Doxyfile
echo on
cmake -E chdir Build cmake -G "Visual Studio %version%%arch%" %* ..\Source