####################################################################### # Top-level SConstruct # # For example, invoke scons as # # scons build=debug llvm=yes machine=x86 # # to set configuration variables. Or you can write those options to a file # named config.py: # # # config.py # build='debug' # llvm=True # machine='x86' # # Invoke # # scons -h # # to get the full list of options. See scons manpage for more info. # import os import os.path import sys import SCons.Util import common ####################################################################### # Minimal scons version EnsureSConsVersion(2, 4) ####################################################################### # Configuration options opts = Variables('config.py') common.AddOptions(opts) env = Environment( options = opts, tools = ['gallium'], toolpath = ['#scons'], ENV = os.environ, ) # XXX: This creates a many problems as it saves... #opts.Save('config.py', env) # Backwards compatability with old target configuration variable try: targets = ARGUMENTS['targets'] except KeyError: pass else: targets = targets.split(',') print('scons: warning: targets option is deprecated; pass the targets on their own such as') print() print(' scons %s' % ' '.join(targets)) print() COMMAND_LINE_TARGETS.append(targets) Help(opts.GenerateHelpText(env)) ####################################################################### # Environment setup with open("VERSION") as f: mesa_version = f.read().strip() env.Append(CPPDEFINES = [ ('PACKAGE_VERSION', '\\"%s\\"' % mesa_version), ('PACKAGE_BUGREPORT', '\\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\\"'), ]) # Includes env.Prepend(CPPPATH = [ '#/include', ]) env.Append(CPPPATH = [ '#/src/gallium/include', '#/src/gallium/auxiliary', '#/src/gallium/drivers', '#/src/gallium/winsys', ]) # for debugging #print env.Dump() # Add a check target for running tests check = env.Alias('check') env.AlwaysBuild(check) ####################################################################### # Invoke host SConscripts # # For things that are meant to be run on the native host build machine, instead # of the target machine. # # Create host environent if env['crosscompile'] and not env['embedded']: host_env = Environment( options = opts, # no tool used tools = [], toolpath = ['#scons'], ENV = os.environ, ) # Override options host_env['platform'] = common.host_platform host_env['machine'] = common.host_machine host_env['toolchain'] = 'default' host_env['llvm'] = False host_env.Tool('gallium') host_env['hostonly'] = True assert host_env['crosscompile'] == False target_env = env env = host_env Export('env') SConscript( 'src/SConscript', variant_dir = host_env['build_dir'], duplicate = 0, # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html ) env = target_env Export('env') ####################################################################### # Invoke SConscripts # TODO: Build several variants at the same time? # http://www.scons.org/wiki/SimultaneousVariantBuilds SConscript( 'src/SConscript', variant_dir = env['build_dir'], duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html ) ######################################################################## # List all aliases try: from SCons.Node.Alias import default_ans except ImportError: pass else: aliases = sorted(default_ans.keys()) env.Help('\n') env.Help('Recognized targets:\n') for alias in aliases: env.Help(' %s\n' % alias) alue='distro/suse/suse-3.6'>distro/suse/suse-3.6 Unnamed repository; edit this file to name it for gitweb.root
summaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2024-03-27update translations for 24.2.2 rc2cp-24.04.1-2Christian Lohmaier111-677/+662
2024-03-27bump copyright year for sl translationChristian Lohmaier2-4/+4
2024-03-27update translations for 24-2 and force-fix errors using pocheckChristian Lohmaier521-8071/+8016
2024-03-27update translations for 24.2.2 rc1Christian Lohmaier263-4995/+4896
2024-03-27update translations for 24.2.1 rc2Christian Lohmaier276-5469/+5410
2024-02-22[cp] Remove reference to menu in dialog textcp-24.04.1-1Andras Timar35-280/+70
2024-02-09update translations for 24.2.1 rc1cp-24.04.0-1Christian Lohmaier34-497/+476
2024-02-08update translations for 24.2.1 rc1Christian Lohmaier291-7745/+7428
2024-01-26update translations for 24.2.0 rc3Christian Lohmaier13-196/+196
2024-01-25update translations for 24.2.0 rc3Christian Lohmaier631-33232/+15659
2024-01-23Updated Slovenian translationMartin Srebotnjak4-248/+80
2024-01-22update sl translation for gerrit#161999Christian Lohmaier1-2/+2
2024-01-11update translations for master/24.2.0 rc1co-24.04-branch-pointChristian Lohmaier78-1234/+1150
2024-01-10Updated Slovenian translationMartin Srebotnjak19-91/+127
2024-01-10update translations for master/24-2Christian Lohmaier267-5889/+8163
2024-01-10add translations for Armenian (hy)Christian Lohmaier158-0/+273799
2024-01-10update translations for master/24-2Christian Lohmaier115-1769/+2348
2024-01-08update translations for master/24-2Christian Lohmaier914-17234/+21265
2023-12-30Updated Slovenian translationMartin Srebotnjak37-651/+1998
2023-12-21update translations for master/24.2.0 RC1Christian Lohmaier1440-36867/+87000
2023-12-20Updated Slovenian translationMartin Srebotnjak48-1612/+4963
2023-12-15update translations for master/24-2Christian Lohmaier1551-39007/+124820
2023-12-08Branch libreoffice-24-2Christian Lohmaier0-0/+0
2023-12-08update translations for master/24.2.0 Beta1libreoffice-24-2-branch-pointChristian Lohmaier53-466/+477
2023-12-07update translations for master/24.2.0 beta1Christian Lohmaier499-7052/+13102
2023-12-04update translations for masterChristian Lohmaier258-7146/+8658
2023-12-04update translations for masterChristian Lohmaier3565-257579/+431237
2023-11-30update translations for masterXisco Fauli198-4875/+4861
2023-11-23update translations for masterXisco Fauli51-1332/+1330
2023-11-23Updated Slovenian translationMartin Srebotnjak51-13811/+21418
2023-11-21update translations for masterXisco Fauli904-51173/+45191
2023-11-08update translations for masterChristian Lohmaier921-43573/+49527
2023-11-02update translations for masterChristian Lohmaier2450-251413/+438677
2023-10-11update translations for masterChristian Lohmaier1928-67440/+90920
2023-10-02update translations for masterChristian Lohmaier1480-87735/+84059
2023-09-28update translations for masterChristian Lohmaier2442-315489/+130677
2023-09-18Updated Slovenian translationMartin Srebotnjak54-286/+293
2023-09-16Updated Slovenian translationMartin Srebotnjak60-4091/+5929
2023-09-13update translations for masterChristian Lohmaier105-1706/+1653
2023-09-12update translations for masterChristian Lohmaier