File: buildshared.py

package info (click to toggle)
fsplib 0.14-5.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 236 kB
  • sloc: ansic: 1,581; python: 117; makefile: 11; sh: 8
file content (18 lines) | stat: -rw-r--r-- 452 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# Scons test for building shared library
#
# Version 1.0
# 9-Sep-2014

from SCons.Script import ARGUMENTS

def checkForBuildingSharedLibrary(conf):
    """check if building shared library was requested"""
    conf.Message("checking whether to build shared library... ")
    makeshared=ARGUMENTS.get('enable-shared', 0)
    if makeshared == 0 or makeshared == 'no':
			  conf.Result(0)
			  return False
    else:
			  conf.Result(1)
			  return True