v.builder #

fn compile #

fn compile(command string, pref &pref.Preferences)

fn msvc_string_flags #

fn msvc_string_flags(cflags []cflag.CFlag) MsvcStringFlags

pub fn (cflags []CFlag) msvc_string_flags() MsvcStringFlags {

fn new_builder #

fn new_builder(pref &pref.Preferences) Builder

struct Builder #

struct Builder {
	compiled_dir string
	module_path  string
	pref          &pref.Preferences
	checker       checker.Checker
	global_scope  &ast.Scope
	out_name_c    string
	out_name_js   string
	max_nr_errors int = 100
	stats_lines   int
	stats_bytes   int
pub mut:
	module_search_paths []string
	parsed_files        []ast.File
	cached_msvc         MsvcResult
	table               &ast.Table
	ccoptions           CcompilerOptions

fn (Builder) build_c #

fn (mut b Builder) build_c(v_files []string, out_file string)

fn (Builder) build_js #

fn (mut b Builder) build_js(v_files []string, out_file string)

fn (Builder) build_x64 #

fn (mut b Builder) build_x64(v_files []string, out_file string)

fn (Builder) cc_msvc #

fn (mut v Builder) cc_msvc()

fn (Builder) compile_c #

fn (mut b Builder) compile_c()

fn (Builder) compile_js #

fn (mut b Builder) compile_js()

fn (Builder) compile_x64 #

fn (mut b Builder) compile_x64()

fn (Builder) find_module_path #

fn (b &Builder) find_module_path(mod string, fpath string) ?string

TODO: try to merge this & util.module functions to create a reliable multi use function. see comments in util/module.v

fn (Builder) gen_c #

fn (mut b Builder) gen_c(v_files []string) string

fn (Builder) gen_js #

fn (mut b Builder) gen_js(v_files []string) string

fn (Builder) get_builtin_files #

fn (v Builder) get_builtin_files() []string

fn (Builder) get_user_files #

fn (v &Builder) get_user_files() []string

fn (Builder) import_graph #

fn (b &Builder) import_graph() &depgraph.DepGraph

graph of all imported modules

fn (Builder) info #

fn (b Builder) info(s string)

fn (Builder) log #

fn (b Builder) log(s string)

fn (Builder) parse_imports #

fn (mut b Builder) parse_imports()

parse all deps from already parsed files

fn (Builder) resolve_deps #

fn (mut b Builder) resolve_deps()

fn (Builder) v_files_from_dir #

fn (b Builder) v_files_from_dir(dir string) []string