diff options
Diffstat (limited to 'platform/x11/detect.py')
| -rw-r--r-- | platform/x11/detect.py | 17 | 
1 files changed, 14 insertions, 3 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py index 478b42f9f7..c5ef82150b 100644 --- a/platform/x11/detect.py +++ b/platform/x11/detect.py @@ -55,6 +55,7 @@ def get_opts():          BoolVariable('pulseaudio', 'Detect & use pulseaudio', True),          BoolVariable('udev', 'Use udev for gamepad connection callbacks', False),          EnumVariable('debug_symbols', 'Add debug symbols to release version', 'yes', ('yes', 'no', 'full')), +        BoolVariable('separate_debug_symbols', 'Create a separate file with the debug symbols', False),          BoolVariable('touch', 'Enable touch events', True),      ] @@ -64,7 +65,6 @@ def get_flags():      return [          ('builtin_freetype', False),          ('builtin_libpng', False), -        ('builtin_openssl', False),          ('builtin_zlib', False),      ] @@ -152,8 +152,9 @@ def configure(env):      # FIXME: Check for existence of the libs before parsing their flags with pkg-config -    if not env['builtin_openssl']: -        env.ParseConfig('pkg-config openssl --cflags --libs') +    if not env['builtin_mbedtls']: +        # mbedTLS does not provide a pkgconfig config yet. See https://github.com/ARMmbed/mbedtls/issues/228 +        env.Append(LIBS=['mbedtls', 'mbedcrypto', 'mbedx509'])      if not env['builtin_libwebp']:          env.ParseConfig('pkg-config libwebp --cflags --libs') @@ -172,6 +173,16 @@ def configure(env):      if not env['builtin_libpng']:          env.ParseConfig('pkg-config libpng --cflags --libs') +    if not env['builtin_bullet']: +        # We need at least version 2.88 +        import subprocess +        bullet_version = subprocess.check_output(['pkg-config', 'bullet', '--modversion']).strip() +        if bullet_version < "2.88": +            # Abort as system bullet was requested but too old +            print("Bullet: System version {0} does not match minimal requirements ({1}). Aborting.".format(bullet_version, "2.88")) +            sys.exit(255) +        env.ParseConfig('pkg-config bullet --cflags --libs') +      if not env['builtin_enet']:          env.ParseConfig('pkg-config libenet --cflags --libs')  |