Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generators #9

Draft
wants to merge 54 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4f965cb
setup config file
glcraft Jan 23, 2023
4b0f729
remove glap option deps from programs
glcraft Jan 23, 2023
1967ec2
options check if std library available
glcraft Jan 23, 2023
afd5506
convert_to: impl gcc way for fallback
glcraft Nov 28, 2022
2959371
add console style
glcraft Nov 28, 2022
f325814
add print
glcraft Nov 28, 2022
072ac53
move help in generators
glcraft Nov 28, 2022
1deed38
update help to work with the new model
glcraft Nov 28, 2022
0282ace
remove extra newline
glcraft Nov 28, 2022
9898848
Add ability to get help of command from program
glcraft Nov 28, 2022
cc786ba
update example
glcraft Nov 28, 2022
5a8f896
rename help concepts
glcraft Nov 30, 2022
28754c6
update example
glcraft Nov 28, 2022
636ab28
initialize new target
glcraft Nov 29, 2022
8f03197
update example
glcraft Nov 30, 2022
c9f6032
rename longname => name
glcraft Nov 30, 2022
e13dbe5
codepoint_to_utf8 now inline
glcraft Nov 30, 2022
2cace2e
add missing header
glcraft Nov 30, 2022
c2c47c0
add gitignore test lua
glcraft Dec 1, 2022
eca4f8f
correct name param
Dec 1, 2022
d905894
update gitignore
glcraft Dec 2, 2022
5f372d9
add config import in base
glcraft Jan 23, 2023
d7f528c
add module and std module in config
glcraft Jan 23, 2023
ef7ff32
add missing endif
glcraft Jan 23, 2023
ad9cba9
add config in glap module
glcraft Jan 23, 2023
7099fbd
fix fmt import
glcraft Jan 23, 2023
ab4d674
add missing character
glcraft Jan 23, 2023
5042a42
fix help header
glcraft Jan 23, 2023
7f708cf
move help in generators
glcraft Nov 28, 2022
b3415e7
update help to work with the new model
glcraft Nov 28, 2022
fdf4382
Add ability to get help of command from program
glcraft Nov 28, 2022
c2c2ca3
rename help concepts
glcraft Nov 30, 2022
e5083fc
rename longname => name
glcraft Nov 30, 2022
740fb51
add missing namespace
glcraft Jan 22, 2023
f76f0a6
remove preproc
glcraft Jan 22, 2023
94b7a7f
add missing fonction on windows
glcraft Jan 22, 2023
5ebce4f
use cout instead of print
glcraft Jan 22, 2023
be89d87
remove print from glap fmt
glcraft Jan 22, 2023
3f0324d
config.h in buildir/include/glap
glcraft Jan 23, 2023
4abd171
remove sample from git
glcraft Jan 23, 2023
6ca2292
add config.h in core base
glcraft Jan 23, 2023
1a8a77f
glap module : config in glap folder
glcraft Jan 23, 2023
f6a47cd
fix wrong duplication code
glcraft Jan 25, 2023
8511a28
add mmg rule
glcraft Jan 27, 2023
47ca2a1
improve mmg rule
glcraft Jan 27, 2023
ad7b0e1
embed rule in a function
glcraft Jan 28, 2023
35d56fd
manage lua files
glcraft Jan 29, 2023
ed554fd
WIP depend glap conf
glcraft Jan 29, 2023
735a569
move mmg rule into its target
glcraft Jan 29, 2023
f901886
remove mmg from glap xmake includes
glcraft Jan 29, 2023
b26443e
add xmake repo for test
glcraft Jan 29, 2023
a36d423
git ignore install folder
glcraft Jan 29, 2023
bc0beb4
glap add config in header files
glcraft Jan 29, 2023
1af8a59
Update HELP doc file
Feb 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP depend glap conf
  • Loading branch information
glcraft committed Jan 29, 2023
commit ed554fde19cf87702bb3ebb12715b28ad6567c87
9 changes: 7 additions & 2 deletions xmake/rules/mmg/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ end

function mmg_update_file(target, input_file, opt)
import("core.base.option")
import("core.project.depend")
local opt = opt or {}
local mmg_program = opt.mmg_program or get_mmg()
local config_dir = opt.config_dir
Expand All @@ -29,11 +30,15 @@ function mmg_update_file(target, input_file, opt)
local output_file = path.join(config_dir, input_file:gsub("%.ya?ml$", ""):gsub("%.glap", "") .. ".h")
-- generate the header file from the mmg configuration file
if option.get("verbose") then
cprint("${dim}generating %s to %s ..", input_file, output_file)
cprint("${dim}generating %s to %s ..", path.filename(input_file), path.filename(output_file))
end
os.runv(mmg_program, {"-t", "header", "-i", input_file, "-o", output_file})


depend.on_changed(function()
local mmg = get_mmg()
os.runv(mmg_program, {"-t", "header", "-i", input_file, "-o", output_file})
cprint("${dim}generating %s to %s ..", path.filename(input_file), path.filename(output_file))
end, {files = {input_file}})

return output_file
end
Expand Down