[PATCH 2 of 2] Merged

Wald Commits scm-commit at wald.intevation.org
Wed Sep 3 09:56:45 CEST 2014


# HG changeset patch
# User Emanuel Schuetze <emanuel at intevation.de>
# Date 1409730913 -7200
# Node ID 55a2ace0937da058510a4e709477bf7e23674b13
# Parent  70022fc31cdfed8dc396932078593b6158f3cde4
# Parent  c6ae74ac5cf929466a17b8b37e4a59113baedee1
Merged.

diff -r 70022fc31cdf -r 55a2ace0937d .hgtags
--- a/.hgtags	Tue Sep 02 15:43:58 2014 +0200
+++ b/.hgtags	Wed Sep 03 09:55:13 2014 +0200
@@ -11,3 +11,7 @@
 0000000000000000000000000000000000000000 0.85
 c4ba93dbf680e9507290fa7058d660486cc0be2e 0.85
 b4094dc552171376ac9481657ba509abfaecf1bc 0.9
+b4094dc552171376ac9481657ba509abfaecf1bc 0.9
+0000000000000000000000000000000000000000 0.9
+0000000000000000000000000000000000000000 0.9
+4f999c7821ce65f5482b44e12d18da44d6994dd8 0.9
diff -r 70022fc31cdf -r 55a2ace0937d INSTALL
--- a/INSTALL	Tue Sep 02 15:43:58 2014 +0200
+++ b/INSTALL	Wed Sep 03 09:55:13 2014 +0200
@@ -228,6 +228,10 @@
     make qtbase
 (optional) make curl
 
+Add CMAKE_STRIP to the toolchain file:
+    echo "set(CMAKE_STRIP $MXEPATH/usr/bin/i686-w64-mingw32.static-strip)" >> \
+        "$MXEPATH/usr/i686-w64-mingw32.static/share/cmake/mxe-conf.cmake"
+
 Workaround Qt CMake Bugs:
     find $MXEPATH/usr/i686-w64-mingw32.static/qt5/lib/cmake -name \*.cmake | \
         xargs sed -i 's/\/\([a-z]*\)\.lib/\/lib\1\.a/g'
diff -r 70022fc31cdf -r 55a2ace0937d cinst/CMakeLists.txt
--- a/cinst/CMakeLists.txt	Tue Sep 02 15:43:58 2014 +0200
+++ b/cinst/CMakeLists.txt	Wed Sep 03 09:55:13 2014 +0200
@@ -30,6 +30,19 @@
    ${WIN_EXTRA_LIBS})
 
 install(TARGETS cinst DESTINATION bin)
+if (WIN32)
+   add_custom_command(
+      TARGET cinst
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} cinst.exe
+   )
+else()
+   add_custom_command(
+      TARGET cinst
+      POST_BUILD
+      COMMAND strip cinst
+   )
+endif()
 
 # ----------------------------------------------------------------------
 # Mozilla nss store specific certificate installer:
@@ -48,6 +61,20 @@
       ${PROFILING_LIBS})
    set_target_properties(mozilla PROPERTIES COMPILE_FLAGS "-std=c99")
    install(TARGETS mozilla DESTINATION bin)
+
+   if (WIN32)
+      add_custom_command(
+         TARGET mozilla
+         POST_BUILD
+         COMMAND ${CMAKE_STRIP} mozilla.exe
+      )
+   else()
+      add_custom_command(
+         TARGET mozilla
+         POST_BUILD
+         COMMAND strip mozilla
+      )
+   endif()
 else()
    message(STATUS "WARNING: Could not find nss. Mozilla cert installer will not be build!")
 endif()
diff -r 70022fc31cdf -r 55a2ace0937d ui/CMakeLists.txt
--- a/ui/CMakeLists.txt	Tue Sep 02 15:43:58 2014 +0200
+++ b/ui/CMakeLists.txt	Wed Sep 03 09:55:13 2014 +0200
@@ -223,3 +223,28 @@
   configure_file(trustbridge-tray-starter.sh trustbridge-tray-starter.sh COPYONLY)
   install(FILES trustbridge-tray-starter.sh DESTINATION bin)
 endif()
+
+# Strip the binaries
+if (WIN32)
+   add_custom_command(
+      TARGET trustbridge
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} trustbridge.exe
+   )
+   add_custom_command(
+      TARGET trustbridge-admin
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} trustbridge-admin.exe
+   )
+else()
+   add_custom_command(
+      TARGET trustbridge
+      POST_BUILD
+      COMMAND strip trustbridge
+   )
+   add_custom_command(
+      TARGET trustbridge-admin
+      POST_BUILD
+      COMMAND ${CMAKE_STRIP} trustbridge-admin
+   )
+endif()


More information about the Trustbridge-commits mailing list