2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
# note order here affects link order, and hence linking correctness
|
|
|
|
# on systems with a traditional ld (eg, GNU ld on Linux)
|
Improved infrastructure for add-ons: C++ classes, metadata file, Nasal interface
This commit adds C++ classes for add-on management, most notably
AddonManager, Addon and AddonVersion. The AddonManager is used to
register add-ons. It relies on an std::map<std::string, AddonRef> to
hold the metadata of each registered add-on (keys of the std::map are
add-on identifiers, and AddonRef is currently SGSharedPtr<Addon>).
Accessor methods are available for:
- retrieving the list of registered or loaded add-ons (terminology
explained in $FG_ROOT/Docs/README.add-ons);
- checking if a particular add-on has already been registered or
loaded;
- for each add-on, obtaining an Addon instance which can be queried
for its name, id, version, base path, the minimum and maximum
FlightGear versions it requires, its base node in the Property Tree,
its order in the load sequence, short and long description strings,
home page, etc.
The most important metadata is made accessible in the Property Tree
under /addons/by-id/<addon-id> and the property
/addons/by-id/<addon-id>/loaded can be checked or listened to, in
order to determine when a particular add-on is loaded. There is also a
Nasal interface to access add-on metadata in a convenient way.
In order to provide this metadata, each add-on must from now on have in
its base directory a file called 'addon-metadata.xml'.
All this is documented in much more detail in
$FG_ROOT/Docs/README.add-ons.
Mailing-list discussion:
https://sourceforge.net/p/flightgear/mailman/message/36146017/
2017-11-06 12:58:14 +00:00
|
|
|
foreach( mylibfolder
|
|
|
|
Add-ons
|
2010-11-30 10:08:30 +00:00
|
|
|
Airports
|
|
|
|
Aircraft
|
|
|
|
ATC
|
2017-02-09 19:07:37 +00:00
|
|
|
EmbeddedResources
|
2012-04-21 13:31:20 +00:00
|
|
|
Canvas
|
2011-11-24 08:00:28 +00:00
|
|
|
Radio
|
2010-11-30 10:08:30 +00:00
|
|
|
Autopilot
|
|
|
|
Cockpit
|
|
|
|
Environment
|
|
|
|
GUI
|
|
|
|
Input
|
|
|
|
Instrumentation
|
|
|
|
Model
|
|
|
|
MultiPlayer
|
2011-11-26 15:41:35 +00:00
|
|
|
AIModel
|
|
|
|
Navaids
|
2010-11-30 10:08:30 +00:00
|
|
|
Network
|
|
|
|
Scenery
|
|
|
|
Scripting
|
|
|
|
Sound
|
|
|
|
Systems
|
|
|
|
Time
|
|
|
|
Traffic
|
|
|
|
FDM
|
2012-04-25 21:28:00 +00:00
|
|
|
Viewer
|
2010-11-30 10:08:30 +00:00
|
|
|
Main
|
2012-04-25 21:28:00 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
add_subdirectory(${mylibfolder})
|
2010-11-30 10:08:30 +00:00
|
|
|
|
|
|
|
endforeach( mylibfolder )
|
|
|
|
|