git-svn-id: svn://db.shs.com.ru/pip@186 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-03-02 08:09:01 +00:00
parent 0d77d3b425
commit 741615b9d3
11 changed files with 104 additions and 19 deletions

View File

@@ -35,7 +35,8 @@ option(ICU "Unicode support" 1)
option(USB "USB support" 0)
option(STL "Building with STL containers" 0)
option(CRYPT "Crypt support" 0)
option(INTROSPECTION "Build with introspection" 1)
option(INTROSPECTION_CONTAINERS "Build with containers introspection" 0)
option(INTROSPECTION_THREADS "Build with threads introspection" 0)
option(LIB "System install" 1)
option(DEBUG "Build with -g3" 0)
set(CMAKE_BUILD_TYPE "Release")
@@ -141,13 +142,21 @@ else ()
endif ()
# Check if PIP should be built with introspection
if (INTROSPECTION)
message(STATUS "Building with introspection")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_INTROSPECTION")
list(APPEND LIBS sodium)
# Check if PIP should be built with containers introspection
if (INTROSPECTION_CONTAINERS)
message(STATUS "Building with containers introspection")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_INTROSPECTION_CONTAINERS")
else ()
message(STATUS "Building without introspection")
message(STATUS "Building without containers introspection")
endif ()
# Check if PIP should be built with threads introspection
if (INTROSPECTION_THREADS)
message(STATUS "Building with threads introspection")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DPIP_INTROSPECTION_THREADS")
else ()
message(STATUS "Building without threads introspection")
endif ()