[Kde-bindings] Kde-bindings Digest, Vol 117, Issue 24
David Lechner
david at lechnology.com
Thu Feb 21 03:25:33 UTC 2013
On 1/31/2013 2:08 AM, Cvetoslav Ludmiloff wrote:
> Thanks, I did it the day before, but personally I'm not satisfied with
> that, I need a solution right into cmake files.
In case you haven't done it yourself yet, here is a patch to add signing
to the make files.
-------------- next part --------------
commit e0118f5718952e33b6e63bb4a5bab6a2e6d88dc2
Author: David Lechner <david at lechnology.com>
Date: Wed Feb 20 21:23:17 2013 -0600
add signing using sn when using mono
diff --git a/assemblies/CMakeLists.txt b/assemblies/CMakeLists.txt
index 9ac74a6..99466ca 100644
--- a/assemblies/CMakeLists.txt
+++ b/assemblies/CMakeLists.txt
@@ -1,4 +1,4 @@
-set(KEYFILE \\"${CMAKE_CURRENT_SOURCE_DIR}/key.snk\\")
+set(KEYFILE "${CMAKE_CURRENT_SOURCE_DIR}/key.snk")
find_package(Qt4 COMPONENTS QtDBus)
find_package(Smoke COMPONENTS Phonon)
diff --git a/assemblies/qyoto-phonon/CMakeLists.txt b/assemblies/qyoto-phonon/CMakeLists.txt
index 5569e3c..849b474 100644
--- a/assemblies/qyoto-phonon/CMakeLists.txt
+++ b/assemblies/qyoto-phonon/CMakeLists.txt
@@ -14,7 +14,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-phonon.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-phonon.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-phonon.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtcore/CMakeLists.txt b/assemblies/qyoto-qtcore/CMakeLists.txt
index b5ce7e7..5aacdea 100644
--- a/assemblies/qyoto-qtcore/CMakeLists.txt
+++ b/assemblies/qyoto-qtcore/CMakeLists.txt
@@ -43,7 +43,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtcore.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtcore.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtcore.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtdbus/CMakeLists.txt b/assemblies/qyoto-qtdbus/CMakeLists.txt
index 9424d95..a21a8a0 100644
--- a/assemblies/qyoto-qtdbus/CMakeLists.txt
+++ b/assemblies/qyoto-qtdbus/CMakeLists.txt
@@ -20,7 +20,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtdbus.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtdbus.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtdbus.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtgui/CMakeLists.txt b/assemblies/qyoto-qtgui/CMakeLists.txt
index 9027848..9590e09 100644
--- a/assemblies/qyoto-qtgui/CMakeLists.txt
+++ b/assemblies/qyoto-qtgui/CMakeLists.txt
@@ -28,7 +28,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtgui.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtgui.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtgui.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtnetwork/CMakeLists.txt b/assemblies/qyoto-qtnetwork/CMakeLists.txt
index 2e6583a..8ac01f7 100644
--- a/assemblies/qyoto-qtnetwork/CMakeLists.txt
+++ b/assemblies/qyoto-qtnetwork/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtnetwork.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtnetwork.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtnetwork.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtopengl/CMakeLists.txt b/assemblies/qyoto-qtopengl/CMakeLists.txt
index 0829a34..b977ed8 100644
--- a/assemblies/qyoto-qtopengl/CMakeLists.txt
+++ b/assemblies/qyoto-qtopengl/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtopengl.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtopengl.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtopengl.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtscript/CMakeLists.txt b/assemblies/qyoto-qtscript/CMakeLists.txt
index 8185577..aa24020 100644
--- a/assemblies/qyoto-qtscript/CMakeLists.txt
+++ b/assemblies/qyoto-qtscript/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtscript.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtscript.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtscript.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtsql/CMakeLists.txt b/assemblies/qyoto-qtsql/CMakeLists.txt
index 99c66b4..0bc11a3 100644
--- a/assemblies/qyoto-qtsql/CMakeLists.txt
+++ b/assemblies/qyoto-qtsql/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtsql.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtsql.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtsql.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtsvg/CMakeLists.txt b/assemblies/qyoto-qtsvg/CMakeLists.txt
index 33889c1..e31049e 100644
--- a/assemblies/qyoto-qtsvg/CMakeLists.txt
+++ b/assemblies/qyoto-qtsvg/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtsvg.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtsvg.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtsvg.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtuitools/CMakeLists.txt b/assemblies/qyoto-qtuitools/CMakeLists.txt
index 6b555c0..3e3b22a 100644
--- a/assemblies/qyoto-qtuitools/CMakeLists.txt
+++ b/assemblies/qyoto-qtuitools/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtuitools.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtuitools.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtuitools.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtwebkit/CMakeLists.txt b/assemblies/qyoto-qtwebkit/CMakeLists.txt
index 77017ab..ac40ae8 100644
--- a/assemblies/qyoto-qtwebkit/CMakeLists.txt
+++ b/assemblies/qyoto-qtwebkit/CMakeLists.txt
@@ -16,7 +16,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtwebkit.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtwebkit.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtwebkit.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtxml/CMakeLists.txt b/assemblies/qyoto-qtxml/CMakeLists.txt
index 4217865..baa2838 100644
--- a/assemblies/qyoto-qtxml/CMakeLists.txt
+++ b/assemblies/qyoto-qtxml/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtxml.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtxml.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtxml.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/assemblies/qyoto-qtxmlpatterns/CMakeLists.txt b/assemblies/qyoto-qtxmlpatterns/CMakeLists.txt
index 388ca5f..c5b62f2 100644
--- a/assemblies/qyoto-qtxmlpatterns/CMakeLists.txt
+++ b/assemblies/qyoto-qtxmlpatterns/CMakeLists.txt
@@ -15,7 +15,8 @@ set (ASSEMBLYGEN_ARGS
)
if (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtxmlpatterns.dll
- COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS})
+ COMMAND ${MONO_EXECUTABLE} ${ASSEMBLYGEN_ARGS}
+ COMMAND ${SN_EXECUTABLE} -R ${LIBRARY_OUTPUT_PATH}/qyoto-qtxmlpatterns.dll ${KEYFILE})
else (MONO_EXECUTABLE)
add_custom_command(OUTPUT ${LIBRARY_OUTPUT_PATH}/qyoto-qtxmlpatterns.dll
COMMAND ${ASSEMBLYGEN_ARGS})
diff --git a/cmake/modules/FindMono.cmake b/cmake/modules/FindMono.cmake
index fa9b420..1ebe567 100644
--- a/cmake/modules/FindMono.cmake
+++ b/cmake/modules/FindMono.cmake
@@ -14,23 +14,25 @@
FIND_PROGRAM (MONO_EXECUTABLE mono)
FIND_PROGRAM (DMCS_EXECUTABLE dmcs)
FIND_PROGRAM (GACUTIL_EXECUTABLE gacutil)
+FIND_PROGRAM (SN_EXECUTABLE sn)
SET (MONO_FOUND FALSE CACHE INTERNAL "")
-IF (MONO_EXECUTABLE AND DMCS_EXECUTABLE AND GACUTIL_EXECUTABLE)
+IF (MONO_EXECUTABLE AND DMCS_EXECUTABLE AND GACUTIL_EXECUTABLE AND SN_EXACUTABLE)
SET (MONO_FOUND TRUE CACHE INTERNAL "")
-ENDIF (MONO_EXECUTABLE AND DMCS_EXECUTABLE AND GACUTIL_EXECUTABLE)
+ENDIF (MONO_EXECUTABLE AND DMCS_EXECUTABLE AND GACUTIL_EXECUTABLE AND SN_EXACUTABLE)
IF (NOT Mono_FIND_QUIETLY)
MESSAGE(STATUS "Path of mono: ${MONO_EXECUTABLE}")
MESSAGE(STATUS "Path of dmcs: ${DMCS_EXECUTABLE}")
MESSAGE(STATUS "Path of gacutil: ${GACUTIL_EXECUTABLE}")
+ MESSAGE(STATUS "Path of sn: ${SN_EXACUTABLE}")
ENDIF (NOT Mono_FIND_QUIETLY)
IF (NOT MONO_FOUND)
IF (Mono_FIND_REQUIRED)
- MESSAGE(FATAL_ERROR "Could not find one or more of the following programs: mono, dmcs, gacutil")
+ MESSAGE(FATAL_ERROR "Could not find one or more of the following programs: mono, dmcs, gacutil, sn")
ENDIF (Mono_FIND_REQUIRED)
ENDIF (NOT MONO_FOUND)
-MARK_AS_ADVANCED(MONO_EXECUTABLE DMCS_EXECUTABLE GACUTIL_EXECUTABLE)
+MARK_AS_ADVANCED(MONO_EXECUTABLE DMCS_EXECUTABLE GACUTIL_EXECUTABLE SN_EXACUTABLE)
More information about the Kde-bindings
mailing list