static_pool
moduletb_memmem
interfacetb_init
api and support allocator argumentsassert
and will abort for debug modeNote: This documents is only a mirror, if you want to see newest documents please goto: http://xmake.io/#/plugins
XMake supports the plugin module and we can develop ourself plugin module conveniently.
We can run command xmake -h
to look over some builtin plugins of xmake
Plugins:
l, lua Run the lua script.
m, macro Run the given macro.
doxygen Generate the doxygen document.
hello Hello xmake!
project Create the project file.
Now we write a simple plugin demo for printing ‘hello xmake!’
-- define a plugin task
task("hello")
-- set the category for showing it in plugin category menu (optional)
set_category("plugin")
-- the main entry of the plugin
on_run(function ()
-- print 'hello xmake!'
print("hello xmake!")
end)
-- set the menu options, but we put empty options now.
set_menu {
-- usage
usage = "xmake hello [options]"
-- description
, description = "Hello xmake!"
-- options
, options = {}
}
Note: This documents is only a mirror, if you want to see newest documents please goto: http://xmake.io/#/manual
The interface is named according to some of the predefined specifications, which is more convenient to understand and easy to use.
It’s according to the following rules:
Interfaces | Description |
---|---|
is_ + xxx |
Condition interfaces |
set_ + xxx |
Set and override the previous settings |
add_ + xxx |
Set and append settings |
s + xxx |
Support multi-parameters, .e.g:add_files("*.c", "test.cpp") |
on_ + xxx |
Set and override builtin script |
before_ + xxx |
Set and run this script before running builtin-script |
after_ + xxx |
Set and run this script after running builtin-script |
scope("name") |
Define a description scope, .e.g target("xxx") , option("xxx") |
scope/settings | Indentation with spaces |