예제 #1
0
파일: tasks.py 프로젝트: Vbitz/Engine2D
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())
예제 #2
0
파일: tasks.py 프로젝트: Vbitz/Engine2D
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)