Arx Libertatis Bug Tracker
star_faded.png
Please log in to bookmark issues
feature_request_small.png
CLOSED  Feature request #90  -  Automatic backend selection in CMake
Posted Sep 16, 2011 - updated Feb 17, 2012   Shortlink: http://arx.vg/90
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
icon_info.png This issue has been closed with status "Fixed" and resolution "RESOLVED".
Issue details
  • Type of issue
    Feature request
  • Status
     
    Fixed
  • Assigned to
  • Progress
       
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
  • Posted by
     SebastienLussier
  • Owned by
    Not owned by anyone
  • Estimated time
    Not estimated
  • Time spent
    369294 hours
  • Category
    Not determined
  • Resolution
    RESOLVED
  • Priority
    Not determined
  • Severity
    Normal
  • Targetted for
    icon_milestones.png Not determined
  • OS
    icon_customdatatype.png Not determined
  • Architecture
    icon_customdatatype.png Not determined
  • Fixed in
    icon_customdatatype.png Not determined
Issue description
Our current CMake scripts are great, but they will fail on Windows if you don't have OpenAL/SDL/GLEW/GL and don't specify
 -DARX_USE_OPENAL=0 -DARX_USE_OPENGL=0 -DARX_USE_SDL=0


I'd like it to be super simple... CMake could check that these exists or not, and build the supported backend accordingly. This way, someone can simply install the DirectX SDK and have everything needed to build the game without changing the CMake options...

The CMake script could still check that there is at least one backend available for each subsystem...

Does that makes sense ?

#2
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Sep 16, 20:50
yes that makes sense

and i'd like to the runtime to so the game doesn't quit if the configured backend doesn't exist or fails to initialize -- we should first try all available backends
#3
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Sep 16, 20:52
also (I think I mentioned this earlier) but I think we should drop the ARX_ prefix for the CMake options
#4
icon_reply.pngReply
Comment posted by
 SebastienLussier
Sep 17, 00:51
yes I agree that the prefix aren't really needed for CMake
#5
icon_reply.pngReply
Comment posted by
 Daniel Scharrer
Jan 06, 18:44
This is now implemented in the cmake-cleanup(https://github.com/arx/ArxLibertatis/tree/cmake-cleanup) branch. BobJelly: could you test if everything works correctly on windows?