Add comments to the cmake config and cleanup/tweak documentation.
authorhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 7 Aug 2015 17:22:59 +0000 (17:22 +0000)
committerhobbes1069 <hobbes1069@01035d8c-6547-0410-b346-abe4f91aad63>
Fri, 7 Aug 2015 17:22:59 +0000 (17:22 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@2260 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/CMakeLists.txt
codec2-dev/INSTALL
codec2-dev/README
codec2-dev/README.cmake [deleted file]

index ef2ecf3156bba4fe8bf66e121ccbf79d878292d4..dcc0f7304dee3a19928fbaa4e76139c689d508ef 100644 (file)
@@ -99,6 +99,7 @@ endif(MINGW)
 #
 option(BUILD_SHARED_LIBS
     "Build shared library. Set to OFF for static library." ON)
+# Unittest should be on for dev builds and off for releases.
 option(UNITTEST "Build unittest binaries." ON)
 option(INSTALL_EXAMPLES "Install example code." OFF)
 if(INSTALL_EXAMPLES)
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..4500c4c2abd872aba00f6d702a82aa4cde110bf1 100644 (file)
@@ -0,0 +1,47 @@
+==========================
+ Building and Installing
+==========================
+
+NOTES:
+  - Builds against system libraries by default.
+  - Has NSIS packaing support for Windows (WIN32) targets. *nix systems should
+    rely on 'make install' as the packages (RPM & DEB) created by CPack are
+    questionable.
+
+To test the cmake build make a directory anywhere underneath (or outside of)
+the source directory.
+
+Linux command line example:
+
+$ cd /path/to/codec2
+$ mkdir build_linux
+$ cd build_linux
+$ cmake ../ 
+
+Install prefix defaults to /usr/local, use CMAKE_INSTALL_PREFIX to override.
+
+(if no errors)
+$ make
+(as root)
+$ make install
+
+=====================
+ Windows
+=====================
+
+Unlike FreeDV (fdmdv2), codec2 is not currently provided as a separate
+installer, instead the windows version uses a static build of codec2.
+
+Additionally, while MSYS2+MinGW should work, windows builds are produces by 
+cross compiling from linux.
+
+Install MinGW & the mysys shell
+   + pwd -W prints true Win32 directory
+   + I also installed emacs, "tortise svn", and "cmake", and built and installed speex
+
+$ cd codec2-dev
+$ mkdir build_win32
+$ cd build_win32
+$ cmake -DSPEEXDSP_INCLUDE_DIR=/usr/local/include/ -G "MSYS Makefiles" ..
+$ make
+$ make package
index 4cd93a59303883f5db79d603ed62ce8e32bc3517..a2a822d734f28af71bbabf9759eb4706d94f3208 100644 (file)
@@ -32,8 +32,7 @@ I understand the arguments, but am content with SVN for now.
 Quickstart
 ----------
 
-NOTE: Use the "codec2" or "codec2-dev" depending on which repository
-      you are working with
+Refer to INSTALL for more general building and installing instructions.
 
 NOTE: You may not have the necessary speex libraries installed. Some
       distributions may have packages available 
@@ -42,7 +41,7 @@ NOTE: You may not have the necessary speex libraries installed. Some
 
 1/ Listen to Codec 2:
 
-   $ cd codec2
+   $ cd codec2-dev
    $ mkdir build_linux
    $ cd build_linux
    $ cmake ..
diff --git a/codec2-dev/README.cmake b/codec2-dev/README.cmake
deleted file mode 100644 (file)
index 7df3826..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-The CMake configuration for codec2 should be considered experimental at
-this time but has been thouroughly tested on Fedora Linux and cross-compiling 
-from linux to windows with mingw and has many advanages over the autotools
-config. 
-
-- Builds against system libraries (default).
-- Has experimental NSIS packaing support for Windows (WIN32) targets. *nix
-  systems should rely on 'make install' as the packages (RPM & DEB) created by
-  CPack are questionable.
-
-==========================
- Building and installing
-==========================
-
-    To test the cmake build make a directory anywhere underneath (or outside of)
-the source directory.
-
-Linux command line example:
-
-$ cd /path/to/codec2
-$ mkdir build_linux
-$ cd build_linux
-$ cmake ../ (defaults to /usr/local, use CMAKE_INSTALL_PREFIX to override)
-(if no errors)
-$ make
-(as root)
-$ make install
-
-=====================
-Win32
-=====================
-
-Install MinGW & the mysys shell
-   + pwd -W prints true Win32 directory
-   + I also installed emacs, "tortise svn", and "cmake", and built and installed speex
-
-$ cd codec2-dev
-$ mkdir build_win32
-$ cd build_win32
-$ cmake -DSPEEXDSP_INCLUDE_DIR=/usr/local/include/ -G "MSYS Makefiles" ..
-$ make