@@ -35,21 +35,6 @@ void libs(Nob_Cmd *cmd)
3535 nob_cmd_append (cmd , "-l:libraylib.so" , "-lm" , "-ldl" , "-lpthread" );
3636}
3737
38- bool build_plug_c3 (bool force , Nob_Cmd * cmd , const char * output_path , const char * * source_paths , size_t source_paths_count )
39- {
40- int rebuild_is_needed = nob_needs_rebuild (nob_temp_sprintf ("%s.so" , output_path ), source_paths , source_paths_count );
41- if (rebuild_is_needed < 0 ) return false;
42- if (force || rebuild_is_needed ) {
43- // TODO: check if c3c compile even exists
44- // otherwise this is not buildable
45- nob_cmd_append (cmd , "c3c" , "dynamic-lib" , "-o" , output_path );
46- nob_da_append_many (cmd , source_paths , source_paths_count );
47- if (!nob_cmd_run_sync_and_reset (cmd )) return false;
48- }
49-
50- return true;
51- }
52-
5338bool build_plug_c (bool force , Nob_Cmd * cmd , const char * source_path , const char * output_path )
5439{
5540 int rebuild_is_needed = nob_needs_rebuild1 (output_path , source_path );
@@ -129,17 +114,6 @@ int main(int argc, char **argv)
129114 if (!build_plug_c (force , & cmd , PLUGS_DIR "squares/plug.c" , BUILD_DIR "libsquare.so" )) return 1 ;
130115 if (!build_plug_c (force , & cmd , PLUGS_DIR "bezier/plug.c" , BUILD_DIR "libbezier.so" )) return 1 ;
131116 if (!build_plug_cxx (force , & cmd , PLUGS_DIR "cpp/plug.cpp" , BUILD_DIR "libcpp.so" )) return 1 ;
132- {
133- const char * output_path = BUILD_DIR "libc3" ;
134- const char * source_paths [] = {
135- PLUGS_DIR "c3/plug.c3" ,
136- PLUGS_DIR "c3/raylib.c3i" ,
137- PLUGS_DIR "c3/future.c3"
138- };
139- size_t source_paths_count = NOB_ARRAY_LEN (source_paths );
140-
141- if (!build_plug_c3 (force , & cmd , output_path , source_paths , source_paths_count )) return 1 ;
142- }
143117
144118 {
145119 const char * output_path = BUILD_DIR "panim" ;
0 commit comments