Opened 10 years ago

Last modified 8 years ago

#351 assigned task

Switch to cmake from autotools

Reported by: aturner Owned by: aturner
Priority: high Milestone: 4.0.0
Component: tcpreplay Version: 3.3.2
Keywords: Cc:
Operating System: Add to FAQ?: no
Hardware: All
Output of tcpreplay -V:

Description

www.cmake.org

Change History (107)

comment:1 Changed 10 years ago by aturner

  • Milestone changed from Future Release to 4.0.0

comment:2 Changed 10 years ago by aturner

(In [2159]) merge -r 2152:HEAD from trunk to win32port so I can work on cmake. refs #351

comment:3 Changed 10 years ago by aturner

(In [2160]) cmake work in progress. doesnt actually come close to working yet. refs #351

comment:4 Changed 10 years ago by aturner

(In [2161]) add strict align check and stubs for PF_Packet & BPF
add compiler checks, etc... refs #351

comment:5 Changed 10 years ago by aturner

(In [2162]) add support for checking for PF_PACKET & /dev/bpf
change some defines for libpcap function checks so that cmake uses the same
names as auto*
refs #351

comment:6 Changed 10 years ago by aturner

(In [2166]) sync changes... why can't i do var substitution in defines.h????
refs #351

comment:7 Changed 10 years ago by aturner

(In [2167]) sync changes which solve for some bugs. refs #351

comment:8 Changed 10 years ago by aturner

  • Priority changed from medium to high

comment:9 Changed 10 years ago by aturner

(In [2171]) actually can compile some code now! refs #351

comment:10 Changed 10 years ago by aturner

(In [2172]) fixed most compile issues. now just link! refs #351

comment:11 Changed 10 years ago by aturner

(In [2173]) builds libopts tearoff. havent hooked things up correctly yet though. refs #351

comment:12 Changed 10 years ago by aturner

(In [2174]) need this too. refs #351

comment:13 Changed 10 years ago by aturner

(In [2175]) actually builds everything! some targets still broken & tests dont yet all pass. refs #351

comment:14 Changed 10 years ago by aturner

(In [2176]) seems to be fully building on osx! refs #351

comment:15 Changed 10 years ago by aturner

(In [2177]) fix make clean. refs #351

comment:16 Changed 10 years ago by aturner

(In [2178]) cmake install|clean arent real targets. suck. fix warnings. refs #351

comment:17 Changed 10 years ago by aturner

(In [2179]) make clean now removes all appropriate files from libopts. refs #351

comment:18 Changed 10 years ago by aturner

(In [2180]) remove commented out code. refs #351

comment:19 Changed 10 years ago by aturner

(In [2181]) fix tests. refs #351

comment:20 Changed 10 years ago by aturner

(In [2182]) fix a lot of bugs related to linux & old libs. refs #351

comment:21 Changed 10 years ago by aturner

(In [2183]) various bugs found under linux. refs #351

comment:22 Changed 10 years ago by aturner

(In [2184]) mark advanced flags, debug uses -ggdb and fix odd linux bug. refs #351

comment:23 Changed 10 years ago by aturner

(In [2185]) sync back osx fixes. refs #351

comment:24 Changed 10 years ago by aturner

(In [2186]) try to fix svn_version.c. refs #351

comment:25 Changed 10 years ago by aturner

(In [2187]) fix version. refs #351

comment:26 Changed 10 years ago by aturner

(In [2188]) always force regen of svn_version.c refs #351

comment:27 Changed 10 years ago by aturner

(In [2193]) svn merge -r 2138:2192 features/win32port trunk
fully merges cmake build environment from win32port to trunk! all unit tests
pass. Need to examine fully removing autotools, but all that work should be
done in trunk.
refs #351

comment:28 Changed 10 years ago by aturner

(In [2198]) sync changes to build libopts via cmake. refs #351

comment:29 Changed 10 years ago by aturner

(In [2201]) looks like libopts tearoff is actually building. refs #351

comment:30 Changed 10 years ago by aturner

(In [2202]) omfg. everything actually compiles on OSX! refs #351

comment:31 Changed 10 years ago by aturner

(In [2203]) small cleanup. refs #351

comment:32 Changed 10 years ago by aturner

(In [2205]) move fopen t/b tests inline. refs #351

comment:33 Changed 10 years ago by younes

(In [2208]) Fix LIBPCAP_SENDPACKET detection.
refs #351

comment:34 Changed 10 years ago by aturner

(In [2209]) sync improvements/bug fixes. refs #351

comment:35 Changed 10 years ago by aturner

(In [2210]) finally fix wint_t detection. refs #351

comment:36 Changed 10 years ago by aturner

(In [2216]) use Cpack. refs #351

comment:37 Changed 10 years ago by aturner

(In [2217]) simplify. refs #351

comment:38 Changed 10 years ago by aturner

(In [2218]) more tweaks on the road to cmake bliss. refs #351

comment:39 Changed 10 years ago by aturner

(In [2228]) fix CPack, add test dir. refs #351

comment:40 Changed 10 years ago by aturner

(In [2229]) work on creation of make standard. refs #351

comment:41 Changed 10 years ago by aturner

(In [2231]) fix some tests. refs #351

comment:42 Changed 10 years ago by aturner

(In [2232]) reverse merging last commit for tests- new tests are broken I think refs #351

comment:43 Changed 10 years ago by aturner

(In [2233]) fix bug with rewrite_config test. refs #351

comment:44 Changed 10 years ago by aturner

(In [2234]) reverse merging last commit for tests- new tests are broken I think refs #351

comment:45 Changed 10 years ago by aturner

(In [2235]) reverse merging last commit for tests- new tests are broken I think refs #351

comment:46 Changed 10 years ago by aturner

(In [2236]) need to use _'s instead of spaces with cmake. refs #351

comment:47 Changed 10 years ago by aturner

(In [2237]) define HAVE_SIGNAL_H. refs #351

comment:48 Changed 10 years ago by aturner

(In [2238]) add missing CheckCSourceRuns. refs #351

comment:49 Changed 10 years ago by aturner

(In [2239]) switch to lowercase. refs #351

comment:50 Changed 10 years ago by aturner

(In [2240]) options for libdnet and libpcap. refs #351

comment:51 Changed 10 years ago by aturner

(In [2241]) windows is little endian refs #351

comment:52 Changed 10 years ago by aturner

(In [2242]) fix bugs. refs #351

comment:53 Changed 10 years ago by aturner

(In [2244]) update build scripts refs #351

comment:54 Changed 10 years ago by aturner

(In [2245]) missing define. refs #351

comment:55 Changed 10 years ago by aturner

(In [2247]) Fix discovery of libpcap/winpcap. Still need to figure out how to properly set HAVE_LIBPCAP though. refs #351

comment:56 Changed 10 years ago by aturner

(In [2248]) fix -DLIBPCAP_DIR. refs #351

comment:57 Changed 10 years ago by aturner

(In [2249]) mostly fix svn_version.c. remove old autotools cruft. refs #351

comment:58 Changed 10 years ago by aturner

(In [2250]) whoops. fix bug in last commit. refs #351

comment:59 Changed 10 years ago by aturner

(In [2251]) remove more autotools stuff. refs #351

comment:60 Changed 10 years ago by aturner

(In [2252]) improve make package_source. refs #351

comment:61 Changed 10 years ago by aturner

(In [2253]) remove more autotools stuff. refs #351

comment:62 Changed 10 years ago by aturner

(In [2254]) more cleanup post-autotools. refs #351

comment:63 Changed 10 years ago by aturner

(In [2255]) need to run "make version" before "make package_source". refs #351

comment:64 Changed 10 years ago by aturner

(In [2256]) partially fix out of svn WC builds. refs #351

comment:65 Changed 10 years ago by aturner

(In [2257]) fix issue with libstrl. refs #351

comment:66 Changed 10 years ago by younes

(In [2258]) Fix out of source build.
refs #351

comment:67 Changed 10 years ago by younes

(In [2259]) more out of source fixes.
refs #351

comment:68 Changed 10 years ago by younes

(In [2260]) fix fix in previous commit.
refs #351.

comment:69 Changed 10 years ago by younes

(In [2261]) Another out of source build fix.
refs #351

comment:70 Changed 10 years ago by younes

(In [2262]) tcpr.h: replace u_int with u_int32_t
defines.h.in: move up the header protection.

refs #351

comment:71 Changed 10 years ago by younes

(In [2263]) Another out of source build fix.
refs #351

comment:72 Changed 10 years ago by younes

(In [2264]) Forecast out of source build fix.
refs #351

comment:73 Changed 10 years ago by aturner

(In [2265]) whoops. missing file. refs #351

comment:74 Changed 10 years ago by aturner

(In [2266]) ignore svn_version.c refs #351

comment:75 Changed 10 years ago by aturner

(In [2267]) basically is a port of autotool's make dist-gzip, but isn't perfect.
still not sure if I really need to create a template file... seems lame.
refs #351

comment:76 Changed 10 years ago by aturner

(In [2271]) improve make tests/standard. refs #351

comment:77 Changed 10 years ago by aturner

(In [2272]) make clean removes test files. refs #351

comment:78 Changed 10 years ago by aturner

(In [2273]) remove debug message. refs #351

comment:79 Changed 10 years ago by aturner

(In [2274]) s/standard/standard_tests/ refs #351

comment:80 Changed 10 years ago by younes

(In [2275]) out of source build fix.
refs #351

comment:81 Changed 10 years ago by aturner

  • Status changed from new to assigned

comment:82 Changed 10 years ago by aturner

(In [2330]) build doxygen docs via: make doc refs #351

comment:83 Changed 10 years ago by aturner

(In [2331]) switch target from doc to doxygen. refs #351

comment:84 Changed 10 years ago by aturner

(In [2332]) remove autotools install directions. refs #351

comment:85 Changed 10 years ago by aturner

(In [2354]) add support for ctags/etags
refs #351

comment:86 Changed 10 years ago by aturner

(In [2356]) add man page generation and switch to lowercase.
refs #351

comment:87 Changed 9 years ago by aturner

(In [2386]) add libevent check & make sure we pass flags for libdnet
refs #351

comment:88 Changed 9 years ago by aturner

(In [2387]) minor clean up. refs #351

comment:89 Changed 9 years ago by aturner

(In [2388]) whitespace. refs #351

comment:90 Changed 9 years ago by aturner

(In [2389]) tweak for cmake. refs #351

comment:91 Changed 9 years ago by aturner

(In [2390]) mostly whitespace, use libopts include too. refs #351

comment:92 Changed 9 years ago by aturner

(In [2394]) rename template .c files so we can file(glob) all .c's. refs #351

comment:93 Changed 9 years ago by aturner

(In [2395]) make plugins work better with cmake. refs #351

comment:94 Changed 9 years ago by aturner

(In [2397]) add clean_autogen target. refs #351

comment:95 Changed 9 years ago by aturner

(In [2398]) build documenation and postweb. refs #351

comment:96 Changed 9 years ago by aturner

(In [2399]) fix duplicate sources for tcpedit target. refs #351

comment:97 Changed 9 years ago by aturner

(In [2401]) ship svn_version.c when doing 'make package_source' so people
can actually build the code. Note: package_source doesn't
automagically re-gen svn_vesion.c yet. refs #351

comment:98 Changed 9 years ago by aturner

(In [2402]) print some warnings if the version is not a specific revision
refs #351

comment:99 Changed 9 years ago by aturner

(In [2453]) dont leave file foo laying around. refs #351

comment:100 Changed 9 years ago by younes

(In [2458]) CMake fixes on non MAC platform. refs #351

comment:101 Changed 9 years ago by aturner

(In [2461]) ok, this now builds properly under Umbuntu. need to re-test
under CentOS & OS X, but should be OK I think refs #351

comment:102 Changed 8 years ago by aturner

(In [2498]) generate config report at the end. refs #351

comment:103 Changed 8 years ago by aturner

(In [2500]) fix comment test. refs #351

comment:104 Changed 8 years ago by aturner

(In [2515]) make install should work for bins & man pages now refs #351

comment:105 Changed 8 years ago by aturner

(In [2516]) this was from autotools. now we use config.h.cmake. refs #351

comment:106 Changed 8 years ago by aturner

(In [2528]) fix cmake issues where make dist-gzip didn't ship svn_version.c
and we couldn't do bulids outside of the svn working dir
refs #351

comment:107 Changed 8 years ago by aturner

(In [2531]) work on improving cmake code. copy from trunk. refs #351

Note: See TracTickets for help on using tickets.