Bug Tracker – Bug 1307

Turn common code into a static library

Last modified: 2020-04-10 15:58:03 UTC
Bug 1307 - Turn common code into a static library
Summary: Turn common code into a static library
Status: NEW
Alias: None
Product: Odamex
Classification: Unclassified
Component: Server & Client (show other bugs)
Version: 0.8.x
Hardware: All Other
: P5 enhancement
Assignee: Odamex Bug Reporter
Depends on:
Reported: 2020-04-10 15:58 UTC by Alexander Mayfield
Modified: 2020-04-10 15:58 UTC (History)
0 users

See Also:


Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Mayfield 2020-04-10 15:58:03 UTC
Pretty much what it says on the tin.  Right now, Odamex compiles "common" twice, once for the client and once for the server.  If common was turned into a static library, we could get away with compiling it just once and save significantly on build time.

This would likely involve the creation of an "API" struct to facilitate calling functions through function pointers between library and executable along with a "clientside|serverside" flag that could be set based on which side of the connection you're on.  Also, I'm sure there is some unexpected gnarlyness that would have to be resolved.