Bump codec2-dev version to 0.4.0 and final tweaks for win32 cross-compiling.
authorhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 2 Jul 2015 02:25:35 +0000 (02:25 +0000)
committerhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Thu, 2 Jul 2015 02:25:35 +0000 (02:25 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2233 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/CMakeLists.txt
fdmdv2-dev/CMakeLists.txt
fdmdv2/CMakeLists.txt
fdmdv2/cmake/BuildCodec2.cmake

index e2b270aee4a460a9929775307d55c8048d80605f..48b830e288fd495202f53a44b2457dd85397a8d8 100644 (file)
@@ -35,7 +35,7 @@ endif("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
 # file at some point.
 #
 set(CODEC2_VERSION_MAJOR 0)
-set(CODEC2_VERSION_MINOR 3)
+set(CODEC2_VERSION_MINOR 4)
 # Set to patch level if needed, otherwise leave FALSE.
 set(CODEC2_VERSION_PATCH FALSE)
 set(CODEC2_VERSION "${CODEC2_VERSION_MAJOR}.${CODEC2_VERSION_MINOR}")
index a4fe30b3a3a6bee08714fb45f1d8a62939943643..49c664d1a47f598a3ba3c5547dc9ac8cb7a4520b 100644 (file)
@@ -472,6 +472,7 @@ if(WIN32)
     #set(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
     set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\freedv.exe")
     set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
+    set(CPACK_NSIS_PACKAGE_NAME "FreeDV")
     set(CPACK_NSIS_URL_INFO_ABOUT "http://freedv.org")
     set(CPACK_NSIS_MODIFY_PATH OFF)
     set(CPACK_NSIS_MENU_LINKS "http://freedv.org" "FreeDV Homepage")
index b6e232aca32a215981192104eea0166067664587..fd61d525460800bc09c6a25707352a4850e2195e 100644 (file)
@@ -447,11 +447,11 @@ if(WIN32)
     endif()
     set(CPACK_PACKAGE_INSTALL_DIRECTORY "FreeDV")
     set(CPACK_PACKAGE_EXECUTABLES freedv;FreeDV)
-    # There is a bug in NSI that does not handle full unix paths properly. Make
-    # sure there is at least one set of four (4) backlasshes.
-    #set(CPACK_PACKAGE_ICON "${CMake_SOURCE_DIR}/Utilities/Release\\\\InstallIcon.bmp")
+    set(CPACK_STRIP_FILES TRUE)
+    # NSIS specific settings
     set(CPACK_NSIS_INSTALLED_ICON_NAME "bin\\\\freedv.exe")
     set(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}")
+    set(CPACK_NSIS_PACKAGE_NAME "FreeDV")
     set(CPACK_NSIS_URL_INFO_ABOUT "http://freedv.org")
     set(CPACK_NSIS_MODIFY_PATH OFF)
     set(CPACK_NSIS_MENU_LINKS "http://freedv.org" "FreeDV Homepage")
index 8973b5825c62a56da5cac42efd421747b7691a0a..034bc46251ffa87aa61fb51b5b3230a7badd9f67 100644 (file)
@@ -1,7 +1,11 @@
+if(CMAKE_CROSSCOMPILING)
+    set(CODEC2_CMAKE_ARGS "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}")
+endif()
+
 include(ExternalProject)
 ExternalProject_Add(codec2
    SVN_REPOSITORY https://svn.code.sf.net/p/freetel/code/codec2
-   CMAKE_ARGS -DBUILD_SHARED_LIBS=FALSE 
+   CMAKE_ARGS ${CODEC2_CMAKE_ARGS}
    INSTALL_COMMAND ""
 )
 set(CODEC2_LIBRARIES