-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 446ce13
Showing
2,265 changed files
with
333,625 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
cmake_minimum_required(VERSION 3.3) | ||
|
||
project(BlastAll CXX) | ||
|
||
CMAKE_POLICY(SET CMP0057 NEW) # Enable IN_LIST | ||
|
||
IF(NOT DEFINED BLAST_ROOT_DIR) | ||
|
||
STRING(REPLACE "\\" "/" BRD_TEMP $ENV{BLAST_ROOT_DIR}) | ||
|
||
# This env variable is set by GenerateProjects.bat, and is no longer available when CMake rebuilds, so this stores it in the cache | ||
SET(BLAST_ROOT_DIR ${BRD_TEMP} CACHE INTERNAL "Root of the Blast source tree") | ||
|
||
ENDIF() | ||
|
||
IF(NOT EXISTS ${BLAST_ROOT_DIR}) | ||
MESSAGE(FATAL_ERROR "BLAST_ROOT_DIR environment variable wasn't set or was invalid.") | ||
ENDIF() | ||
|
||
|
||
STRING(REPLACE "\\" "/" PMPR_TEMP $ENV{PM_PACKAGES_ROOT} ) | ||
|
||
SET(GW_DEPS_ROOT ${PMPR_TEMP}) | ||
|
||
STRING(REPLACE "\\" "/" CMP_TEMP "${BLAST_ROOT_DIR}/sdk/compiler/cmake/modules/") | ||
|
||
# Add the project specific CMake modules to the module path | ||
LIST(APPEND CMAKE_MODULE_PATH ${CMP_TEMP}) | ||
|
||
IF(NOT DEFINED CMAKEMODULES_VERSION) | ||
SET(CMAKEMODULES_VERSION $ENV{PM_CMakeModules_VERSION} CACHE INTERNAL "CMakeModules version from generation batch") | ||
ENDIF() | ||
|
||
#TODO: More elegance | ||
IF(NOT EXISTS ${GW_DEPS_ROOT}/CMakeModules/${CMAKEMODULES_VERSION}) | ||
MESSAGE(FATAL_ERROR "Could not find CMakeModules at ${GW_DEPS_ROOT}") | ||
ENDIF() | ||
|
||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${GW_DEPS_ROOT}/CMakeModules/${CMAKEMODULES_VERSION}") | ||
|
||
MESSAGE("Module path:" ${CMAKE_MODULE_PATH}) | ||
|
||
|
||
IF(CMAKE_CONFIGURATION_TYPES) | ||
SET(CMAKE_CONFIGURATION_TYPES debug profile checked release) | ||
SET(CMAKE_CONFIGURATION_TYPES "${CMAKE_CONFIGURATION_TYPES}" CACHE STRING | ||
"Reset config to what we need" | ||
FORCE) | ||
|
||
SET(CMAKE_SHARED_LINKER_FLAGS_CHECKED "") | ||
SET(CMAKE_SHARED_LINKER_FLAGS_PROFILE "") | ||
|
||
SET(CMAKE_EXE_LINKER_FLAGS_CHECKED "") | ||
SET(CMAKE_EXE_LINKER_FLAGS_PROFILE "") | ||
|
||
ENDIF() | ||
|
||
# Default to appending "DEBUG", "PROFILE", etc to produced artifacts | ||
IF(NOT DEFINED APPEND_CONFIG_NAME) | ||
SET(APPEND_CONFIG_NAME ON) | ||
ENDIF() | ||
|
||
IF (APPEND_CONFIG_NAME) | ||
MESSAGE("Appending config to output names") | ||
|
||
SET(CMAKE_DEBUG_POSTFIX "DEBUG") | ||
SET(CMAKE_PROFILE_POSTFIX "PROFILE") | ||
SET(CMAKE_CHECKED_POSTFIX "CHECKED") | ||
SET(CMAKE_RELEASE_POSTFIX "") | ||
ENDIF() | ||
|
||
INCLUDE(SetOutputPaths) | ||
|
||
# Either have to define a single output path, or each one. | ||
|
||
IF(NOT DEFINED BL_OUTPUT_DIR) | ||
IF (NOT DEFINED BL_LIB_OUTPUT_DIR) | ||
MESSAGE(FATAL_ERROR "BL_LIB_OUTPUT_DIR not defined - Define either BL_OUTPUT_DIR or BL_LIB_OUTPUT_DIR and BL_DLL_OUTPUT_DIR and BL_EXE_OUTPUT_DIR") | ||
ENDIF() | ||
|
||
IF (NOT DEFINED BL_DLL_OUTPUT_DIR) | ||
MESSAGE(FATAL_ERROR "BL_DLL_OUTPUT_DIR not defined - Define either BL_OUTPUT_DIR or BL_LIB_OUTPUT_DIR and BL_DLL_OUTPUT_DIR and BL_EXE_OUTPUT_DIR") | ||
ENDIF() | ||
|
||
IF (NOT DEFINED BL_EXE_OUTPUT_DIR) | ||
MESSAGE(FATAL_ERROR "BL_EXE_OUTPUT_DIR not defined - Define either BL_OUTPUT_DIR or BL_LIB_OUTPUT_DIR and BL_DLL_OUTPUT_DIR and BL_EXE_OUTPUT_DIR") | ||
ENDIF() | ||
|
||
SetLibOutputPath(${BL_LIB_OUTPUT_DIR}) | ||
SetDllOutputPath(${BL_DLL_OUTPUT_DIR}) | ||
SetExeOutputPath(${BL_EXE_OUTPUT_DIR}) | ||
ELSE() | ||
SetSingleOutputPath(${BL_OUTPUT_DIR}) | ||
ENDIF() | ||
|
||
SET(PROJECT_CMAKE_FILES_DIR compiler/cmake/) | ||
|
||
# These projects are common to all platforms | ||
ADD_SUBDIRECTORY(${BLAST_ROOT_DIR}/sdk "${CMAKE_CURRENT_BINARY_DIR}/blast_bin") | ||
ADD_SUBDIRECTORY(${BLAST_ROOT_DIR}/test "${CMAKE_CURRENT_BINARY_DIR}/test_bin") | ||
|
||
# Include the platform specific configuration | ||
INCLUDE(${PROJECT_CMAKE_FILES_DIR}${TARGET_BUILD_PLATFORM}/CMakeLists.txt) |
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,47 @@ | ||
@echo off | ||
|
||
echo ############################################################################################# | ||
echo Starting %~n0 %date% %time% | ||
echo ############################################################################################# | ||
|
||
echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% | ||
|
||
if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 | ||
|
||
IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED | ||
|
||
REM Now set up the CMake command from PM_PACKAGES_ROOT | ||
|
||
SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe | ||
|
||
echo "Cmake: %CMAKECMD%" | ||
|
||
|
||
REM Generate projects here | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2013 Win32" | ||
|
||
SET CMAKE_OUTPUT_DIR=compiler\vc12win32-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR% -G "Visual Studio 12 2013" -AWin32 -DTARGET_BUILD_PLATFORM=Windows -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc12win32-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win32-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win32-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
|
||
GOTO :End | ||
|
||
:PM_PACKAGES_ROOT_UNDEFINED | ||
ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. | ||
PAUSE | ||
GOTO END | ||
|
||
:DONT_RUN_STEP_2 | ||
ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead | ||
PAUSE | ||
GOTO END | ||
|
||
:End |
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,47 @@ | ||
@echo off | ||
|
||
echo ############################################################################################# | ||
echo Starting %~n0 %date% %time% | ||
echo ############################################################################################# | ||
|
||
echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% | ||
|
||
if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 | ||
|
||
IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED | ||
|
||
REM Now set up the CMake command from PM_PACKAGES_ROOT | ||
|
||
SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe | ||
|
||
echo "Cmake: %CMAKECMD%" | ||
|
||
|
||
REM Generate projects here | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2013 Win64" | ||
|
||
SET CMAKE_OUTPUT_DIR=compiler\vc12win64-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR% -G "Visual Studio 12 2013" -Ax64 -DTARGET_BUILD_PLATFORM=Windows -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc12win64-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win64-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win64-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
|
||
GOTO :End | ||
|
||
:PM_PACKAGES_ROOT_UNDEFINED | ||
ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. | ||
PAUSE | ||
GOTO END | ||
|
||
:DONT_RUN_STEP_2 | ||
ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead | ||
PAUSE | ||
GOTO END | ||
|
||
:End |
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,47 @@ | ||
@echo off | ||
|
||
echo ############################################################################################# | ||
echo Starting %~n0 %date% %time% | ||
echo ############################################################################################# | ||
|
||
echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% | ||
|
||
if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 | ||
|
||
IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED | ||
|
||
REM Now set up the CMake command from PM_PACKAGES_ROOT | ||
|
||
SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe | ||
|
||
echo "Cmake: %CMAKECMD%" | ||
|
||
|
||
REM Generate projects here | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2015 Win32" | ||
|
||
SET CMAKE_OUTPUT_DIR=compiler\vc14win32-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR% -G "Visual Studio 14 2015" -AWin32 -DTARGET_BUILD_PLATFORM=Windows -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc14win32-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win32-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win32-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
|
||
GOTO :End | ||
|
||
:PM_PACKAGES_ROOT_UNDEFINED | ||
ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. | ||
PAUSE | ||
GOTO END | ||
|
||
:DONT_RUN_STEP_2 | ||
ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead | ||
PAUSE | ||
GOTO END | ||
|
||
:End |
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,47 @@ | ||
@echo off | ||
|
||
echo ############################################################################################# | ||
echo Starting %~n0 %date% %time% | ||
echo ############################################################################################# | ||
|
||
echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% | ||
|
||
if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 | ||
|
||
IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED | ||
|
||
REM Now set up the CMake command from PM_PACKAGES_ROOT | ||
|
||
SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe | ||
|
||
echo "Cmake: %CMAKECMD%" | ||
|
||
|
||
REM Generate projects here | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2015 Win64" | ||
|
||
SET CMAKE_OUTPUT_DIR=compiler\vc14win64-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR% -G "Visual Studio 14 2015" -Ax64 -DTARGET_BUILD_PLATFORM=Windows -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc14win64-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win64-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win64-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
|
||
GOTO :End | ||
|
||
:PM_PACKAGES_ROOT_UNDEFINED | ||
ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. | ||
PAUSE | ||
GOTO END | ||
|
||
:DONT_RUN_STEP_2 | ||
ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead | ||
PAUSE | ||
GOTO END | ||
|
||
:End |
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,84 @@ | ||
@echo off | ||
|
||
echo ############################################################################################# | ||
echo Starting %~n0 %date% %time% | ||
echo ############################################################################################# | ||
|
||
echo PM_CMakeModules_VERSION %PM_CMakeModules_VERSION% | ||
|
||
if NOT DEFINED PM_CMakeModules_VERSION GOTO DONT_RUN_STEP_2 | ||
|
||
IF NOT DEFINED PM_PACKAGES_ROOT GOTO PM_PACKAGES_ROOT_UNDEFINED | ||
|
||
REM Now set up the CMake command from PM_PACKAGES_ROOT | ||
|
||
SET CMAKECMD=%PM_cmake_PATH%\bin\cmake.exe | ||
|
||
echo "Cmake: %CMAKECMD%" | ||
|
||
|
||
REM Generate projects here | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2015 Win64 TESTS" | ||
|
||
SET CMAKE_OUTPUT_DIR=test\compiler\vc14win64-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR%\test -G "Visual Studio 14 2015" -Ax64 -DTARGET_BUILD_PLATFORM=Windows -DSTATIC_WINCRT=1 -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc14win64-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win64-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win64-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2015 Win32 TESTS" | ||
|
||
SET CMAKE_OUTPUT_DIR=test\compiler\vc14win32-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR%\test -G "Visual Studio 14 2015" -AWin32 -DTARGET_BUILD_PLATFORM=Windows -DSTATIC_WINCRT=1 -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc14win32-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win32-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc14win32-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2013 Win32 TESTS" | ||
|
||
SET CMAKE_OUTPUT_DIR=test\compiler\vc12win32-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR%\test -G "Visual Studio 12 2013" -AWin32 -DTARGET_BUILD_PLATFORM=Windows -DSTATIC_WINCRT=1 -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc12win32-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win32-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win32-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
echo. | ||
echo ############################################################################################# | ||
ECHO "Creating VS2013 Win64 TESTS" | ||
|
||
SET CMAKE_OUTPUT_DIR=test\compiler\vc12win64-cmake\ | ||
IF EXIST %CMAKE_OUTPUT_DIR% rmdir /S /Q %CMAKE_OUTPUT_DIR% | ||
mkdir %CMAKE_OUTPUT_DIR% | ||
pushd %CMAKE_OUTPUT_DIR% | ||
%CMAKECMD% %BLAST_ROOT_DIR%\test -G "Visual Studio 12 2013" -Ax64 -DTARGET_BUILD_PLATFORM=Windows -DSTATIC_WINCRT=1 -DBL_LIB_OUTPUT_DIR=%BLAST_ROOT_DIR%\lib\vc12win64-cmake\ -DBL_DLL_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win64-cmake\ -DBL_EXE_OUTPUT_DIR=%BLAST_ROOT_DIR%\bin\vc12win64-cmake\ | ||
popd | ||
if %ERRORLEVEL% NEQ 0 exit /b %ERRORLEVEL% | ||
|
||
|
||
GOTO :End | ||
|
||
:PM_PACKAGES_ROOT_UNDEFINED | ||
ECHO PM_PACKAGES_ROOT has to be defined, pointing to the root of the dependency tree. | ||
PAUSE | ||
GOTO END | ||
|
||
:DONT_RUN_STEP_2 | ||
ECHO Don't run this batch file directly. Run generate_projects_(platform).bat instead | ||
PAUSE | ||
GOTO END | ||
|
||
:End |
Oops, something went wrong.