]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
fixing cmake
authorJosh <jrosenba@cisco.com>
Tue, 24 Jun 2014 14:15:14 +0000 (10:15 -0400)
committerJosh <jrosenba@cisco.com>
Tue, 24 Jun 2014 15:09:21 +0000 (11:09 -0400)
CMakeLists.txt
cmake/createCommandLineOptions.cmake
cmake/setConfigureOptions.cmake
config.cmake.h.in
configure_cmake.sh
src/codecs/codec_api.cc
src/codecs/ip/cd_ah.cc
src/codecs/ip/cd_pgm.cc

index 500d7ab579a103e17c3b81353935d3468df3eba9..27c63fd82b1309ea0e3f66f30592793e73b70067 100644 (file)
@@ -4,7 +4,7 @@ project(snort CXX C)
 
 set(SNORT_VERSION_MAJOR 2)
 set(SNORT_VERSION_MINOR 10)
-set(SNORT_VERSION_BUILD  087)
+set(SNORT_VERSION_BUILD  093)
 set(VERSION "${SNORT_VERSION_MAJOR}.${SNORT_VERSION_MINOR}.${SNORT_VERSION_BUILD}")
 
 # ensure cmake will look in the cmake directory for configuration files
index b854cfb0c3a66bc14be1c89c8cd128739322a959..c74c030c40ffeeef607a9e7b602a81d286ea2743 100644 (file)
@@ -5,7 +5,7 @@
 #  use `ccmamke ${PATH_TO_SOURCE}`.
 
 
-option (STATIC_DECODERS "include decoders in binary?" ON)
+option (STATIC_CODECS "include decoders in binary?" ON)
 option (STATIC_INSPECTORS "include inspectors in binary" ON)
 option (STATIC_LOGGERS "include loggers in binary" ON)
 option (STATIC_IPS_OPTIONS "include ips options in binary" ON)
index 3fd059913cc3d4d54cd0557d6210ac0d392b9fd3..7a057486608b5a0e37611dd2b34a11c5fbf9edb0 100644 (file)
@@ -41,7 +41,7 @@ set_if_true( STATIC_INSPECTORS STATIC_INSPECTORS )
 set_if_true( STATIC_SEARCH_ENGINES STATIC_SEARCH_ENGINES )
 set_if_true( STATIC_LOGGERS STATIC_LOGGERS )
 set_if_true( STATIC_IPS_OPTIONS STATIC_IPS_OPTIONS )
-set_if_true( STATIC_DECODERS STATIC_DECODERS )
+set_if_true( STATIC_CODECS STATIC_CODECS )
 set_if_true( BUILD_SIDE_CHANNEL SIDE_CHANNEL )
 set_if_true( ENABLE_VALGRIND VALGRIND_TESTING )
 set_if_true( ENABLE_PPM PPM_MGR )
index 492da26495d361517af1a8237f205a0c337c7143..d68ebfd0cbf46ef87a90ed88ef9f1425f5c3b0b6 100644 (file)
@@ -56,7 +56,7 @@
 #cmakedefine STATIC_SEARCH_ENGINES 1
 
 /* include internal decoders in binary */
-#cmakedefine STATIC_DECODERS 1
+#cmakedefine STATIC_CODECS 1
 
 /* built control socket */ 
 #cmakedefine CONTROL_SOCKET 1
index 5f5149d1e2d2c28bec200081e4c0f37781d186ac..fb21a5c93f4e1333e6a26921bceb606efd33e520 100755 (executable)
@@ -43,6 +43,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
       --disable-static-loggers    do not include loggers in binary
       --disable-static-ips-options    do not include ips options in binary
       --disable-static-search-engines    do not include search engines in binary
+      --disable-static-codecs  do not include codecs in binary
       --enable-control-socket  Enable the control socket (Linux only)
       --enable-side-channel    Enable the side channel (Linux only)
       --enable-valgrind        Only use if you are testing with valgrind.
@@ -169,11 +170,11 @@ while [ $# -ne 0 ]; do
             prefix=$optarg
             append_cache_entry CMAKE_INSTALL_PREFIX PATH $optarg
             ;;
-        --disable-static-decoders)
-            append_cache_entry STATIC_DECODERS       BOOL   false
+        --disable-static-codecs)
+            append_cache_entry STATIC_CODECS       BOOL   false
             ;;
-        --enable-static-decoders)
-            append_cache_entry STATIC_DECODERS       BOOL   true
+        --enable-static-codecs)
+            append_cache_entry STATIC_CODECS       BOOL   true
             ;;
         --disable-static-inspectors)
             append_cache_entry STATIC_INSPECTORS    BOOL   false
index 02f23637691fbf0d291a5df30899ca45a561cdb9..ed1d1568631491e455d559df125913fc9a938933 100644 (file)
@@ -43,7 +43,7 @@ extern const BaseApi* cd_tcp;
 extern const BaseApi* cd_udp;
 extern const BaseApi* cd_esp;
 
-#ifdef STATIC_DECODERS
+#ifdef STATIC_CODECS
 extern const BaseApi* cd_ah;
 extern const BaseApi* cd_arp;
 extern const BaseApi* cd_dstopts;
@@ -98,7 +98,7 @@ const BaseApi* codecs[] =
     cd_udp,
     cd_esp,
 
-#ifdef STATIC_DECODERS
+#ifdef STATIC_CODECS
     cd_ah,
     cd_arp,
     cd_dstopts,
index b3bdba9d8ba17c949502d819a90fa95f316ff205..5218f081d532272ce7aec0a7c9a9527ee4986f17 100644 (file)
@@ -136,6 +136,3 @@ SO_PUBLIC const BaseApi* snort_plugins[] =
 #else
 const BaseApi* cd_ah = &ah_api.base;
 #endif
-
-
-
index 3e17e218000e5ee4e906f5f2fcee4ec7c6ad8acd..dc5e6f01e7d1a63de0360991b54c9a74bca84f67 100644 (file)
@@ -199,5 +199,13 @@ static const CodecApi pgm_api =
     dtor, // dtor
 };
 
+#ifdef BUILDING_SO
+SO_PUBLIC const BaseApi* snort_plugins[] =
+{
+    &pgm_api.base,
+    nullptr
+};
+#else
 const BaseApi* cd_pgm = &pgm_api.base;
+#endif