[Vala] vapi tip



I just found this out yesterday but it may help other people;

you can specify a .vapi file on the command line just like a .vala file.

Instead of:
/usr/bin/valac -C --vapidir=src --pkg api --pkg zlib --pkg gtk+-2.0
--basedir . src/mainwindow.vala

you can do:
/usr/bin/valac -C --pkg zlib --pkg gtk+-2.0 --basedir .
src/mainwindow.vala src/api.vapi

It allows you to treat the vapi file as a regular source file for
makefile purposes, as well not having to do anything like installing it.

Sam



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]