summaryrefslogtreecommitdiff
path: root/common.py
AgeCommit message (Collapse)AuthorFilesLines
2021-03-20scons: Remove.Jose Fonseca1-124/+0
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9720>
2019-10-24scons: Print a deprecation warning about using scons on not windowsDylan Baker1-0/+1
At this point meson should be able to handle all of the non-windows platforms just fine; we'd like to be able to stop maintaining scons for those platforms sooner than later. Reviewed-by: Eric Anholt <eric@anholt.net>
2019-10-05scons/MSYS2-MinGW-W64: Fix build options defaultsProdea Alexandru-Liviu1-0/+12
Signed-off-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com> Cc: <mesa-stable@lists.freedesktop.org> When building in a MSYS2 Mingw-w64 environment Mesa3D sets wrong default build options which inevitably lead to build failure.
2018-10-26scons/svga: remove opt from the list of valid build typesBrian Paul1-1/+1
This reverts commit a5fd54f8bf6713312fa5efd7ef5cd125557a0ffe. The whole point was to add a way to pass -DVMX86_STATS to the build, but we can do that with a command line argument when we invoke scons. Reviewed-by: José Fonseca <jfonseca@vmware.com>
2018-10-24scons: Put to rest zombie texture_float build option.Liviu Prodea1-3/+0
I found a remnant of texture_float build option that wasn't removed in commit 66673bef941af344314fe9c91cad8cd330b245eb This patch removes it. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2018-10-19scons: Remove gles option.Jose Fonseca1-2/+0
It's broken, and WGL state tracker is always built with GLES support noawadays. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2018-10-12scons: Allow building with custom MSVC_USE_SCRIPT script.Jose Fonseca1-0/+1
SCons MSVC support relies on vcvarsall.bat to extract the PATH, CPP includes, library paths, etc. And SCons also has an build env var named MSVC_USE_SCRIPT which one can use to point to alternative vcvarsall.bat script. This change exposes this MSVC_USE_SCRIPT build env variable as a SCons command line variable. This will enable using MSVC outside Program Files (e.g, network shares, etc.) This change also links advapi32 library, necessary for the Windows Registry API used by WGL state tracker, avoiding missing symbols. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2016-11-24scons: Recognize LLVM_CONFIG environment variable.Vinson Lee1-1/+1
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
2016-11-21scons: Add swr compile optionGeorge Kyriazis1-0/+1
To buils The SWR driver (currently optional, not compiled by default) v3: add option as opposed to target Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2016-08-26svga: add opt to the list of valid build typesCharmaine Lee1-1/+1
For opt build, add VMX86_STATS to the list of cpp defines. Reviewed-by: Brian Paul <brianp@vmware.com>
2016-04-13scons: Allow building with Address Sanitizer.Jose Fonseca1-0/+1
libasan is never linked to shared objects (which doesn't go well with -z,defs). It must either be linked to the main executable, or (more practically for OpenGL drivers) be pre-loaded via LD_PRELOAD. Otherwise works. I didn't find anything with llvmpipe. I suspect the fact that the JIT compiled code isn't instrumented means there are lots of errors it can't catch. But for non-JIT drivers, the Address/Leak Sanitizers seem like a faster alternative to Valgrind. Usage (Ubuntu 15.10): scons asan=1 libgl-xlib export LD_LIBRARY_PATH=$PWD/build/linux-x86_64-debug/gallium/targets/libgl-xlib LD_PRELOAD=libasan.so.2 any-opengl-application Acked-by: Roland Scheidegger <sroland@vmware.com>
2015-03-16common.py: Fix PEP 8 issues.Vinson Lee1-44/+53
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2014-05-02scons: Don't restrict MSVC_VERSION values.José Fonseca1-1/+1
Saves the trouble of continuously needing to update. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2014-04-16scons: Add an analyze option.José Fonseca1-0/+1
For Clang static code analyzer, the scan-build script will produce more comprehensive output. Nevertheless you can invoke it as CC=clang CXX=clang++ scons analyze=1 For MSVC this is the best way to use its static code analysis. Simply invoke as scons analyze=1 Reviewed-by: Brian Paul <brianp@vmware.com>
2014-01-08mesa: Preliminary support for MSVC_VERSION=12.0Thomas Sondergaard1-1/+1
Cc: "10.0" <mesa-stable@lists.freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-03-12scons: Allows choosing VS 10 or 11.José Fonseca1-1/+1
NOTE: Candidate for the stable branches. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-15scons: Add option to enable floating-point textures.Vinson Lee1-0/+1
Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
2012-05-24scons: Fix SCons build infrastructure for FreeBSD.Vinson Lee1-1/+1
This patch gets the FreeBSD SCons build working again. The build still fails though. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-01-18scons: Add more machine architectures to the machine mapAlexander von Gluck IV1-0/+6
* BePC, BeBox, BeMac for Haiku. * Add sparc architecture as Mesa looks for it. Signed-off-by: José Fonseca <jfonseca@vmware.com>
2012-01-17scons: Add Haiku build supportAlexander von Gluck IV1-1/+1
Enables building stock Mesa under the Haiku operating system.
2011-11-29gallium/cell: Remove the driver.Kai Wasserbäch1-1/+1
Complicates Gallium3D development and doesn't seem to have active users. Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Signed-off-by: José Fonseca <jfonseca@vmware.com>
2011-11-29Remove windows kernel support code.José Fonseca1-1/+1
Not actively used. Reviewed-by: Brian Paul <brianp@vmware.com>
2011-08-11swrast: initial multi-threaded span renderingAndreas Fänger1-0/+1
Optional parallel rendering of spans using OpenMP. Initial implementation for aa triangles. A new option for scons is also provided to activate the openmp support (off by default). Signed-off-by: Brian Paul <brianp@vmware.com>
2011-06-30scons: Buid libGL.so (WIP).José Fonseca1-1/+1
2011-06-17scons: Don't list MSVS_VERSION option outside windows platforms.José Fonseca1-1/+2
2011-06-17scons: Accept verbose=yes instead of quiet=no.José Fonseca1-1/+2
'verbose' is affirmative, and much more common name for this sort of option.
2011-06-17scons: make embedding orthogonal to the platformJosé Fonseca1-1/+2
To enable embedding in platforms other than linux.
2011-03-08scons: Fix immediate Python exceptions with SCons on SunOS.Vinson Lee1-1/+1
The build still fails.
2011-02-24scons: Reduce all Cygwin platform names to 'cygwin'.Vinson Lee1-1/+3
platform.system in SCons on Cygwin includes the OS version number. Windows XP - CYGWIN_NT-5.1 Windows Vista - CYGWIN_NT-6.0 Windows 7 - CYGWIN_NT-6.1 Reduce all Cygwin platform variants to just 'cygwin' so anything downstream can simply use 'cygwin' instead of the different full platform names.
2011-02-23scons: Fix Cygwin platform names.Vinson Lee1-1/+1
Fixes immediate Python exceptions with SCons on Cygwin.
2011-02-16scons: Recognize 'AMD64' processor as well.José Fonseca1-0/+1
2011-02-11scons: Try to support building 64bit binaries on 32bit windows.José Fonseca1-10/+2
2011-01-22scons: Add support for GLES.Chia-I Wu1-0/+1
GLES can be enabled by running scons with $ scons gles=yes When gles=yes is given, the build is changed in three ways. First, libmesa.a will be built with FEATURE_ES1 and FEATURE_ES2. This makes DRI drivers and libEGL support and advertise GLES support. Second, GLES libraries will be created. They are libGLESv1_CM, libGLESv2, and libglapi. Last, libGL or opengl32 will link to libglapi. This change is required as _glapi_* will be declared as __declspec(dllimport) in libmesa.a on windows. libmesa.a expects those symbols to be defined in another DLL. Due to this change to GL, GLES support is marked experimental. Note that GLES requires libxml2-python to generate some of its sources.
2011-01-13scons: Fix cross-compilation.José Fonseca1-12/+14
Hairy stuff. Don't know how to do it better though.
2010-12-01scons: Move MSVS_VERSION option to common module.José Fonseca1-0/+1
2010-11-01scons: Revamp how to specify targets to build.José Fonseca1-21/+19
Use scons target and dependency system instead of ad-hoc options. Now is simply a matter of naming what to build. For example: scons libgl-xlib scons libgl-gdi scons graw-progs scons llvmpipe and so on. And there is also the possibility of scepcified subdirs, e.g. scons src/gallium/drivers If nothing is specified then everything will be build. There might be some rough corners over the next days. Please bare with me.
2010-09-29scons: New build= option, with support for checked builds.José Fonseca1-2/+4
Where checked build is compiler optimizations plus debugging checks -- ideal for testing CPU bound loads and running test automation loads.
2010-08-11scons: Add freebsd8 to list of accepted platforms.Vinson Lee1-1/+1
2010-07-23scons: Add sunos5 to list of accepted platforms.Vinson Lee1-1/+1
2010-06-03scons: Add cygwin to list of accepted platforms.Vinson Lee1-1/+1
2010-05-20scons: Remove debug print statement.Vinson Lee1-2/+0
Fixes Python IndexError exception with default SCons build.
2010-05-20scons: add comments and whitespaceBrian Paul1-0/+9
2010-05-20scons: fix llvm detectionBrian Paul1-1/+11
The test for env['platform'] caused an exception since 'env' is not defined at that point. Instead, determine the target platform by scanning sys.argv[].
2010-05-19scons: don't set default_llvm on windows unles LLVM is definedKeith Whitwell1-1/+1
Otherwise we'll raise an error later in llvm.py
2010-04-13scons: Fix exception when llvm-config is not present.José Fonseca1-1/+6
2010-04-11scons: Make debug build default.José Fonseca1-1/+1
I've been back and forth on this, but I believe it's worth to have debug by default. Most humans (developers, testers) will want to use the debug version by default. Many build bots want release but they are bots, and humans > bots, so I don't care that much. This is part of my initiative of minimizing the scons option mess many complain about.
2010-04-11scons: Make LLVM a black-white dependency.José Fonseca1-1/+7
Now that draw depends on llvm it is very difficult to correctly handle broken llvm installations. Either the user requests LLVM and it needs to supply a working installation. Or it doesn't, and it gets no LLVM accelerate pipe drivers.
2010-03-31scons: Allow any toolchain to be specified in the command line.José Fonseca1-2/+1
2010-01-26support an 'embedded' platform target which turns off most parts of theAlan Hourihane1-2/+1
build.
2009-12-22scons: Set the default windows platform to be windows userspace.José Fonseca1-1/+1
I thought I had done this ages ago.