dub 0.2.2 → 0.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of dub might be problematic. Click here for more details.
- data/.gitignore +8 -0
- data/History.txt +32 -0
- data/LICENSE +20 -0
- data/README.rdoc +48 -0
- data/Rakefile +58 -0
- data/dub.gemspec +197 -0
- data/lib/dub/argument.rb +275 -0
- data/lib/dub/entities_unescape.rb +16 -0
- data/lib/dub/function.rb +163 -0
- data/lib/dub/function_group.rb +72 -0
- data/lib/dub/generator.rb +15 -0
- data/lib/dub/group.rb +24 -0
- data/lib/dub/klass.rb +231 -0
- data/lib/dub/lua/class.cpp.erb +83 -0
- data/lib/dub/lua/class_gen.rb +97 -0
- data/lib/dub/lua/function.cpp.erb +18 -0
- data/lib/dub/lua/function_gen.rb +258 -0
- data/lib/dub/lua/group.cpp.erb +9 -0
- data/lib/dub/lua/lua_cpp_helper.h +141 -0
- data/lib/dub/lua/namespace.cpp.erb +40 -0
- data/lib/dub/lua/namespace_gen.rb +88 -0
- data/lib/dub/lua.rb +24 -0
- data/lib/dub/member_extraction.rb +92 -0
- data/lib/dub/namespace.rb +277 -0
- data/lib/dub/parser.rb +46 -0
- data/lib/dub/templates/lua_template.erb +21 -0
- data/lib/dub/version.rb +3 -0
- data/lib/dub.rb +23 -20
- data/test/argument_test.rb +547 -0
- data/test/fixtures/app/CMakeLists.txt +54 -0
- data/test/fixtures/app/Doxyfile +1600 -0
- data/test/fixtures/app/bindings/all_lua.cpp +299 -0
- data/test/fixtures/app/include/matrix.h +140 -0
- data/test/fixtures/app/make_lua_bindings.rb +13 -0
- data/test/fixtures/app/vendor/lua/CMakeLists.txt +25 -0
- data/test/fixtures/app/vendor/lua/COPYRIGHT +34 -0
- data/test/fixtures/app/vendor/lua/HISTORY +183 -0
- data/test/fixtures/app/vendor/lua/INSTALL +99 -0
- data/test/fixtures/app/vendor/lua/Makefile +183 -0
- data/test/fixtures/app/vendor/lua/README +37 -0
- data/test/fixtures/app/vendor/lua/lapi.c +1080 -0
- data/test/fixtures/app/vendor/lua/lapi.h +16 -0
- data/test/fixtures/app/vendor/lua/lauxlib.c +653 -0
- data/test/fixtures/app/vendor/lua/lauxlib.h +174 -0
- data/test/fixtures/app/vendor/lua/lbaselib.c +643 -0
- data/test/fixtures/app/vendor/lua/lcode.c +839 -0
- data/test/fixtures/app/vendor/lua/lcode.h +76 -0
- data/test/fixtures/app/vendor/lua/ldblib.c +397 -0
- data/test/fixtures/app/vendor/lua/ldebug.c +622 -0
- data/test/fixtures/app/vendor/lua/ldebug.h +33 -0
- data/test/fixtures/app/vendor/lua/ldo.c +516 -0
- data/test/fixtures/app/vendor/lua/ldo.h +57 -0
- data/test/fixtures/app/vendor/lua/ldump.c +164 -0
- data/test/fixtures/app/vendor/lua/lfunc.c +174 -0
- data/test/fixtures/app/vendor/lua/lfunc.h +34 -0
- data/test/fixtures/app/vendor/lua/lgc.c +711 -0
- data/test/fixtures/app/vendor/lua/lgc.h +110 -0
- data/test/fixtures/app/vendor/lua/liblua.a +0 -0
- data/test/fixtures/app/vendor/lua/linit.c +38 -0
- data/test/fixtures/app/vendor/lua/liolib.c +532 -0
- data/test/fixtures/app/vendor/lua/llex.c +461 -0
- data/test/fixtures/app/vendor/lua/llex.h +81 -0
- data/test/fixtures/app/vendor/lua/llimits.h +128 -0
- data/test/fixtures/app/vendor/lua/lmathlib.c +263 -0
- data/test/fixtures/app/vendor/lua/lmem.c +86 -0
- data/test/fixtures/app/vendor/lua/lmem.h +49 -0
- data/test/fixtures/app/vendor/lua/loadlib.c +664 -0
- data/test/fixtures/app/vendor/lua/lobject.c +214 -0
- data/test/fixtures/app/vendor/lua/lobject.h +381 -0
- data/test/fixtures/app/vendor/lua/lopcodes.c +102 -0
- data/test/fixtures/app/vendor/lua/lopcodes.h +268 -0
- data/test/fixtures/app/vendor/lua/loslib.c +244 -0
- data/test/fixtures/app/vendor/lua/lparser.c +1337 -0
- data/test/fixtures/app/vendor/lua/lparser.h +82 -0
- data/test/fixtures/app/vendor/lua/lstate.c +214 -0
- data/test/fixtures/app/vendor/lua/lstate.h +168 -0
- data/test/fixtures/app/vendor/lua/lstring.c +111 -0
- data/test/fixtures/app/vendor/lua/lstring.h +31 -0
- data/test/fixtures/app/vendor/lua/lstrlib.c +868 -0
- data/test/fixtures/app/vendor/lua/ltable.c +588 -0
- data/test/fixtures/app/vendor/lua/ltable.h +40 -0
- data/test/fixtures/app/vendor/lua/ltablib.c +278 -0
- data/test/fixtures/app/vendor/lua/ltm.c +75 -0
- data/test/fixtures/app/vendor/lua/ltm.h +54 -0
- data/test/fixtures/app/vendor/lua/lua.c +695 -0
- data/test/fixtures/app/vendor/lua/lua.h +385 -0
- data/test/fixtures/app/vendor/lua/lua_dub_helper.h +77 -0
- data/test/fixtures/app/vendor/lua/luac +0 -0
- data/test/fixtures/app/vendor/lua/luac.c +200 -0
- data/test/fixtures/app/vendor/lua/luaconf.h +762 -0
- data/test/fixtures/app/vendor/lua/lualib.h +53 -0
- data/test/fixtures/app/vendor/lua/lundump.c +223 -0
- data/test/fixtures/app/vendor/lua/lundump.h +36 -0
- data/test/fixtures/app/vendor/lua/lvm.c +765 -0
- data/test/fixtures/app/vendor/lua/lvm.h +36 -0
- data/test/fixtures/app/vendor/lua/lzio.c +82 -0
- data/test/fixtures/app/vendor/lua/lzio.h +67 -0
- data/test/fixtures/app/vendor/lua/matrix.h +102 -0
- data/test/fixtures/app/vendor/lua/print.c +227 -0
- data/test/fixtures/app/vendor/lua/test/README +26 -0
- data/test/fixtures/app/vendor/lua/test/bisect.lua +27 -0
- data/test/fixtures/app/vendor/lua/test/cf.lua +16 -0
- data/test/fixtures/app/vendor/lua/test/echo.lua +5 -0
- data/test/fixtures/app/vendor/lua/test/env.lua +7 -0
- data/test/fixtures/app/vendor/lua/test/factorial.lua +32 -0
- data/test/fixtures/app/vendor/lua/test/fib.lua +40 -0
- data/test/fixtures/app/vendor/lua/test/fibfor.lua +13 -0
- data/test/fixtures/app/vendor/lua/test/globals.lua +13 -0
- data/test/fixtures/app/vendor/lua/test/hello.lua +3 -0
- data/test/fixtures/app/vendor/lua/test/life.lua +111 -0
- data/test/fixtures/app/vendor/lua/test/luac.lua +7 -0
- data/test/fixtures/app/vendor/lua/test/printf.lua +7 -0
- data/test/fixtures/app/vendor/lua/test/readonly.lua +12 -0
- data/test/fixtures/app/vendor/lua/test/sieve.lua +29 -0
- data/test/fixtures/app/vendor/lua/test/sort.lua +66 -0
- data/test/fixtures/app/vendor/lua/test/table.lua +12 -0
- data/test/fixtures/app/vendor/lua/test/trace-calls.lua +32 -0
- data/test/fixtures/app/vendor/lua/test/trace-globals.lua +38 -0
- data/test/fixtures/app/vendor/lua/test/xd.lua +14 -0
- data/test/fixtures/app/xml/classdub_1_1_matrix.xml +281 -0
- data/test/fixtures/app/xml/classdub_1_1_t_mat.xml +233 -0
- data/test/fixtures/app/xml/combine.xslt +15 -0
- data/test/fixtures/app/xml/compound.xsd +814 -0
- data/test/fixtures/app/xml/dir_53661a2bdeb1d55e60581a7e15deb763.xml +12 -0
- data/test/fixtures/app/xml/index.xml +44 -0
- data/test/fixtures/app/xml/index.xsd +66 -0
- data/test/fixtures/app/xml/matrix_8h.xml +157 -0
- data/test/fixtures/app/xml/namespacedub.xml +41 -0
- data/test/fixtures/classcv_1_1_mat.xml +1996 -0
- data/test/fixtures/classcv_1_1_point__.xml +341 -0
- data/test/fixtures/classcv_1_1_scalar__.xml +269 -0
- data/test/fixtures/classcv_1_1_size__.xml +270 -0
- data/test/fixtures/dummy_class.cpp.erb +1 -0
- data/test/fixtures/dummy_function.cpp.erb +1 -0
- data/test/fixtures/group___magic_type.xml +406 -0
- data/test/fixtures/namespacecv.xml +12659 -0
- data/test/function_group_test.rb +24 -0
- data/test/function_test.rb +395 -0
- data/test/group_test.rb +155 -0
- data/test/helper.rb +34 -0
- data/test/klass_test.rb +387 -0
- data/test/lua_function_gen_test.rb +195 -0
- data/test/namespace_test.rb +220 -0
- data/test/parser_test.rb +36 -0
- metadata +211 -275
- checksums.yaml +0 -7
- data/lib/open_api_sdk/analytics.rb +0 -99
- data/lib/open_api_sdk/domains.rb +0 -353
- data/lib/open_api_sdk/dub.rb +0 -88
- data/lib/open_api_sdk/links.rb +0 -766
- data/lib/open_api_sdk/metatags.rb +0 -54
- data/lib/open_api_sdk/models/operations/bulkcreatelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/bulkupdatelinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/color.rb +0 -24
- data/lib/open_api_sdk/models/operations/createdomain_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/createdomain_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createlink_requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/createlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/createtag_requestbody.rb +0 -32
- data/lib/open_api_sdk/models/operations/createtag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/data.rb +0 -83
- data/lib/open_api_sdk/models/operations/deletedomain_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletedomain_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletedomain_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletelink_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/deletelink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/deletelink_responsebody.rb +0 -24
- data/lib/open_api_sdk/models/operations/event.rb +0 -21
- data/lib/open_api_sdk/models/operations/getlinkinfo_request.rb +0 -33
- data/lib/open_api_sdk/models/operations/getlinkinfo_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getlinks_request.rb +0 -51
- data/lib/open_api_sdk/models/operations/getlinks_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getlinkscount_request.rb +0 -48
- data/lib/open_api_sdk/models/operations/getlinkscount_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getmetatags_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getmetatags_response.rb +0 -33
- data/lib/open_api_sdk/models/operations/getmetatags_responsebody.rb +0 -30
- data/lib/open_api_sdk/models/operations/getqrcode_request.rb +0 -39
- data/lib/open_api_sdk/models/operations/getqrcode_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/gettags_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/getworkspace_request.rb +0 -24
- data/lib/open_api_sdk/models/operations/getworkspace_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/groupby.rb +0 -28
- data/lib/open_api_sdk/models/operations/interval.rb +0 -25
- data/lib/open_api_sdk/models/operations/level.rb +0 -21
- data/lib/open_api_sdk/models/operations/listdomains_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/paymentprocessor.rb +0 -20
- data/lib/open_api_sdk/models/operations/requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/retrieveanalytics_request.rb +0 -81
- data/lib/open_api_sdk/models/operations/retrieveanalytics_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/sort.rb +0 -20
- data/lib/open_api_sdk/models/operations/trackcustomer_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/trackcustomer_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/trackcustomer_responsebody.rb +0 -33
- data/lib/open_api_sdk/models/operations/tracklead_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/tracklead_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/tracklead_responsebody.rb +0 -42
- data/lib/open_api_sdk/models/operations/tracksale_requestbody.rb +0 -42
- data/lib/open_api_sdk/models/operations/tracksale_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/tracksale_responsebody.rb +0 -42
- data/lib/open_api_sdk/models/operations/updatedomain_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatedomain_requestbody.rb +0 -33
- data/lib/open_api_sdk/models/operations/updatedomain_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatelink_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatelink_requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/updatelink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updatetag_color.rb +0 -24
- data/lib/open_api_sdk/models/operations/updatetag_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updatetag_requestbody.rb +0 -32
- data/lib/open_api_sdk/models/operations/updatetag_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/updateworkspace_request.rb +0 -27
- data/lib/open_api_sdk/models/operations/updateworkspace_requestbody.rb +0 -27
- data/lib/open_api_sdk/models/operations/updateworkspace_response.rb +0 -60
- data/lib/open_api_sdk/models/operations/upsertlink_requestbody.rb +0 -95
- data/lib/open_api_sdk/models/operations/upsertlink_response.rb +0 -60
- data/lib/open_api_sdk/models/operations.rb +0 -74
- data/lib/open_api_sdk/models/shared/badrequest.rb +0 -24
- data/lib/open_api_sdk/models/shared/code.rb +0 -18
- data/lib/open_api_sdk/models/shared/color.rb +0 -24
- data/lib/open_api_sdk/models/shared/conflict.rb +0 -24
- data/lib/open_api_sdk/models/shared/conflict_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/conflict_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/countrycode.rb +0 -267
- data/lib/open_api_sdk/models/shared/domains.rb +0 -27
- data/lib/open_api_sdk/models/shared/domainschema.rb +0 -48
- data/lib/open_api_sdk/models/shared/error.rb +0 -30
- data/lib/open_api_sdk/models/shared/forbidden.rb +0 -24
- data/lib/open_api_sdk/models/shared/forbidden_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/forbidden_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/geo.rb +0 -771
- data/lib/open_api_sdk/models/shared/internalservererror.rb +0 -24
- data/lib/open_api_sdk/models/shared/internalservererror_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/internalservererror_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/inviteexpired.rb +0 -24
- data/lib/open_api_sdk/models/shared/inviteexpired_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/inviteexpired_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/linkgeotargeting.rb +0 -771
- data/lib/open_api_sdk/models/shared/linkschema.rb +0 -142
- data/lib/open_api_sdk/models/shared/notfound.rb +0 -24
- data/lib/open_api_sdk/models/shared/notfound_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/notfound_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/plan.rb +0 -24
- data/lib/open_api_sdk/models/shared/ratelimitexceeded.rb +0 -24
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/ratelimitexceeded_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/role.rb +0 -19
- data/lib/open_api_sdk/models/shared/security.rb +0 -24
- data/lib/open_api_sdk/models/shared/tagschema.rb +0 -30
- data/lib/open_api_sdk/models/shared/unauthorized.rb +0 -24
- data/lib/open_api_sdk/models/shared/unauthorized_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/unauthorized_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/unprocessableentity.rb +0 -24
- data/lib/open_api_sdk/models/shared/unprocessableentity_code.rb +0 -18
- data/lib/open_api_sdk/models/shared/unprocessableentity_error.rb +0 -30
- data/lib/open_api_sdk/models/shared/users.rb +0 -24
- data/lib/open_api_sdk/models/shared/workspaceschema.rb +0 -81
- data/lib/open_api_sdk/models/shared.rb +0 -49
- data/lib/open_api_sdk/qr_codes.rb +0 -97
- data/lib/open_api_sdk/sdkconfiguration.rb +0 -52
- data/lib/open_api_sdk/tags.rb +0 -272
- data/lib/open_api_sdk/track.rb +0 -276
- data/lib/open_api_sdk/utils/metadata_fields.rb +0 -150
- data/lib/open_api_sdk/utils/t.rb +0 -59
- data/lib/open_api_sdk/utils/utils.rb +0 -772
- data/lib/open_api_sdk/workspaces.rb +0 -192
@@ -0,0 +1,99 @@
|
|
1
|
+
INSTALL for Lua 5.1
|
2
|
+
|
3
|
+
* Building Lua
|
4
|
+
------------
|
5
|
+
Lua is built in the src directory, but the build process can be
|
6
|
+
controlled from the top-level Makefile.
|
7
|
+
|
8
|
+
Building Lua on Unix systems should be very easy. First do "make" and
|
9
|
+
see if your platform is listed. If so, just do "make xxx", where xxx
|
10
|
+
is your platform name. The platforms currently supported are:
|
11
|
+
aix ansi bsd freebsd generic linux macosx mingw posix solaris
|
12
|
+
|
13
|
+
If your platform is not listed, try the closest one or posix, generic,
|
14
|
+
ansi, in this order.
|
15
|
+
|
16
|
+
See below for customization instructions and for instructions on how
|
17
|
+
to build with other Windows compilers.
|
18
|
+
|
19
|
+
If you want to check that Lua has been built correctly, do "make test"
|
20
|
+
after building Lua. Also, have a look at the example programs in test.
|
21
|
+
|
22
|
+
* Installing Lua
|
23
|
+
--------------
|
24
|
+
Once you have built Lua, you may want to install it in an official
|
25
|
+
place in your system. In this case, do "make install". The official
|
26
|
+
place and the way to install files are defined in Makefile. You must
|
27
|
+
have the right permissions to install files.
|
28
|
+
|
29
|
+
If you want to build and install Lua in one step, do "make xxx install",
|
30
|
+
where xxx is your platform name.
|
31
|
+
|
32
|
+
If you want to install Lua locally, then do "make local". This will
|
33
|
+
create directories bin, include, lib, man, and install Lua there as
|
34
|
+
follows:
|
35
|
+
|
36
|
+
bin: lua luac
|
37
|
+
include: lua.h luaconf.h lualib.h lauxlib.h lua.hpp
|
38
|
+
lib: liblua.a
|
39
|
+
man/man1: lua.1 luac.1
|
40
|
+
|
41
|
+
These are the only directories you need for development.
|
42
|
+
|
43
|
+
There are man pages for lua and luac, in both nroff and html, and a
|
44
|
+
reference manual in html in doc, some sample code in test, and some
|
45
|
+
useful stuff in etc. You don't need these directories for development.
|
46
|
+
|
47
|
+
If you want to install Lua locally, but in some other directory, do
|
48
|
+
"make install INSTALL_TOP=xxx", where xxx is your chosen directory.
|
49
|
+
|
50
|
+
See below for instructions for Windows and other systems.
|
51
|
+
|
52
|
+
* Customization
|
53
|
+
-------------
|
54
|
+
Three things can be customized by editing a file:
|
55
|
+
- Where and how to install Lua -- edit Makefile.
|
56
|
+
- How to build Lua -- edit src/Makefile.
|
57
|
+
- Lua features -- edit src/luaconf.h.
|
58
|
+
|
59
|
+
You don't actually need to edit the Makefiles because you may set the
|
60
|
+
relevant variables when invoking make.
|
61
|
+
|
62
|
+
On the other hand, if you need to select some Lua features, you'll need
|
63
|
+
to edit src/luaconf.h. The edited file will be the one installed, and
|
64
|
+
it will be used by any Lua clients that you build, to ensure consistency.
|
65
|
+
|
66
|
+
We strongly recommend that you enable dynamic loading. This is done
|
67
|
+
automatically for all platforms listed above that have this feature
|
68
|
+
(and also Windows). See src/luaconf.h and also src/Makefile.
|
69
|
+
|
70
|
+
* Building Lua on Windows and other systems
|
71
|
+
-----------------------------------------
|
72
|
+
If you're not using the usual Unix tools, then the instructions for
|
73
|
+
building Lua depend on the compiler you use. You'll need to create
|
74
|
+
projects (or whatever your compiler uses) for building the library,
|
75
|
+
the interpreter, and the compiler, as follows:
|
76
|
+
|
77
|
+
library: lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c
|
78
|
+
lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c
|
79
|
+
ltable.c ltm.c lundump.c lvm.c lzio.c
|
80
|
+
lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c
|
81
|
+
ltablib.c lstrlib.c loadlib.c linit.c
|
82
|
+
|
83
|
+
interpreter: library, lua.c
|
84
|
+
|
85
|
+
compiler: library, luac.c print.c
|
86
|
+
|
87
|
+
If you use Visual Studio .NET, you can use etc/luavs.bat in its
|
88
|
+
"Command Prompt".
|
89
|
+
|
90
|
+
If all you want is to build the Lua interpreter, you may put all .c files
|
91
|
+
in a single project, except for luac.c and print.c. Or just use etc/all.c.
|
92
|
+
|
93
|
+
To use Lua as a library in your own programs, you'll need to know how to
|
94
|
+
create and use libraries with your compiler.
|
95
|
+
|
96
|
+
As mentioned above, you may edit luaconf.h to select some features before
|
97
|
+
building Lua.
|
98
|
+
|
99
|
+
(end of INSTALL)
|
@@ -0,0 +1,183 @@
|
|
1
|
+
# makefile for building Lua
|
2
|
+
# see ../INSTALL for installation instructions
|
3
|
+
# see ../Makefile and luaconf.h for further customization
|
4
|
+
|
5
|
+
# == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
|
6
|
+
|
7
|
+
# Your platform. See PLATS for possible values.
|
8
|
+
PLAT= none
|
9
|
+
|
10
|
+
CC= g++
|
11
|
+
CFLAGS= -g -O2 -Wall $(MYCFLAGS)
|
12
|
+
AR= ar rcu
|
13
|
+
RANLIB= ranlib
|
14
|
+
RM= rm -f
|
15
|
+
LIBS= -lm $(MYLIBS)
|
16
|
+
|
17
|
+
MYCFLAGS=
|
18
|
+
MYLDFLAGS=
|
19
|
+
MYLIBS=
|
20
|
+
|
21
|
+
# == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
|
22
|
+
|
23
|
+
PLATS= aix ansi bsd freebsd generic linux macosx mingw posix solaris
|
24
|
+
|
25
|
+
LUA_A= liblua.a
|
26
|
+
CORE_O= lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
|
27
|
+
lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o \
|
28
|
+
lundump.o lvm.o lzio.o
|
29
|
+
LIB_O= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o \
|
30
|
+
lstrlib.o loadlib.o linit.o
|
31
|
+
|
32
|
+
LUA_T= lua
|
33
|
+
LUA_O= lua.o
|
34
|
+
|
35
|
+
LUAC_T= luac
|
36
|
+
LUAC_O= luac.o print.o
|
37
|
+
|
38
|
+
ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
|
39
|
+
ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
|
40
|
+
ALL_A= $(LUA_A)
|
41
|
+
|
42
|
+
default: $(PLAT)
|
43
|
+
|
44
|
+
all: $(ALL_T)
|
45
|
+
|
46
|
+
o: $(ALL_O)
|
47
|
+
|
48
|
+
a: $(ALL_A)
|
49
|
+
|
50
|
+
$(LUA_A): $(CORE_O) $(LIB_O)
|
51
|
+
$(AR) $@ $?
|
52
|
+
$(RANLIB) $@
|
53
|
+
|
54
|
+
$(LUA_T): $(LUA_O) $(LUA_A)
|
55
|
+
$(CC) -o $@ $(MYLDFLAGS) $(LUA_O) $(LUA_A) $(LIBS)
|
56
|
+
|
57
|
+
$(LUAC_T): $(LUAC_O) $(LUA_A)
|
58
|
+
$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
|
59
|
+
|
60
|
+
clean:
|
61
|
+
$(RM) $(ALL_T) $(ALL_O)
|
62
|
+
|
63
|
+
depend:
|
64
|
+
@$(CC) $(CFLAGS) -MM l*.c print.c
|
65
|
+
|
66
|
+
echo:
|
67
|
+
@echo "PLAT = $(PLAT)"
|
68
|
+
@echo "CC = $(CC)"
|
69
|
+
@echo "CFLAGS = $(CFLAGS)"
|
70
|
+
@echo "AR = $(AR)"
|
71
|
+
@echo "RANLIB = $(RANLIB)"
|
72
|
+
@echo "RM = $(RM)"
|
73
|
+
@echo "MYCFLAGS = $(MYCFLAGS)"
|
74
|
+
@echo "MYLDFLAGS = $(MYLDFLAGS)"
|
75
|
+
@echo "MYLIBS = $(MYLIBS)"
|
76
|
+
|
77
|
+
# convenience targets for popular platforms
|
78
|
+
|
79
|
+
none:
|
80
|
+
@echo "Please choose a platform:"
|
81
|
+
@echo " $(PLATS)"
|
82
|
+
|
83
|
+
aix:
|
84
|
+
$(MAKE) all CC="xlc" CFLAGS="-O2 -DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl" MYLDFLAGS="-brtl -bexpall"
|
85
|
+
|
86
|
+
ansi:
|
87
|
+
$(MAKE) all MYCFLAGS=-DLUA_ANSI
|
88
|
+
|
89
|
+
bsd:
|
90
|
+
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-Wl,-E"
|
91
|
+
|
92
|
+
freebsd:
|
93
|
+
$(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-Wl,-E -lreadline"
|
94
|
+
|
95
|
+
generic:
|
96
|
+
$(MAKE) all MYCFLAGS=
|
97
|
+
|
98
|
+
linux:
|
99
|
+
$(MAKE) all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
|
100
|
+
|
101
|
+
macosx:
|
102
|
+
$(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
|
103
|
+
# use this on Mac OS X 10.4
|
104
|
+
# $(MAKE) all MYCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline"
|
105
|
+
|
106
|
+
mingw:
|
107
|
+
$(MAKE) "LUA_A=lua51.dll" "LUA_T=lua.exe" \
|
108
|
+
"AR=$(CC) -shared -o" "RANLIB=strip --strip-unneeded" \
|
109
|
+
"MYCFLAGS=-DLUA_BUILD_AS_DLL" "MYLIBS=" "MYLDFLAGS=-s" lua.exe
|
110
|
+
$(MAKE) "LUAC_T=luac.exe" luac.exe
|
111
|
+
|
112
|
+
posix:
|
113
|
+
$(MAKE) all MYCFLAGS=-DLUA_USE_POSIX
|
114
|
+
|
115
|
+
solaris:
|
116
|
+
$(MAKE) all MYCFLAGS="-DLUA_USE_POSIX -DLUA_USE_DLOPEN" MYLIBS="-ldl"
|
117
|
+
|
118
|
+
# list targets that do not create files (but not all makes understand .PHONY)
|
119
|
+
.PHONY: all $(PLATS) default o a clean depend echo none
|
120
|
+
|
121
|
+
# DO NOT DELETE
|
122
|
+
|
123
|
+
lapi.o: lapi.c lua.h luaconf.h lapi.h lobject.h llimits.h ldebug.h \
|
124
|
+
lstate.h ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h \
|
125
|
+
lundump.h lvm.h
|
126
|
+
lauxlib.o: lauxlib.c lua.h luaconf.h lauxlib.h
|
127
|
+
lbaselib.o: lbaselib.c lua.h luaconf.h lauxlib.h lualib.h
|
128
|
+
lcode.o: lcode.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \
|
129
|
+
lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h lgc.h \
|
130
|
+
ltable.h
|
131
|
+
ldblib.o: ldblib.c lua.h luaconf.h lauxlib.h lualib.h
|
132
|
+
ldebug.o: ldebug.c lua.h luaconf.h lapi.h lobject.h llimits.h lcode.h \
|
133
|
+
llex.h lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h \
|
134
|
+
lfunc.h lstring.h lgc.h ltable.h lvm.h
|
135
|
+
ldo.o: ldo.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
|
136
|
+
lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lparser.h lstring.h \
|
137
|
+
ltable.h lundump.h lvm.h
|
138
|
+
ldump.o: ldump.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h \
|
139
|
+
lzio.h lmem.h lundump.h
|
140
|
+
lfunc.o: lfunc.c lua.h luaconf.h lfunc.h lobject.h llimits.h lgc.h lmem.h \
|
141
|
+
lstate.h ltm.h lzio.h
|
142
|
+
lgc.o: lgc.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
|
143
|
+
lzio.h lmem.h ldo.h lfunc.h lgc.h lstring.h ltable.h
|
144
|
+
linit.o: linit.c lua.h luaconf.h lualib.h lauxlib.h
|
145
|
+
liolib.o: liolib.c lua.h luaconf.h lauxlib.h lualib.h
|
146
|
+
llex.o: llex.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h ltm.h \
|
147
|
+
lzio.h lmem.h llex.h lparser.h lstring.h lgc.h ltable.h
|
148
|
+
lmathlib.o: lmathlib.c lua.h luaconf.h lauxlib.h lualib.h
|
149
|
+
lmem.o: lmem.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
|
150
|
+
ltm.h lzio.h lmem.h ldo.h
|
151
|
+
loadlib.o: loadlib.c lauxlib.h lua.h luaconf.h lobject.h llimits.h \
|
152
|
+
lualib.h
|
153
|
+
lobject.o: lobject.c lua.h luaconf.h ldo.h lobject.h llimits.h lstate.h \
|
154
|
+
ltm.h lzio.h lmem.h lstring.h lgc.h lvm.h
|
155
|
+
lopcodes.o: lopcodes.c lopcodes.h llimits.h lua.h luaconf.h
|
156
|
+
loslib.o: loslib.c lua.h luaconf.h lauxlib.h lualib.h
|
157
|
+
lparser.o: lparser.c lua.h luaconf.h lcode.h llex.h lobject.h llimits.h \
|
158
|
+
lzio.h lmem.h lopcodes.h lparser.h ldebug.h lstate.h ltm.h ldo.h \
|
159
|
+
lfunc.h lstring.h lgc.h ltable.h
|
160
|
+
lstate.o: lstate.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
|
161
|
+
ltm.h lzio.h lmem.h ldo.h lfunc.h lgc.h llex.h lstring.h ltable.h
|
162
|
+
lstring.o: lstring.c lua.h luaconf.h lmem.h llimits.h lobject.h lstate.h \
|
163
|
+
ltm.h lzio.h lstring.h lgc.h
|
164
|
+
lstrlib.o: lstrlib.c lua.h luaconf.h lauxlib.h lualib.h
|
165
|
+
ltable.o: ltable.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h \
|
166
|
+
ltm.h lzio.h lmem.h ldo.h lgc.h ltable.h
|
167
|
+
ltablib.o: ltablib.c lua.h luaconf.h lauxlib.h lualib.h
|
168
|
+
ltm.o: ltm.c lua.h luaconf.h lobject.h llimits.h lstate.h ltm.h lzio.h \
|
169
|
+
lmem.h lstring.h lgc.h ltable.h
|
170
|
+
lua.o: lua.c lua.h luaconf.h lauxlib.h lualib.h
|
171
|
+
luac.o: luac.c lua.h luaconf.h lauxlib.h ldo.h lobject.h llimits.h \
|
172
|
+
lstate.h ltm.h lzio.h lmem.h lfunc.h lopcodes.h lstring.h lgc.h \
|
173
|
+
lundump.h
|
174
|
+
lundump.o: lundump.c lua.h luaconf.h ldebug.h lstate.h lobject.h \
|
175
|
+
llimits.h ltm.h lzio.h lmem.h ldo.h lfunc.h lstring.h lgc.h lundump.h
|
176
|
+
lvm.o: lvm.c lua.h luaconf.h ldebug.h lstate.h lobject.h llimits.h ltm.h \
|
177
|
+
lzio.h lmem.h ldo.h lfunc.h lgc.h lopcodes.h lstring.h ltable.h lvm.h
|
178
|
+
lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \
|
179
|
+
lzio.h
|
180
|
+
print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h \
|
181
|
+
ltm.h lzio.h lmem.h lopcodes.h lundump.h
|
182
|
+
|
183
|
+
# (end of Makefile)
|
@@ -0,0 +1,37 @@
|
|
1
|
+
README for Lua 5.1
|
2
|
+
|
3
|
+
See INSTALL for installation instructions.
|
4
|
+
See HISTORY for a summary of changes since the last released version.
|
5
|
+
|
6
|
+
* What is Lua?
|
7
|
+
------------
|
8
|
+
Lua is a powerful, light-weight programming language designed for extending
|
9
|
+
applications. Lua is also frequently used as a general-purpose, stand-alone
|
10
|
+
language. Lua is free software.
|
11
|
+
|
12
|
+
For complete information, visit Lua's web site at http://www.lua.org/ .
|
13
|
+
For an executive summary, see http://www.lua.org/about.html .
|
14
|
+
|
15
|
+
Lua has been used in many different projects around the world.
|
16
|
+
For a short list, see http://www.lua.org/uses.html .
|
17
|
+
|
18
|
+
* Availability
|
19
|
+
------------
|
20
|
+
Lua is freely available for both academic and commercial purposes.
|
21
|
+
See COPYRIGHT and http://www.lua.org/license.html for details.
|
22
|
+
Lua can be downloaded at http://www.lua.org/download.html .
|
23
|
+
|
24
|
+
* Installation
|
25
|
+
------------
|
26
|
+
Lua is implemented in pure ANSI C, and compiles unmodified in all known
|
27
|
+
platforms that have an ANSI C compiler. In most Unix-like platforms, simply
|
28
|
+
do "make" with a suitable target. See INSTALL for detailed instructions.
|
29
|
+
|
30
|
+
* Origin
|
31
|
+
------
|
32
|
+
Lua is developed at Lua.org, a laboratory of the Department of Computer
|
33
|
+
Science of PUC-Rio (the Pontifical Catholic University of Rio de Janeiro
|
34
|
+
in Brazil).
|
35
|
+
For more information about the authors, see http://www.lua.org/authors.html .
|
36
|
+
|
37
|
+
(end of README)
|