scons configure should exit if GiGi not found

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
kroddn
Static Linker
Posts: 347
Joined: Thu Jun 28, 2007 10:28 am

scons configure should exit if GiGi not found

#1 Post by kroddn »

As far as I know FO cannot be compiled without GiGi. But scons configure does not stop if it fails to find GiGi, and therefore the following build fails too.

I suggest extending SConstruct:

Code: Select all

Index: SConstruct
===================================================================
--- SConstruct  (Revision 2641)
+++ SConstruct  (Arbeitskopie)
@@ -226,6 +230,8 @@
             if conf.CheckPkg('GiGiSDL', gigi_version):
                 env.ParseConfig('pkg-config --cflags --libs GiGiSDL')
                 found_gg_pkg_config = True
+            else:
+                Exit(1)

         freeorion_boost_libs = [
             ('boost_serialization', 'boost/archive/binary_iarchive.hpp', 'boost::archive::binary_iarchive::is_saving();'),
If that's okay, I can commit it.

Post Reply