X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=CMakeLists.txt;h=3aaec6e82779d2e6d2b8c9dbbcb3dff5fc808b7b;hb=f9c5da243d6b96b259f410ae61bbe971e9d7d490;hp=1d5c99fe80e66df09d0f8f571e9057f75acbb2de;hpb=9d27a54b0381610c30964880a5fdd4c27bb6e732;p=apitrace diff --git a/CMakeLists.txt b/CMakeLists.txt index 1d5c99f..3aaec6e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,7 @@ include (CheckCXXCompilerFlag) if (WIN32) # http://msdn.microsoft.com/en-us/library/aa383745.aspx - add_definitions (-D_WIN32_WINNT=0x0500 -DWINVER=0x0500) + add_definitions (-D_WIN32_WINNT=0x0501 -DWINVER=0x0501) else (WIN32) CHECK_CXX_COMPILER_FLAG("-fvisibility=hidden" CXX_COMPILER_FLAG_VISIBILITY) if (CXX_COMPILER_FLAG_VISIBILITY) @@ -92,13 +92,15 @@ if (MSVC) add_definitions (-D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_WARNINGS) add_definitions (-D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS) add_definitions (-W4) + # XXX: it's safer to use ssize_t everywhere instead of disabling warning + add_definitions (-wd4018) # signed/unsigned mismatch add_definitions (-wd4063) # not a valid value for switch of enum + add_definitions (-wd4100) # unreferenced formal parameter add_definitions (-wd4127) # conditional expression is constant add_definitions (-wd4244) # conversion from 'type1' to 'type2', possible loss of data add_definitions (-wd4505) # unreferenced local function has been removed + add_definitions (-wd4512) # assignment operator could not be generated add_definitions (-wd4800) # forcing value to bool 'true' or 'false' (performance warning) - # XXX: it's safer to use ssize_t everywhere instead of disabling warning - add_definitions (-wd4018) # signed/unsigned mismatch # Use static runtime # http://www.cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F @@ -237,17 +239,6 @@ include_directories ( ${CMAKE_CURRENT_SOURCE_DIR}/common ) -add_custom_command ( - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp - COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/glproc.py > ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp - DEPENDS glproc.py dispatch.py specs/wglapi.py specs/glxapi.py specs/cglapi.py specs/eglapi.py specs/glesapi.py specs/glapi.py specs/gltypes.py specs/stdapi.py -) - -# Wrap glproc.hpp as a target to prevent the command from being executed -# multiple times simulatenously, when the targets that depend on it are built -# in parallel. -add_custom_target (glproc DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/glproc.hpp) - if (WIN32) set (os os_win32.cpp) set (glws_os glws_wgl.cpp) @@ -296,14 +287,10 @@ endif () ############################################################################## -# API tracers +# Sub-directories +add_subdirectory (dispatch) add_subdirectory (wrappers) - - -############################################################################## -# API retracers - add_subdirectory (retrace)