Support compiling modules
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bake |
Triaged
|
Medium
|
Unassigned |
Bug Description
When building a shared library in Vala, bake installs several files:
$ sudo bake install
MKDIR /usr/lib
CP libtest.so /usr/lib/libtest.so
CP libtest.so.0 /usr/lib/
MKDIR /usr/lib/pkgconfig
CP test-0.pc /usr/lib/
MKDIR /usr/include/test-0
CP test.h /usr/include/
MKDIR /usr/share/
CP test-0.vapi /usr/share/
[Build complete]
$
I don't always want all of these. For example, if I'm building a plugin for Nautilus or gedit I just want a .so file to be copied to /usr/lib/
I realized I can work around this limitation like this:
===
project.name = test
project.version = 0.0.1
libraries.test {
sources = test.vala
install = false
}
data.test {
files = libtest.so
install-directory = /usr/local/foo
}
===
That's fine for now. It still might be nice to have a variable I could specify in libraries.test above to achieve the same without having to play this trick.