2018-05-26 07:49:37 +00:00
|
|
|
version(1);
|
|
|
|
project_name = "4coder";
|
2019-11-07 05:58:08 +00:00
|
|
|
|
2018-05-26 07:49:37 +00:00
|
|
|
patterns = {
|
|
|
|
"*.c",
|
|
|
|
"*.cpp",
|
|
|
|
"*.h",
|
|
|
|
"*.m",
|
2020-01-17 03:58:24 +00:00
|
|
|
"*.mm",
|
2018-05-26 07:49:37 +00:00
|
|
|
"*.bat",
|
|
|
|
"*.sh",
|
|
|
|
"*.4coder",
|
|
|
|
"*.txt",
|
|
|
|
};
|
|
|
|
blacklist_patterns = {
|
|
|
|
".*",
|
|
|
|
};
|
2018-08-26 09:55:12 +00:00
|
|
|
load_paths_only = {
|
|
|
|
{"."},
|
|
|
|
};
|
2018-05-26 07:49:37 +00:00
|
|
|
load_paths = {
|
2018-06-02 04:06:13 +00:00
|
|
|
{ load_paths_only, .os = "win" },
|
|
|
|
{ load_paths_only, .os = "linux"},
|
|
|
|
{ load_paths_only, .os = "mac" },
|
2018-05-26 07:49:37 +00:00
|
|
|
};
|
2017-02-06 13:49:00 +00:00
|
|
|
|
2019-10-01 22:03:21 +00:00
|
|
|
build_x64_win32 = "echo build: x64 & bin\\build.bat";
|
2019-12-18 03:38:08 +00:00
|
|
|
build_x86_win32 = "echo build: x86 & bin\\build.bat /DDEV_BUILD_X86";
|
2020-02-28 02:26:37 +00:00
|
|
|
build_x64_linux = "echo build: x64 & bin/build-linux.sh";
|
|
|
|
build_x86_linux = "echo build: x86 & bin/build-linux.sh -DDEV_BUILD_X86";
|
2020-01-19 18:30:37 +00:00
|
|
|
build_x64_mac = "echo build: x64 & bin/build-mac.sh";
|
|
|
|
build_x86_mac = "echo build: x86 & bin/build-mac.sh -DDEV_BUILD_X86";
|
2018-05-07 02:47:22 +00:00
|
|
|
|
2018-05-26 07:49:37 +00:00
|
|
|
command_list = {
|
|
|
|
{ .name = "build x64",
|
2018-06-04 08:57:36 +00:00
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
2019-10-01 22:03:21 +00:00
|
|
|
.cmd = { {build_x64_win32, .os = "win" },
|
2020-01-19 18:30:37 +00:00
|
|
|
{build_x64_linux, .os = "linux"},
|
|
|
|
{build_x64_mac , .os = "mac" }, }, },
|
2019-11-07 05:58:08 +00:00
|
|
|
|
2019-12-18 03:38:08 +00:00
|
|
|
{ .name = "build x86",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { {build_x86_win32, .os = "win" },
|
2020-01-19 18:30:37 +00:00
|
|
|
{build_x86_linux, .os = "linux"},
|
|
|
|
{build_x86_mac , .os = "mac" }, }, },
|
2019-12-18 03:38:08 +00:00
|
|
|
|
2019-11-07 05:58:08 +00:00
|
|
|
{ .name = "package",
|
|
|
|
.out = "*compilation*", .footer_panel = false, .save_dirty_files = true,
|
2020-02-28 02:26:37 +00:00
|
|
|
.cmd = { {"echo package & bin\\package.bat", .os = "win" },
|
|
|
|
{"echo package & bin/package.sh" , .os = "linux"},
|
2019-11-07 05:58:08 +00:00
|
|
|
{"echo package & bin/package.sh" , .os = "mac" }, }, },
|
2019-10-01 21:07:39 +00:00
|
|
|
|
2018-08-26 09:55:12 +00:00
|
|
|
{ .name = "run one time",
|
|
|
|
.out = "*run*", .footer_panel = false, .save_dirty_files = false,
|
2020-01-19 18:30:37 +00:00
|
|
|
.cmd = { { "pushd ..\\build & one_time", .os = "win" },
|
|
|
|
{ "pushd ../build & one_time", .os = "mac" }, }, },
|
2019-10-01 21:07:39 +00:00
|
|
|
|
2019-12-08 02:53:01 +00:00
|
|
|
{ .name = "build custom api docs",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
2020-01-19 18:30:37 +00:00
|
|
|
.cmd = { { "custom\\bin\\build_one_time docs\\4ed_doc_custom_api_main.cpp ..\\build", .os = "win" },
|
|
|
|
{ "custom/bin/build_one_time.sh docs/4ed_doc_custom_api_main.cpp ../build", .os = "mac" }, }, },
|
2019-12-08 02:53:01 +00:00
|
|
|
|
2019-09-27 03:52:29 +00:00
|
|
|
{ .name = "build C++ lexer generator",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
2019-10-01 23:34:54 +00:00
|
|
|
.cmd = { { "custom\\bin\\build_one_time custom\\languages\\4coder_cpp_lexer_gen.cpp ..\\build", .os = "win" }, }, },
|
2019-10-01 21:07:39 +00:00
|
|
|
|
2019-09-27 03:52:29 +00:00
|
|
|
{ .name = "build token tester",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
2019-10-03 02:58:05 +00:00
|
|
|
.cmd = { { "custom\\bin\\build_one_time custom\\languages\\4coder_cpp_lexer_test.cpp ..\\build", .os = "win" }, }, },
|
|
|
|
|
|
|
|
{ .name = "build system api",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { { "custom\\bin\\build_one_time 4ed_system_api.cpp ..\\build", .os = "win" }, }, },
|
|
|
|
|
|
|
|
{ .name = "build font api",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { { "custom\\bin\\build_one_time 4ed_font_api.cpp ..\\build", .os = "win" }, }, },
|
|
|
|
|
|
|
|
{ .name = "build graphics api",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { { "custom\\bin\\build_one_time 4ed_graphics_api.cpp ..\\build", .os = "win" }, }, },
|
2019-10-03 23:00:31 +00:00
|
|
|
|
|
|
|
{ .name = "build api parser",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
2019-10-07 03:09:21 +00:00
|
|
|
.cmd = { { "custom\\bin\\build_one_time 4ed_api_parser_main.cpp ..\\build & copy /B ..\\build\\one_time.exe ..\\build\\api_parser.exe", .os = "win" }, }, },
|
|
|
|
|
|
|
|
{ .name = "build api checker",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { { "custom\\bin\\build_one_time 4ed_api_check.cpp ..\\build & copy /B ..\\build\\one_time.exe ..\\build\\api_checker.exe", .os = "win" }, }, },
|
2019-10-05 02:48:05 +00:00
|
|
|
|
2019-10-10 00:07:38 +00:00
|
|
|
{ .name = "build keycode generator",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { { "custom\\bin\\build_one_time 4ed_generate_keycodes.cpp ..\\build", .os = "win" }, }, },
|
|
|
|
|
2019-12-13 05:02:40 +00:00
|
|
|
{ .name = "build site render",
|
|
|
|
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true,
|
|
|
|
.cmd = { { "custom\\bin\\build_one_time site/4ed_site_render_main.cpp ..\\build", .os = "win" }, }, },
|
|
|
|
|
2019-10-05 02:48:05 +00:00
|
|
|
{ .name = "generate custom api master list",
|
|
|
|
.out = "*run*", .footer_panel = false, .save_dirty_files = false,
|
|
|
|
.cmd = { { "..\\build\\api_parser 4ed_api_implementation.cpp", .os = "win" }, }, },
|
2018-05-26 07:49:37 +00:00
|
|
|
};
|
2017-02-06 13:49:00 +00:00
|
|
|
|
2019-11-07 05:58:08 +00:00
|
|
|
fkey_command[1] = "build x64";
|
2019-12-08 02:53:01 +00:00
|
|
|
fkey_command[2] = "build custom api docs";
|
2019-12-13 05:02:40 +00:00
|
|
|
fkey_command[3] = "build site render";
|
2019-11-07 05:58:08 +00:00
|
|
|
fkey_command[4] = "run one time";
|
|
|
|
fkey_command[5] = "build C++ lexer generator";
|
|
|
|
fkey_command[6] = "build token tester";
|
|
|
|
fkey_command[11] = "package";
|
2019-09-27 03:52:29 +00:00
|
|
|
|
|
|
|
|