Skip to content

Commit 63d7039

Browse files
committed
Merge branch 'master' into precompiled_header_proposal
Conflicts: __init__.py
2 parents 2bb8524 + e4c39bc commit 63d7039

File tree

13 files changed

+330
-45
lines changed

13 files changed

+330
-45
lines changed

__init__.py

Lines changed: 248 additions & 32 deletions
Large diffs are not rendered by default.

autoconf/boost_unittestframework.py renamed to autoconf/boost_unit_test_framework.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,17 @@ def __init__( self ):
99
self.language = 'c++',
1010
self.dependencies=[boost]
1111

12-
def initOptions(self, project, opts):
13-
self.initOption_with(project, opts)
14-
return True
15-
1612
def configure(self, project, env):
1713
if not self.enabled(env):
1814
return True
1915
env.Append( CCFLAGS = project.CC['define']+'BOOST_TEST_DYN_LINK' )
2016
return True
2117

2218
def check(self, project, conf):
23-
result = self.CheckLib(conf, self.libs ) #, None, None, self.language)
19+
result = self.CheckLib( conf, self.getLibs(conf.env) )
2420
#or result = self.CheckLib(conf, 'boost_unit_test_framework' ) #, None, None, self.language)
2521
return result
2622

2723

28-
boost_unittestframework = BoostUnittestframeworkChecker()
24+
boost_unit_test_framework = BoostUnittestframeworkChecker()
2925

autoconf/freeglut.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from _external import *
2+
from gl import *
3+
from glu import *
4+
5+
freeglut = LibWithHeaderChecker(
6+
'freeglut',
7+
['GL/freeglut.h'],
8+
'c',
9+
dependencies=[gl,glu]
10+
)
11+

autoconf/glu.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
from _external import *
22
from gl import *
33

4-
glu = LibWithHeaderChecker('GLU', ['GL/glu.h'], 'c', dependencies=[gl])
4+
glu = LibWithHeaderChecker(
5+
'GLU' if not windows else 'GLU32',
6+
['GL/glu.h'],
7+
'c',
8+
dependencies=[gl]
9+
)
510

autoconf/half.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
from _external import *
2+
from pthread import *
3+
4+
half = LibWithHeaderChecker(
5+
['Half'],
6+
['OpenEXR/half.h'],
7+
'c++',
8+
name='half',
9+
dependencies=[pthread],
10+
)
11+

autoconf/ilmbase.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
from _external import *
22
from pthread import *
3+
from half import *
34

45
ilmbase = LibWithHeaderChecker(
5-
['Imath', 'Half', 'Iex', 'IlmThread'],
6-
['OpenEXR/Iex.h', 'OpenEXR/IlmBaseConfig.h', 'OpenEXR/ImathVec.h', 'OpenEXR/half.h'],
6+
['Imath', 'Iex', 'IlmThread'],
7+
['OpenEXR/Iex.h', 'OpenEXR/IlmBaseConfig.h', 'OpenEXR/ImathVec.h'],
78
'c++',
89
name='ilmbase',
9-
dependencies=[pthread],
10+
dependencies=[pthread, half],
1011
)
1112

1213

autoconf/m.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
from _external import *
22

3-
m = LibChecker('m')
3+
if not windows:
4+
m = LibChecker('m')
5+
else:
6+
m = ObjectChecker('m')
7+

autoconf/opencolorio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from _external import *
22

33
opencolorio = LibWithHeaderChecker(
4-
['OpenColorIO'], 'OpenColorIO.h', 'c++',
4+
['OpenColorIO'], 'OpenColorIO/OpenColorIO.h', 'c++',
55
name='opencolorio',
66
call='',
77
dependencies =[] )

autoconf/qt4.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def __init__( self,
6161
defines = ['QT_NO_KEYWORDS'],
6262
useLocalIncludes = True ):
6363
self.name = 'qt4'
64-
self.libs = modules[:]
64+
postfix = '' if not windows else '4'
65+
self.libs = [ m + postfix for m in modules]
6566
self.uiFiles =self.getAbsoluteCwd(uiFiles)
6667
self.defines = defines[:]
6768
self.useLocalIncludes = useLocalIncludes

compiler/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

22
import gcc
33
import visual
4+
import clang
45

0 commit comments

Comments
 (0)