summaryrefslogtreecommitdiff
path: root/epan/wslua/Makefile.nmake
AgeCommit message (Collapse)AuthorFilesLines
2015-07-12Lua: split up wslua files into class-based filesHadriel Kaplan1-22/+46
The size of some of the wslua source files has grown large, and it's hard to quickly find things. So split them up based on class name, as much as seems reasonable. Also have the make-wsluarm.pl Perl script handle this. Change-Id: Ib495ec5c2a4df90495c0a05504856288a0b09213 Reviewed-on: https://code.wireshark.org/review/9579 Petri-Dish: Hadriel Kaplan <hadrielk@yahoo.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com>
2015-01-02Add '*.nativecodeanalysis.xml' to 'clean' targetsBill Meier1-1/+2
Change-Id: I90dbf0b31fc737150a01533763a7869b34c68cb6 Reviewed-on: https://code.wireshark.org/review/6220 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-08-03Make Lua taps work in out-of-source-tree builds.Jeff Morriss1-1/+1
make-taps.pl needs to know where to find the source files in order to build the taps. This makes the wslua test suite run in autofoo out-of-source-tree builds too. To make it work with cmake builds requires putting all the epan/wslua/ output (or at least init.lua) in epan/wslua/ instead of epan/. Change-Id: I1b3c517f08d3c752ee03cb89482ee4951ceb5bf3 Reviewed-on: https://code.wireshark.org/review/3348 Petri-Dish: Evan Huus <eapache@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Evan Huus <eapache@gmail.com>
2014-03-31Continue to remove $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^\# \$Id\$/,+1 d') (start with dash) Change-Id: Ia4b5a6c2302f6a531f6a86c1ec3a2f8205c8c2dd Reviewed-on: https://code.wireshark.org/review/881 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-26Add various functions for Lua directory handling and path infoHadriel Kaplan1-0/+2
This adds new functions to get plugins path info, find out if a directory exists, make a new one, remove one, etc. It also creates a file environment for user-supplied Lua scripts, to prevent global variable contamination as well as supply the script-specific file name. Some other minor cleanup was done as I found them. A new testsuite was added to test the existing and new directory functions. Change-Id: I19bd587b5e8a73d89b8521af73670e023314fb33 Reviewed-on: https://code.wireshark.org/review/832 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-19Add capture file reader/writer support for Lua so scripts can implement new ↵Michael Mann1-0/+2
capture file formats. This enables a Lua script to implement a brand new capture file format reader/writer, so that for example one could write a script to read from vendor-specific "logs" of packets, and show them as normal packets in wireshark. Change-Id: Id394edfffa94529f39789844c382b7ab6cc2d814 Reviewed-on: https://code.wireshark.org/review/431 Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Reviewed-by: Michael Mann <mmann78@netscape.net> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-10Add GLib's regex library into LuaHadriel Kaplan1-0/+6
While Lua's built-in pattern support is ok for simple things, many people end up wanting a real regex engine. Since Wireshark already includes the GLib Regex library (a wrapper for PCRE), it makes sense to expose that library to Lua scripts. This has been done using Lrexlib, one of the most popular regex bindings for Lua. Lrexlib didn't support binding GLib's Regex in particular - it does for PCRE but GLib is a different API - so I've done that. A fairly thorough testsuite came along with that, which has been incorporated into the wireshark wslua testuites as well in this commit. Change-Id: I05811d1edf7af8d7c9f4f081de6850f31c0717c7 Reviewed-on: https://code.wireshark.org/review/332 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-02-21And we need wslua_internals.obj as well.Guy Harris1-8/+9
Sort the list to match the .c list while we're at it, to make it easier to check for errors. (Why isn't this done with a Makefile.common file?) Change-Id: I239964d53be9e48bddbd6180aabe118b5cac1fd0 Reviewed-on: https://code.wireshark.org/review/287 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-02-21Need to include wslua_internals.c here as well.Guy Harris1-1/+2
Change-Id: Ibae7e4473ad0131e399423ee9faba5ad759feaed Reviewed-on: https://code.wireshark.org/review/283 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-02-14Adds support for Lua struct library so one can pack/unpack binary structuresHadriel Kaplan1-0/+2
This is based on Roberto Ierusalimschy's struct library, along with additional options based on Flemming Madsen's patch to the lua-users mailing list, and some changes I made to support 64-bit integer packing/unpacking. Details are in the top comments for wslua_struct.c. This also includes a test script. Change-Id: Ifcd0116ba013d5c760927721c8d6e9f28965534b Reviewed-on: https://code.wireshark.org/review/98 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-02-04Adds support for Lua Int64 and UInt64 operators, functions, and generalHadriel Kaplan1-0/+2
usefulness, working around bug #9162 until Lua 5.3 is released. The existing Int64 and UInt64 classes provide virtually no usefullness, other than for creating a string of their value. While one could then write Lua code to convert the string to Lua numbers and such, ultimately Lua has no native 64-bit integer support, making such a task difficult to handle in Lua. This change adds a host of functions and operators to the existing Int64 (gint64) and UInt64 (guint64) classes, to enable true 64-bit integer support on par with native Lua numbers. A test script is also provided, which tests the functions/operators. Change-Id: I4c5f8f5219b9a88198902283bd32ddf24c346bbe Reviewed-on: https://code.wireshark.org/review/83 Tested-by: Evan Huus <eapache@gmail.com> Reviewed-by: Evan Huus <eapache@gmail.com>
2013-06-25makefile.nmake -> Makefile.nmake and minor whitespace (spaces -> tabs) changes.Chris Maynard1-1/+1
svn path=/trunk/; revision=50140
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-1/+1
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2012-04-04Add a "-build" argument to checkAPIs.pl. Use that argument when buildingJeff Morriss1-1/+1
from makefiles (and thus from the buildbot). The intention is to be able to tell when a human is running the tool so we can provide more code-review guidance. As a starter, enable the "too many proto_tree_add_text() calls" check when a human is running the tool. svn path=/trunk/; revision=41943
2012-02-24CVARSDLL hasn't been used (is undefined) for a while....Bill Meier1-1/+1
svn path=/trunk/; revision=41180
2012-01-29Add *.sbr files to the clean target.Anders Broman1-1/+1
svn path=/trunk/; revision=40762
2011-02-02A bit of Windows makefiles rework and cleanup:Bill Meier1-4/+4
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile; a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS; b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake) (This allows disabling "Warnings as Errors" by just changing config.nmake) c. CVARSDLL definitions (not usage) have been removed from the various makefiles. XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since: -DWIN32 and -DNULL=0 do not appear to be needed (any more); -D_MT and _D_DLL are not needed since /MP causes these definitions. d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled. E.G., 4295: array is too small to include a terminating null character - config.nmake: reformat some long lines for readability; - plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile); - dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ... svn path=/trunk/; revision=35747
2010-05-28Fix the Windows buildJeff Morriss1-4/+4
svn path=/trunk/; revision=33010
2009-07-16Move th /MP flag setting to LOCAL_CFLAGS set in configure.nmakeAnders Broman1-1/+1
for MSVC variant 2008 only. As suggested by Bill Meier. svn path=/trunk/; revision=29114
2009-07-15Add /MP flag to make use of multi cores.Anders Broman1-1/+1
svn path=/trunk/; revision=29104
2009-06-17Added missing lua_bitop.obj.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=28764
2009-06-16Added Lua BitOp, made by Mike Pall.Stig Bjørlykke1-0/+1
svn path=/trunk/; revision=28758
2008-07-02Add Makefile.common files for epan/dfilter and epan/ftypes.Guy Harris1-10/+1
Add checkapi rules to Makefile.am files. svn path=/trunk/; revision=25656
2008-07-01Put printf into a separate "termoutput" API group. For most files,Guy Harris1-1/+1
check for it - but not for TShark plugins, as they are expected to print to the standard output. svn path=/trunk/; revision=25653
2008-06-03Fix run checkapi for more targets.Anders Broman1-0/+15
svn path=/trunk/; revision=25414
2008-04-15attempt to fix init.lua construction in Windows.Luis Ontanon1-1/+1
more diagnostics to make-init-lua.pl svn path=/trunk/; revision=25044
2008-04-14From Marton Nemeth:Luis Ontanon1-1/+1
Addenda and fixes to WSLUA_CLASS_DEFINE documentation Mine: fix init.lua generation svn path=/trunk/; revision=25025
2007-08-02Gak. <> makes it too easy to make these make- scripts do what the restGuy Harris1-1/+12
do, and take $(srcdir) as the first argument. Back the previous changes out, for now. svn path=/trunk/; revision=22441
2007-08-02We have to include Makefile.common if we move definitions we needGuy Harris1-1/+1
there.... svn path=/trunk/; revision=22440
2007-08-02Move the list of source files to a Makefile.common file.Guy Harris1-11/+0
Don't put $(srcdir)/ at the beginning of those file names - other Makefile.am files don't have it, and it appears to break "make distcheck", at least on my Mac OS X 10.4 machine. svn path=/trunk/; revision=22439
2007-03-22add "treat warnings as errors" flag(s)Ulf Lamping1-1/+1
svn path=/trunk/; revision=21125
2007-03-18Fix Windows Makefiles so clean removes all pdb files (PDB_FILE no longer ↵Bill Meier1-1/+1
defined) svn path=/trunk/; revision=21052
2007-01-04Remove duplicate targets.Gerald Combs1-6/+0
svn path=/trunk/; revision=20319
2006-12-28Add clean targets to wslua. Fix the config.nmake include in crypt.Gerald Combs1-0/+5
svn path=/trunk/; revision=20232
2006-10-17Several changes:Luis Ontanon1-6/+5
- do not #include a c code file in wslua_register.c compile a separate boject - add the console and evaluate windows - add some useful vars to the lua environment - some cleanup - add the dtd generator code (currently disabled) svn path=/trunk/; revision=19579
2006-10-09add some missing files to the clean targetUlf Lamping1-1/+1
svn path=/trunk/; revision=19465
2006-10-03Update nmakefile to latest changes.Luis Ontanon1-5/+7
svn path=/trunk/; revision=19411
2006-09-26Lua 5.1.1 for windowsLuis Ontanon1-44/+58
svn path=/trunk/; revision=19324
2006-09-25Move the Lua interface into epan... (not a plugin anymore).Luis Ontanon1-0/+69
- Rename Tap into Listener - add a mechanism to pass protocols' tap data to the Listener svn path=/trunk/; revision=19319