Exemplo n.º 1
0
def build_addons(args):
	if is_osx():
		if not ensure_file_hash(["src/Modules/JSUnsafe.cpp"]):
			log("building res/modules/js_unsafe" + get_lib_postfix())
			store_file_hash(["src/Modules/JSUnsafe.cpp"])
			buildAddon.compile(["src/Modules/JSUnsafe.cpp"], "res/modules/js_unsafe" + get_lib_postfix(), link_v8=True)
		else:
			log("skipping res/modules/js_unsafe" + get_lib_postfix())
Exemplo n.º 2
0
def build_addon(args):
	if len(args) < 4:
		log("usage: ./tasks.py build_addon <cFile> <outputFilename>")
	if is_osx() or is_linux():
		buildAddon.compile([args[2]], args[3], link_v8=True)