Newer
Older
dub_jkp / changelog / build-path-variable.dd
@Bastiaan Veelo Bastiaan Veelo on 8 Mar 2022 680 bytes Define the $DUB_BUILD_PATH variable.
  1. The `$DUB_BUILD_PATH` variable was added
  2.  
  3. The `$DUB_BUILD_PATH` variable is now defined inside the `postBuildCommands`
  4. section. It contains the absolute path in which the package was built, and can
  5. be used to copy by-products of the build process to their intended locations.
  6.  
  7. For example, if an executable exports symbols, you will want to make the
  8. resulting import library and symbols export file available somewhere. That can
  9. be done with a `dub.json` section like this:
  10. -------
  11. "postBuildCommands-windows": [
  12. "copy /y $DUB_BUILD_PATH\\$DUB_TARGET_NAME.lib $PACKAGE_DIR\\lib"
  13. "copy /y $DUB_BUILD_PATH\\$DUB_TARGET_NAME.exp $PACKAGE_DIR\\lib"
  14. ],
  15. -------