|
| 1 | +-------------------------------------------------------------------------------- |
| 2 | +-- billing-lib.lua: apigen configuration |
| 3 | +-------------------------------------------------------------------------------- |
| 4 | +-- Note that PROJECT_PATH is defined in the environment |
| 5 | +-------------------------------------------------------------------------------- |
| 6 | + |
| 7 | +local file = function(name) return { filename = name } end |
| 8 | + |
| 9 | +local luarocks_show_rock_dir = |
| 10 | + import "lua-aplicado/shell/luarocks.lua" |
| 11 | + { |
| 12 | + "luarocks_show_rock_dir" |
| 13 | + } |
| 14 | + |
| 15 | +local NAME = "pk-webservice" |
| 16 | + |
| 17 | +local EXPORTS_LIST_NAME = PROJECT_PATH |
| 18 | + .. "generated/" .. NAME .. "/code/exports/client_api.lua"; |
| 19 | + |
| 20 | +common.PROJECT_PATH = PROJECT_PATH |
| 21 | + |
| 22 | +common.www.application.url = "http://pk-webservice-api/" |
| 23 | +common.www.application.api_schema_dir = PROJECT_PATH .. "schema/client_api/" |
| 24 | +common.www.application.have_unity_client = false |
| 25 | +-- common.www.application.session_checker_file_name = false |
| 26 | + |
| 27 | +common.www.application.db_tables_filename = "pk-webservice/db/tables.lua" |
| 28 | +common.www.application.webservice_request_filename = "pk-webservice/webservice/request.lua" |
| 29 | + |
| 30 | +common.www.application.code.exports = |
| 31 | +{ |
| 32 | + file ("lua-nucleo/code/exports.lua"); |
| 33 | + file ("lua-aplicado/code/exports.lua"); |
| 34 | + file ("pk-core/code/exports.lua"); |
| 35 | + file ("pk-engine/code/exports.lua"); |
| 36 | +-- TODO: FIXME: real client_api exportlist here |
| 37 | +-- file (EXPORTS_LIST_NAME); |
| 38 | +} |
| 39 | + |
| 40 | +common.www.application.code.requires = |
| 41 | +{ |
| 42 | + file ("pk-engine/code/requires.lua"); |
| 43 | +} |
| 44 | + |
| 45 | +common.www.application.code.globals = |
| 46 | +{ |
| 47 | + file ("lua-nucleo/code/foreign-globals/luajit2.lua"); |
| 48 | + file ("lua-nucleo/code/foreign-globals/lua5_1.lua"); |
| 49 | + file ("lua-nucleo/code/globals.lua"); |
| 50 | +} |
| 51 | + |
| 52 | +common.www.application.generated = |
| 53 | +{ |
| 54 | + file_root = PROJECT_PATH .. "/generated/"; |
| 55 | + |
| 56 | + api_version_filename = "client_api_version.lua"; |
| 57 | + handlers_index_filename = "handlers.lua"; |
| 58 | + data_formats_filename = "formats.lua"; |
| 59 | + handlers_dir_name = "handlers"; |
| 60 | + |
| 61 | + exports_dir_name = "lib"; |
| 62 | + exports_list_name = EXPORTS_LIST_NAME; |
| 63 | + |
| 64 | + context_extensions_dir_name = "pk-webservice/ext"; |
| 65 | + context_extensions_list_name = "pk-webservice/extensions.lua"; |
| 66 | + |
| 67 | + doc_md_filename = PROJECT_PATH .. "doc/client_api.md"; |
| 68 | + doc_pdf_filename = PROJECT_PATH .. "doc/client_api.pdf"; |
| 69 | + doc_latex_template_filename = |
| 70 | + luarocks_show_rock_dir("pk-tools.apigen.doc.template") |
| 71 | + .. "/" .. "src/doc/template/latex.template"; |
| 72 | + |
| 73 | + base_url_prefix = "/"; |
| 74 | + |
| 75 | + -- |
| 76 | + |
| 77 | + unity_api_filename = "/dev/null"; |
| 78 | + test_dir_name = "/dev/null"; |
| 79 | +} |
| 80 | + |
| 81 | +apigen = |
| 82 | +{ |
| 83 | + action = |
| 84 | + { |
| 85 | + name = "help"; |
| 86 | + param = |
| 87 | + { |
| 88 | + -- No parameters |
| 89 | + }; |
| 90 | + }; |
| 91 | +} |
0 commit comments