make için -j desteği, icecream ve paralel build için hazırlık. j1 default, j2 ve üstü ile problem çıkartan paketler zaten depoda override ediyor bu değerleri [kde.make(-j1) gibi]
This commit is contained in:
@@ -92,7 +92,7 @@ def compile(parameters = ''):
|
|||||||
|
|
||||||
def make(parameters = ''):
|
def make(parameters = ''):
|
||||||
'''make source with given parameters = "all" || "doc" etc.'''
|
'''make source with given parameters = "all" || "doc" etc.'''
|
||||||
if system('make %s' % parameters):
|
if system('make %s %s' % (get.makeJOBS(), parameters)):
|
||||||
raise MakeError(_('Make failed.'))
|
raise MakeError(_('Make failed.'))
|
||||||
|
|
||||||
def install(parameters = '', argument = 'install'):
|
def install(parameters = '', argument = 'install'):
|
||||||
|
|||||||
@@ -104,6 +104,9 @@ def CXXFLAGS():
|
|||||||
def LDFLAGS():
|
def LDFLAGS():
|
||||||
return env.ldflags
|
return env.ldflags
|
||||||
|
|
||||||
|
def makeJOBS():
|
||||||
|
return env.jobs
|
||||||
|
|
||||||
# Directory Related Functions
|
# Directory Related Functions
|
||||||
|
|
||||||
def docDIR():
|
def docDIR():
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ def configure(parameters = ''):
|
|||||||
|
|
||||||
def make(parameters = ''):
|
def make(parameters = ''):
|
||||||
'''make source with given parameters = "all" || "doc" etc.'''
|
'''make source with given parameters = "all" || "doc" etc.'''
|
||||||
if system('make %s' % parameters):
|
if system('make %s %s' % (get.makeJOBS(), parameters)):
|
||||||
raise MakeError(_('Make failed.'))
|
raise MakeError(_('Make failed.'))
|
||||||
|
|
||||||
def install(parameters = 'install'):
|
def install(parameters = 'install'):
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ def exportFlags():
|
|||||||
environ['CFLAGS'] = values.build.cflags
|
environ['CFLAGS'] = values.build.cflags
|
||||||
environ['CXXFLAGS'] = values.build.cxxflags
|
environ['CXXFLAGS'] = values.build.cxxflags
|
||||||
environ['LDFLAGS'] = values.build.ldflags
|
environ['LDFLAGS'] = values.build.ldflags
|
||||||
|
environ['JOBS'] = values.build.jobs
|
||||||
|
|
||||||
class Env(object):
|
class Env(object):
|
||||||
'''General environment variables used in actions API'''
|
'''General environment variables used in actions API'''
|
||||||
@@ -46,7 +47,8 @@ class Env(object):
|
|||||||
'host': 'HOST',
|
'host': 'HOST',
|
||||||
'cflags': 'CFLAGS',
|
'cflags': 'CFLAGS',
|
||||||
'cxxflags': 'CXXFLAGS',
|
'cxxflags': 'CXXFLAGS',
|
||||||
'ldflags': 'LDFLAGS'
|
'ldflags': 'LDFLAGS',
|
||||||
|
'jobs': 'JOBS'
|
||||||
}
|
}
|
||||||
|
|
||||||
def __getattr__(self, attr):
|
def __getattr__(self, attr):
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
#
|
#
|
||||||
#[build]
|
#[build]
|
||||||
#host = i686-pc-linux-gnu
|
#host = i686-pc-linux-gnu
|
||||||
|
#jobs = "-j1"
|
||||||
#CFLAGS= -mtune=i686 -O2 -pipe -fomit-frame-pointer
|
#CFLAGS= -mtune=i686 -O2 -pipe -fomit-frame-pointer
|
||||||
#CXXFLAGS= -mtune=i686 -O2 -pipe -fomit-frame-pointer
|
#CXXFLAGS= -mtune=i686 -O2 -pipe -fomit-frame-pointer
|
||||||
#LDFLAGS=
|
#LDFLAGS=
|
||||||
@@ -60,6 +61,7 @@ class GeneralDefaults:
|
|||||||
class BuildDefaults:
|
class BuildDefaults:
|
||||||
"""Default values for [build] section"""
|
"""Default values for [build] section"""
|
||||||
host = "i686-pc-linux-gnu"
|
host = "i686-pc-linux-gnu"
|
||||||
|
jobs = "-j1"
|
||||||
CFLAGS = "-mtune=i686 -O2 -pipe -fomit-frame-pointer"
|
CFLAGS = "-mtune=i686 -O2 -pipe -fomit-frame-pointer"
|
||||||
CXXFLAGS = "-mtune=i686 -O2 -pipe -fomit-frame-pointer"
|
CXXFLAGS = "-mtune=i686 -O2 -pipe -fomit-frame-pointer"
|
||||||
LDFLAGS = ""
|
LDFLAGS = ""
|
||||||
|
|||||||
Reference in New Issue
Block a user