[Windows] Add support for code signing the final binaries.
authorlazydodo <github@lazydodo.com>
Wed, 31 Aug 2016 12:26:05 +0000 (06:26 -0600)
committerlazydodo <github@lazydodo.com>
Wed, 31 Aug 2016 12:26:23 +0000 (06:26 -0600)
commit8fb9f2dbe9cb69476bf1f98c8503e5acd446c5b0
treeab93752f669309bd0b4774a7dd55eace1f95e919
parentb06a70323c1ae8ead6e1249b70a201fff36c660f
[Windows] Add support for code signing the final binaries.

The option is controlled with the WITH_WINDOWS_CODESIGN option and needs:

- Signtool must be found on the system, the standard windows sdk folders will be searched for it.
- The path to the pfx file (WINDOWS_CODESIGN_PFX)
- The password for the pfx , this can either be set by the WINDOWS_CODESIGN_PFX_PASSWORD variable but given that ends up in CMakeCache.txt (which might be undesirable) there is a backup option of setting the PFXPASSWORD environment variable on the system.

Reviewers: sergey, juicyfruit

Reviewed By: juicyfruit

Tags: #bf_blender, #platform:_windows

Differential Revision: https://developer.blender.org/D2182
CMakeLists.txt
build_files/cmake/macros.cmake
build_files/cmake/platform/platform_win32_msvc.cmake
source/blenderplayer/CMakeLists.txt
source/creator/CMakeLists.txt