comparison cinst/CMakeLists.txt @ 1175:e210ecc32d69

(issue128) Rename mozilla process to trustbridge-nss-installer
author Andre Heinecke <andre.heinecke@intevation.de>
date Mon, 22 Sep 2014 11:19:43 +0200
parents fc4e1fe4e4d4
children c8f698ca6355
comparison
equal deleted inserted replaced
1174:7175d117e69a 1175:e210ecc32d69
54 COMMAND strip cinst 54 COMMAND strip cinst
55 ) 55 )
56 endif() 56 endif()
57 57
58 # ---------------------------------------------------------------------- 58 # ----------------------------------------------------------------------
59 # Mozilla nss store specific certificate installer: 59 # trustbridge-nss-installer nss store specific certificate installer:
60 set(MOZILLA_SOURCES 60 set(trustbridge-nss-installer_SOURCES
61 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c 61 ${CMAKE_CURRENT_SOURCE_DIR}/nss-secitemlist.c
62 ${CMAKE_CURRENT_SOURCE_DIR}/mozilla.c 62 ${CMAKE_CURRENT_SOURCE_DIR}/nss-installer.c
63 ) 63 )
64 64
65 if(WIN32 OR NSS_FOUND) 65 if(WIN32 OR NSS_FOUND)
66 include_directories(${NSS_INCLUDE_DIRS}) 66 include_directories(${NSS_INCLUDE_DIRS})
67 add_executable(mozilla ${MOZILLA_SOURCES}) 67 add_executable(trustbridge-nss-installer ${trustbridge-nss-installer_SOURCES})
68 target_link_libraries(mozilla 68 target_link_libraries(trustbridge-nss-installer
69 trustbridge_common 69 trustbridge_common
70 ${POLARSSL_LIBRARIES} 70 ${POLARSSL_LIBRARIES}
71 ${NSS_LIBRARIES} 71 ${NSS_LIBRARIES}
72 ${PROFILING_LIBS}) 72 ${PROFILING_LIBS})
73 set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99") 73 set_target_properties(trustbridge-nss-installer PROPERTIES COMPILE_FLAGS "-std=c99")
74 install(TARGETS mozilla DESTINATION bin) 74 install(TARGETS trustbridge-nss-installer DESTINATION bin)
75 75
76 if (WIN32) 76 if (WIN32)
77 add_custom_command( 77 add_custom_command(
78 TARGET mozilla 78 TARGET trustbridge-nss-installer
79 POST_BUILD 79 POST_BUILD
80 COMMAND ${CMAKE_STRIP} mozilla.exe 80 COMMAND ${CMAKE_STRIP} trustbridge-nss-installer.exe
81 ) 81 )
82 if (NOT RELEASE_BUILD) 82 if (NOT RELEASE_BUILD)
83 add_custom_command( 83 add_custom_command(
84 TARGET mozilla 84 TARGET trustbridge-nss-installer
85 POST_BUILD 85 POST_BUILD
86 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem 86 COMMAND ${OSSLSIGNCODE_EXECUTABLE} sign -certs ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.pem
87 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key 87 -key ${CMAKE_SOURCE_DIR}/ui/tests/data/codesign/codesigning.key
88 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/mozilla.exe 88 -h sha256 -in ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-nss-installer.exe
89 -out ${CMAKE_CURRENT_BINARY_DIR}/mozilla-signed.exe && 89 -out ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-nss-installer-signed.exe &&
90 mv ${CMAKE_CURRENT_BINARY_DIR}/mozilla-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/mozilla.exe 90 mv ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-nss-installer-signed.exe ${CMAKE_CURRENT_BINARY_DIR}/trustbridge-nss-installer.exe
91 ) 91 )
92 endif() 92 endif()
93 else() 93 else()
94 add_custom_command( 94 add_custom_command(
95 TARGET mozilla 95 TARGET trustbridge-nss-installer
96 POST_BUILD 96 POST_BUILD
97 COMMAND strip mozilla 97 COMMAND strip trustbridge-nss-installer
98 ) 98 )
99 endif() 99 endif()
100 else() 100 else()
101 message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!") 101 message(STATUS "WARNING: Could not find nss. trustbridge-nss-installer cert installer will not be build!")
102 endif() 102 endif()

http://wald.intevation.org/projects/trustbridge/