Skip to content
Bitcoin Roots

v29.4-roots.2 · Commit 1: [PATCH 01/21] build: port platform and dependency support

cmake/module/Maintenance.cmake

Before: cmake/module/Maintenance.cmake · After: cmake/module/Maintenance.cmake

File metadata
index 59e26d1bc110d0e820e71e55c62a57ea15bd10d5..2ece152bf081e3355da0c43eb69b92d32c4fdaea 100644

Download original patch · Release notes

Diff rows 1–35 of 35. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. The two line-number columns refer to before and after.

cmake/module/Maintenance.cmake CHANGED
@@ -59,6 +59,7 @@ function(add_windows_deploy_target)
59
59
  COMMAND ${CMAKE_STRIP} $<TARGET_FILE:bitcoin-util> -o ${PROJECT_BINARY_DIR}/release/$<TARGET_FILE_NAME:bitcoin-util>
60
60
  COMMAND ${CMAKE_STRIP} $<TARGET_FILE:test_bitcoin> -o ${PROJECT_BINARY_DIR}/release/$<TARGET_FILE_NAME:test_bitcoin>
61
61
  COMMAND makensis -V2 ${PROJECT_BINARY_DIR}/bitcoin-win64-setup.nsi
62
+ DEPENDS generate_nsis_images
62
63
  VERBATIM
63
64
  )
64
65
  add_custom_target(deploy DEPENDS ${PROJECT_BINARY_DIR}/bitcoin-win64-setup.exe)
@@ -73,11 +74,20 @@ function(add_macos_deploy_target)
73
74
  file(CONFIGURE OUTPUT ${macos_app}/Contents/PkgInfo CONTENT "APPL????")
74
75
  # Populate Contents/Resources subdirectory.
75
76
  file(CONFIGURE OUTPUT ${macos_app}/Contents/Resources/empty.lproj CONTENT "")
76
- configure_file(${PROJECT_SOURCE_DIR}/src/qt/res/icons/bitcoin.icns ${macos_app}/Contents/Resources/bitcoin.icns NO_SOURCE_PERMISSIONS COPYONLY)
77
77
  file(CONFIGURE OUTPUT ${macos_app}/Contents/Resources/Base.lproj/InfoPlist.strings
78
78
  CONTENT "{ CFBundleDisplayName = \"@CLIENT_NAME@\"; CFBundleName = \"@CLIENT_NAME@\"; }"
79
79
  )
80
80
 
81
+ set(bitcoin_icns ${PROJECT_BINARY_DIR}/src/qt/res/rendered_icons/bitcoin.icns)
82
+ set(bitcoin_icns_dest ${macos_app}/Contents/Resources/bitcoin.icns)
83
+ add_custom_command(
84
+ OUTPUT ${bitcoin_icns_dest}
85
+ COMMAND ${CMAKE_COMMAND} -E copy ${bitcoin_icns} ${bitcoin_icns_dest}
86
+ DEPENDS generate_icns
87
+ VERBATIM
88
+ )
89
+ add_custom_target(bitcoin_icns_deployed DEPENDS "${bitcoin_icns_dest}")
90
+
81
91
  add_custom_command(
82
92
  OUTPUT ${PROJECT_BINARY_DIR}/${macos_app}/Contents/MacOS/Bitcoin-Qt
83
93
  COMMAND ${CMAKE_COMMAND} --install ${PROJECT_BINARY_DIR} --config $<CONFIG> --component bitcoin-qt --prefix ${macos_app}/Contents/MacOS --strip
@@ -124,6 +134,7 @@ function(add_macos_deploy_target)
124
134
  )
125
135
  endif()
126
136
  add_dependencies(deploydir bitcoin-qt)
137
+ add_dependencies(deploydir bitcoin_icns_deployed)
127
138
  add_dependencies(deploy deploydir)
128
139
  endif()
129
140
  endfunction()