Improve build workflow
- Added batch script to build 4ed api before building the custom layer, to avoid doing several build steps; - Copy bindings and config files to the build folder when building 4ed; - Updated README;
This commit is contained in:
parent
fdc3d206ad
commit
0f9b9a1b95
|
@ -57,7 +57,9 @@ SOFTWARE.
|
|||
6. A. On windows run "bin\build.bat"
|
||||
B. On linux run "bin\build-linux.sh"
|
||||
C. On linux run "bin\build-mac.sh"
|
||||
7. Copy the files in 4coder-non-source/dist_files into the build folder created, you'll need at least the fonts folder. You only have to do this once
|
||||
|
||||
Note: If you need to extend the 4ed api, you can run "bin\build_full.bat".
|
||||
|
||||
# Notes on Major Issues
|
||||
|
||||
|
|
|
@ -569,6 +569,18 @@ build_main(Arena *arena, char *cdir, b32 update_local_theme, u32 flags, u32 arch
|
|||
fm_clear_folder(themes_folder);
|
||||
fm_make_folder_if_missing(arena, themes_folder);
|
||||
fm_copy_all(source_themes_folder, themes_folder);
|
||||
|
||||
char *config_files[] = { "ship_files/bindings.4coder",
|
||||
"../build/bindings.4coder",
|
||||
"ship_files/mac-bindings.4coder",
|
||||
"../build/mac-bindings.4coder",
|
||||
"ship_files/config.4coder",
|
||||
"../build//config.4coder" };
|
||||
|
||||
for(u32 i = 0; i < ArrayCount(config_files); i +=2) {
|
||||
fm_copy_file(config_files[i], config_files[i + 1]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fflush(stdout);
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
@echo off
|
||||
|
||||
call custom\bin\build_one_time.bat 4ed_api_parser_main.cpp
|
||||
|
||||
call one_time.exe 4ed_api_implementation.cpp
|
||||
|
||||
call bin\build.bat
|
||||
|
Loading…
Reference in New Issue