Exemplo n.º 1
0
def outputExecutableBuildDirective(base, f, make, ctx, prj, output_path):
	if ctx['target'] == 'emscripten':
		f.write('\t$(CXX) $(GLOBAL_LDFLAGS) -o ' + prj['obj'] + ' ')
		gnu_make.outputProjectCompilationUnits(f, make, ctx, prj)

		# linkage
		for plink in prj['plinks']:
			f.write(plink['obj'] + ' ')
		for llink in prj['llinks']:
			f.write('-l' + llink + ' ')
	else:
		base(f, make, ctx, prj, output_path)
Exemplo n.º 2
0
def outputStaticLibBuildDirective(base, f, make, ctx, prj, output_path):
	if ctx['target'] == 'emscripten':
		f.write('\t$(CXX) -o ' + prj['obj'] + ' ')
		gnu_make.outputProjectCompilationUnits(f, make, ctx, prj)
	else:
		base(f, make, ctx, prj, output_path)