Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: CMakeLists.txt

Issue 660204: Upgrade to tpm-emulator version 0.7. (Closed)
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ChangeLog » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Software-based Trusted Platform Module (TPM) Emulator
2 # Copyright (C) 2004-2010 Mario Strasser <mast@gmx.net>
3 #
4 # $Id: CMakeLists.txt 424 2010-02-22 16:36:14Z mast $
5
6 project(TPM_Emulator C)
7
8 cmake_minimum_required(VERSION 2.6)
9
10 # enforce out of source build
11 string(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" IS_INSOURCE)
12 if(IS_INSOURCE)
13 message(FATAL_ERROR "${PROJECT_NAME} requires an out of source build.")
14 endif()
15
16 # set project and build version
17 set(${PROJECT_NAME}_VERSION_MAJOR 0)
18 set(${PROJECT_NAME}_VERSION_MINOR 7)
19 string(REGEX REPLACE ".*Revision: ([0-9]+).*" "\\1" ${PROJECT_NAME}_VERSION_BUIL D "$Revision: 424 $")
20
21 # create project configuration
22 if(WIN32)
23 STRING(REGEX REPLACE "\\\\" "/" PROGRAMFILES "$ENV{PROGRAMFILES}/${PROJECT_NAME} ")
24 set(TPM_LOG_FILE "${PROGRAMFILES}/tpmd.log")
25 set(TPM_STORAGE_NAME "${PROGRAMFILES}/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION _MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}")
26 set(TPM_DEVICE_NAME "//./pipe/tpmd:0")
27 elseif(APPLE)
28 set(TPM_SOCKET_NAME "/private/var/run/tpm/tpmd_socket:0")
29 set(TPM_STORAGE_NAME "/private/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VE RSION_MAJOR}_${${PROJECT_NAME}_VERSION_MINOR}")
30 set(TPM_DEVICE_NAME "/dev/tpm")
31 else()
32 set(TPM_SOCKET_NAME "/var/run/tpm/tpmd_socket:0")
33 set(TPM_STORAGE_NAME "/var/lib/tpm/tpm_emulator-1_2_${${PROJECT_NAME}_VERSION_MA JOR}_${${PROJECT_NAME}_VERSION_MINOR}")
34 set(TPM_DEVICE_NAME "/dev/tpm")
35 endif()
36 configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DI R}/config.h)
37 add_definitions(-Wall -Werror -Wextra -Wno-unused-parameter -Wpointer-arith -Wca st-align -Wwrite-strings)
38
39 # configure CPack
40 set(CPACK_PACKAGE_VERSION_MAJOR ${${PROJECT_NAME}_VERSION_MAJOR})
41 set(CPACK_PACKAGE_VERSION_MINOR ${${PROJECT_NAME}_VERSION_MINOR})
42 set(CPACK_SOURCE_PACKAGE_FILE_NAME "tpm_emulator-${CPACK_PACKAGE_VERSION_MAJOR}. ${CPACK_PACKAGE_VERSION_MINOR}")
43 set(CPACK_SOURCE_GENERATOR "TGZ")
44 set(CPACK_SOURCE_IGNORE_FILES ".svn/" "/build/")
45 set(CPACK_GENERATOR "ZIP")
46 set(CPACK_SET_DESTDIR ON)
47 include(CPack)
48
49 # include root directories
50 include_directories(${CMAKE_SOURCE_DIR})
51 include_directories(${CMAKE_BINARY_DIR})
52
53 # add internal libraries
54 add_subdirectory(tpm)
55 add_subdirectory(mtm)
56 add_subdirectory(crypto)
57
58 # add TDDL
59 add_subdirectory(tddl)
60
61 # add kernel modules
62 add_subdirectory(tpmd_dev)
63
64 # add executables
65 add_subdirectory(tpmd)
66
OLDNEW
« no previous file with comments | « no previous file | ChangeLog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698