A work-around for supporting plugins compiled as *.a.

This is for older CMakes which don't understand object libraries yet.
We auto-generate a file at the top-level that references all the
global plugin objects. Once they are referenced, the linker includes
them into the final executable and their ctors run to register them
with the plugin manager.

By default this is on. Once we can require more recent CMakes, we can
turn it off (and remove) in src/CMakeLists.txt.
This commit is contained in:
Robin Sommer 2013-06-02 19:36:25 -07:00
parent c19779ae88
commit 8e7ef001b3
3 changed files with 40 additions and 3 deletions

View file

@ -50,7 +50,7 @@
} \
}; \
\
static Plugin __plugin; \
Plugin __plugin; \
} }
/**