rules 701 B

1234567891011121314151617181920212223
  1. #!/usr/bin/make -f
  2. %:
  3. dh $@ --buildsystem=cmake
  4. override_dh_auto_configure:
  5. dh_auto_configure -- \
  6. -DCMAKE_BUILD_TYPE=RelWithDebInfo \
  7. -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) \
  8. -DCMAKE_INSTALL_PREFIX=/usr \
  9. -DBUILD_SHARED_LIBS=YES \
  10. -DBUILD_STATIC_LIBS=YES \
  11. -DCOMPILE_EXAMPLES=YES \
  12. -DCOMPILE_STUBGEN=YES
  13. override_dh_strip:
  14. dh_strip -plibjsonrpccpp-common0 --dbg-package=libjsonrpccpp-common0-dbg
  15. dh_strip -plibjsonrpccpp-server0 --dbg-package=libjsonrpccpp-server0-dbg
  16. dh_strip -plibjsonrpccpp-client0 --dbg-package=libjsonrpccpp-client0-dbg
  17. dh_strip -plibjsonrpccpp-stub0 --dbg-package=libjsonrpccpp-stub0-dbg
  18. dh_strip -plibjsonrpccpp-tools
  19. dh_strip -plibjsonrpccpp-dev