remove editor_include.h

This commit is contained in:
jacob 2025-07-31 07:35:11 -05:00
parent d9fa9e04de
commit e7207c776c
2 changed files with 0 additions and 56 deletions

26
build.c
View File

@ -476,7 +476,6 @@ void OnBuild(StringList cli_args)
Bool should_embed_in_rc = !!arg_msvc; Bool should_embed_in_rc = !!arg_msvc;
D_Tag executable_file = D_TagFromPath(&perm, StringF(&perm, Lit("%F/PowerPlay.exe"), FmtStr(out_bin_dir_path)), D_TagKind_File); D_Tag executable_file = D_TagFromPath(&perm, StringF(&perm, Lit("%F/PowerPlay.exe"), FmtStr(out_bin_dir_path)), D_TagKind_File);
D_Tag editor_include_file = D_TagFromPath(&perm, Lit("src/editor_include.h"), D_TagKind_File);
D_Tag dxc_dir = D_TagFromPath(&perm, out_dxc_dir_path, D_TagKind_Dir); D_Tag dxc_dir = D_TagFromPath(&perm, out_dxc_dir_path, D_TagKind_Dir);
D_Tag res_dir = D_TagFromPath(&perm, Lit("res"), D_TagKind_Dir); D_Tag res_dir = D_TagFromPath(&perm, Lit("res"), D_TagKind_Dir);
D_Tag icon_file = D_TagFromPath(&perm, Lit("icon.ico"), D_TagKind_File); D_Tag icon_file = D_TagFromPath(&perm, Lit("icon.ico"), D_TagKind_File);
@ -935,8 +934,6 @@ void OnBuild(StringList cli_args)
{ {
/* src_input_files will contain .c & .cpp files with names that match their parent directory */ /* src_input_files will contain .c & .cpp files with names that match their parent directory */
D_TagList src_input_files = { 0 }; D_TagList src_input_files = { 0 };
/* header_files will contain .h files with names that match their parent directory */
D_TagList header_files = { 0 };
{ {
D_Tag top_level_dir = D_TagFromPath(&perm, Lit("src"), D_TagKind_Dir); D_Tag top_level_dir = D_TagFromPath(&perm, Lit("src"), D_TagKind_Dir);
D_TagList top_level_files = { 0 }; D_TagList top_level_files = { 0 };
@ -959,15 +956,10 @@ void OnBuild(StringList cli_args)
{ {
Bool is_c = StringEqual(extension, Lit("c")); Bool is_c = StringEqual(extension, Lit("c"));
Bool is_cpp = !is_c && StringEqual(extension, Lit("cpp")); Bool is_cpp = !is_c && StringEqual(extension, Lit("cpp"));
Bool is_h = !is_c && !is_cpp && StringEqual(extension, Lit("h"));
if (is_c || is_cpp) if (is_c || is_cpp)
{ {
D_TagListAppend(&perm, &src_input_files, file); D_TagListAppend(&perm, &src_input_files, file);
} }
else if (is_h)
{
D_TagListAppend(&perm, &header_files, file);
}
} }
} }
} }
@ -1035,24 +1027,6 @@ void OnBuild(StringList cli_args)
D_TagListAppend(&perm, &link_files, obj_file); D_TagListAppend(&perm, &link_files, obj_file);
} }
} }
/* Generate include file to assist editor parsing */
{
StringList file_contents = { 0 };
StringListAppend(&perm, &file_contents, Lit("// This is an auto generated file containing all includes necessary to assist in editor parsing\n"));
for (D_TagListNode *n = header_files.first; n; n = n->next)
{
D_Tag tag = n->tag;
String name = D_GetName(tag);
String name_no_extension = StringPathNoExtension(name);
String include_path = StringF(&perm, Lit("%F/%F"), FmtStr(name_no_extension), FmtStr(name));
String line = StringF(&perm, Lit("#include \"%F\""), FmtStr(include_path));
StringListAppend(&perm, &file_contents, line);
}
StringListAppend(&perm, &file_contents, Lit(""));
String file_contents_str = StringFromStringList(&perm, Lit("\n"), file_contents);
D_ClearWrite(editor_include_file, file_contents_str);
}
} }
//- Build step: Link //- Build step: Link

View File

@ -1,30 +0,0 @@
// This is an auto generated file containing all includes necessary to assist in editor parsing
#include "app/app.h"
#include "ase/ase.h"
#include "asset_cache/asset_cache.h"
#include "base/base.h"
#include "bitbuff/bitbuff.h"
#include "collider/collider.h"
#include "draw/draw.h"
#include "dxc/dxc.h"
#include "font/font.h"
#include "gp/gp.h"
#include "inc/inc.h"
#include "json/json.h"
#include "kernel/kernel.h"
#include "mixer/mixer.h"
#include "mp3/mp3.h"
#include "net/net.h"
#include "platform/platform.h"
#include "playback/playback.h"
#include "prof/prof.h"
#include "resource/resource.h"
#include "settings/settings.h"
#include "sim/sim.h"
#include "sound/sound.h"
#include "sprite/sprite.h"
#include "tar/tar.h"
#include "ttf/ttf.h"
#include "user/user.h"
#include "watch/watch.h"