id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20,600 | swig.py | projecthamster_hamster/waflib/extras/swig.py | #! /usr/bin/env python
# encoding: UTF-8
# Petar Forai
# Thomas Nagy 2008-2010 (ita)
import re
from waflib import Task, Logs
from waflib.TaskGen import extension, feature, after_method
from waflib.Configure import conf
from waflib.Tools import c_preproc
"""
tasks have to be added dynamically:
- swig interface files m... | 6,258 | Python | .py | 195 | 29.225641 | 113 | 0.68776 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,601 | run_r_script.py | projecthamster_hamster/waflib/extras/run_r_script.py | #!/usr/bin/env python
# encoding: utf-8
# Hans-Martin von Gaudecker, 2012
"""
Run a R script in the directory specified by **ctx.bldnode**.
For error-catching purposes, keep an own log-file that is destroyed if the
task finished without error. If not, it will show up as rscript_[index].log
in the bldnode directory.
... | 2,766 | Python | .py | 69 | 37.347826 | 121 | 0.698507 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,602 | fsb.py | projecthamster_hamster/waflib/extras/fsb.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011 (ita)
"""
Fully sequential builds
The previous tasks from task generators are re-processed, and this may lead to speed issues
Yet, if you are using this, speed is probably a minor concern
"""
from waflib import Build
def options(opt):
pass
def configure... | 572 | Python | .py | 21 | 25.095238 | 91 | 0.752311 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,603 | stale.py | projecthamster_hamster/waflib/extras/stale.py | #! /usr/bin/env python
# encoding: UTF-8
# Thomas Nagy, 2006-2015 (ita)
"""
Add a pre-build hook to remove build files (declared in the system)
that do not have a corresponding target
This can be used for example to remove the targets
that have changed name without performing
a full 'waf clean'
Of course, it will on... | 2,297 | Python | .py | 79 | 26.443038 | 82 | 0.721692 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,604 | buildcopy.py | projecthamster_hamster/waflib/extras/buildcopy.py | #! /usr/bin/env python
# encoding: utf-8
# Calle Rosenquist, 2017 (xbreak)
"""
Create task that copies source files to the associated build node.
This is useful to e.g. construct a complete Python package so it can be unit tested
without installation.
Source files to be copied can be specified either in `buildcopy_sou... | 2,736 | Python | .py | 69 | 36.811594 | 109 | 0.6937 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,605 | pgicc.py | projecthamster_hamster/waflib/extras/pgicc.py | #!/usr/bin/env python
# encoding: utf-8
# Antoine Dechaume 2011
"""
Detect the PGI C compiler
"""
import sys, re
from waflib import Errors
from waflib.Configure import conf
from waflib.Tools.compiler_c import c_compiler
c_compiler['linux'].append('pgicc')
@conf
def find_pgi_compiler(conf, var, name):
"""
Find the ... | 1,739 | Python | .py | 62 | 25.887097 | 69 | 0.699519 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,606 | color_gcc.py | projecthamster_hamster/waflib/extras/color_gcc.py | #!/usr/bin/env python
# encoding: utf-8
# Replaces the default formatter by one which understands GCC output and colorizes it.
__author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2012"
import sys
from waflib import Logs
class ColorGCCFormatter(Logs.formatter):
d... | 1,161 | Python | .py | 33 | 30.939394 | 89 | 0.67263 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,607 | doxygen.py | projecthamster_hamster/waflib/extras/doxygen.py | #! /usr/bin/env python
# encoding: UTF-8
# Thomas Nagy 2008-2010 (ita)
"""
Doxygen support
Variables passed to bld():
* doxyfile -- the Doxyfile to use
* doxy_tar -- destination archive for generated documentation (if desired)
* install_path -- where to install the documentation
* pars -- dictionary overriding doxyg... | 7,471 | Python | .py | 202 | 33.762376 | 123 | 0.682239 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,608 | qnxnto.py | projecthamster_hamster/waflib/extras/qnxnto.py | #!/usr/bin/env python
# encoding: utf-8
# Jérôme Carretero 2011 (zougloub)
# QNX neutrino compatibility functions
import sys, os
from waflib import Utils
class Popen(object):
"""
Popen cannot work on QNX from a threaded program:
Forking in threads is not implemented in neutrino.
Python's os.popen / spawn / fork ... | 1,905 | Python | .py | 63 | 26.746032 | 110 | 0.666849 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,609 | dcc.py | projecthamster_hamster/waflib/extras/dcc.py | #!/usr/bin/env python
# encoding: utf-8
# Jérôme Carretero, 2011 (zougloub)
from waflib import Options
from waflib.Tools import ccroot
from waflib.Configure import conf
@conf
def find_dcc(conf):
conf.find_program(['dcc'], var='CC', path_list=getattr(Options.options, 'diabbindir', ""))
conf.env.CC_NAME = 'dcc'
@con... | 1,915 | Python | .py | 59 | 30.491525 | 127 | 0.61271 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,610 | sphinx.py | projecthamster_hamster/waflib/extras/sphinx.py | """Support for Sphinx documentation
This is a wrapper for sphinx-build program. Please note that sphinx-build supports only
one output format at a time, but the tool can create multiple tasks to handle more.
The output formats can be passed via the sphinx_output_format, which is an array of
strings. For backwards comp... | 4,502 | Python | .py | 91 | 41.648352 | 162 | 0.676403 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,611 | fc_fujitsu.py | projecthamster_hamster/waflib/extras/fc_fujitsu.py | #! /usr/bin/env python
# encoding: utf-8
# Detection of the Fujitsu Fortran compiler for ARM64FX
import re
from waflib.Tools import fc,fc_config,fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].append('fc_fujitsu')
@conf
def find_fujitsu(conf):
fc=conf.f... | 1,316 | Python | .py | 47 | 26.06383 | 89 | 0.724684 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,612 | fc_nec.py | projecthamster_hamster/waflib/extras/fc_nec.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib.Tools import fc, fc_config, fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].append('fc_nec')
@conf
def find_sxfc(conf):
"""Find the NEC fortran compiler (will look i... | 1,659 | Python | .py | 52 | 29.788462 | 111 | 0.693558 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,613 | use_config.py | projecthamster_hamster/waflib/extras/use_config.py | #!/usr/bin/env python
# coding=utf-8
# Mathieu Courtois - EDF R&D, 2013 - http://www.code-aster.org
"""
When a project has a lot of options the 'waf configure' command line can be
very long and it becomes a cause of error.
This tool provides a convenient way to load a set of configuration parameters
from a local file ... | 5,657 | Python | .py | 149 | 35.087248 | 142 | 0.726791 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,614 | run_m_script.py | projecthamster_hamster/waflib/extras/run_m_script.py | #!/usr/bin/env python
# encoding: utf-8
# Hans-Martin von Gaudecker, 2012
"""
Run a Matlab script.
Note that the script is run in the directory where it lives -- Matlab won't
allow it any other way.
For error-catching purposes, keep an own log-file that is destroyed if the
task finished without error. If not, it wil... | 3,066 | Python | .py | 73 | 39.150685 | 151 | 0.708529 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,615 | pch.py | projecthamster_hamster/waflib/extras/pch.py | #! /usr/bin/env python
# encoding: utf-8
# Alexander Afanasyev (UCLA), 2014
"""
Enable precompiled C++ header support (currently only clang++ and g++ are supported)
To use this tool, wscript should look like:
def options(opt):
opt.load('pch')
# This will add `--with-pch` configure option.
# Unless --with-pch ... | 4,384 | Python | .py | 116 | 34.844828 | 234 | 0.693107 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,616 | netcache_client.py | projecthamster_hamster/waflib/extras/netcache_client.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011-2015 (ita)
"""
A client for the network cache (playground/netcache/). Launch the server with:
./netcache_server, then use it for the builds by adding the following:
def build(bld):
bld.load('netcache_client')
The parameters should be present in the envi... | 9,095 | Python | .py | 330 | 24.715152 | 109 | 0.690867 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,617 | resx.py | projecthamster_hamster/waflib/extras/resx.py | #! /usr/bin/env python
# encoding: utf-8
import os
from waflib import Task
from waflib.TaskGen import extension
def configure(conf):
conf.find_program(['resgen'], var='RESGEN')
conf.env.RESGENFLAGS = '/useSourcePath'
@extension('.resx')
def resx_file(self, node):
"""
Bind the .resx extension to a resgen task
""... | 1,050 | Python | .py | 28 | 35.535714 | 90 | 0.698522 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,618 | classic_runner.py | projecthamster_hamster/waflib/extras/classic_runner.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2021 (ita)
from waflib import Utils, Runner
"""
Re-enable the classic threading system from waf 1.x
def configure(conf):
conf.load('classic_runner')
"""
class TaskConsumer(Utils.threading.Thread):
"""
Task consumers belong to a pool of workers
They wait fo... | 1,581 | Python | .py | 58 | 24.172414 | 87 | 0.707204 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,619 | cfg_altoptions.py | projecthamster_hamster/waflib/extras/cfg_altoptions.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Tool to extend c_config.check_cfg()
__author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2014"
"""
This tool allows to work around the absence of ``*-config`` programs
on systems, by keeping the same clean configuration s... | 2,825 | Python | .py | 80 | 32.0875 | 72 | 0.668388 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,620 | biber.py | projecthamster_hamster/waflib/extras/biber.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011 (ita)
"""
Latex processing using "biber"
"""
import os
from waflib import Task, Logs
from waflib.Tools import tex as texmodule
class tex(texmodule.tex):
biber_fun, _ = Task.compile_fun('${BIBER} ${BIBERFLAGS} ${SRCFILE}',shell=False)
biber_fun.__doc__ = ... | 1,629 | Python | .py | 47 | 32.191489 | 112 | 0.700191 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,621 | softlink_libs.py | projecthamster_hamster/waflib/extras/softlink_libs.py | #! /usr/bin/env python
# per rosengren 2011
from waflib.TaskGen import feature, after_method
from waflib.Task import Task, always_run
from os.path import basename, isabs
from os import tmpfile, linesep
def options(opt):
grp = opt.add_option_group('Softlink Libraries Options')
grp.add_option('--exclude', default='/u... | 2,389 | Python | .py | 69 | 30.971014 | 118 | 0.683096 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,622 | clang_cross.py | projecthamster_hamster/waflib/extras/clang_cross.py | #!/usr/bin/env python
# encoding: utf-8
# Krzysztof Kosiński 2014
# DragoonX6 2018
"""
Detect the Clang C compiler
This version is an attempt at supporting the -target and -sysroot flag of Clang.
"""
from waflib.Tools import ccroot, ar, gcc
from waflib.Configure import conf
import waflib.Context
import waflib.extras... | 2,550 | Python | .py | 74 | 32.310811 | 90 | 0.753458 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,623 | fsc.py | projecthamster_hamster/waflib/extras/fsc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011 (ita)
"""
Experimental F# stuff
FSC="mono /path/to/fsc.exe" waf configure build
"""
from waflib import Utils, Task
from waflib.TaskGen import before_method, after_method, feature
from waflib.Tools import ccroot, cs
ccroot.USELIB_VARS['fsc'] = set(['CSFLAGS... | 1,909 | Python | .py | 51 | 35.372549 | 113 | 0.686721 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,624 | compat15.py | projecthamster_hamster/waflib/extras/compat15.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2010 (ita)
"""
This file is provided to enable compatibility with waf 1.5
It was enabled by default in waf 1.6, but it is not used in waf 1.7
"""
import sys
from waflib import ConfigSet, Logs, Options, Scripting, Task, Build, Configure, Node, Runner, TaskGen, Ut... | 11,813 | Python | .py | 339 | 32.348083 | 125 | 0.730166 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,625 | pgicxx.py | projecthamster_hamster/waflib/extras/pgicxx.py | #!/usr/bin/env python
# encoding: utf-8
# Antoine Dechaume 2011
"""
Detect the PGI C++ compiler
"""
from waflib.Tools.compiler_cxx import cxx_compiler
cxx_compiler['linux'].append('pgicxx')
from waflib.extras import pgicc
def configure(conf):
conf.find_pgi_compiler('CXX', 'pgCC')
conf.find_ar()
conf.gxx_common_f... | 395 | Python | .py | 16 | 23.0625 | 50 | 0.752 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,626 | clang_cross_common.py | projecthamster_hamster/waflib/extras/clang_cross_common.py | #!/usr/bin/env python
# encoding: utf-8
# DragoonX6 2018
"""
Common routines for cross_clang.py and cross_clangxx.py
"""
from waflib.Configure import conf
import waflib.Context
def normalize_target_triple(target_triple):
target_triple = target_triple[:-1]
normalized_triple = target_triple.replace('--', '-unknown-'... | 3,426 | Python | .py | 90 | 35.755556 | 93 | 0.690311 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,627 | distnet.py | projecthamster_hamster/waflib/extras/distnet.py | #! /usr/bin/env python
# encoding: utf-8
"""
waf-powered distributed network builds, with a network cache.
Caching files from a server has advantages over a NFS/Samba shared folder:
- builds are much faster because they use local files
- builds just continue to work in case of a network glitch
- permissions are much... | 11,695 | Python | .py | 349 | 30.131805 | 111 | 0.701589 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,628 | javatest.py | projecthamster_hamster/waflib/extras/javatest.py | #! /usr/bin/env python
# encoding: utf-8
# Federico Pellegrin, 2019 (fedepell)
"""
Provides Java Unit test support using :py:class:`waflib.Tools.waf_unit_test.utest`
task via the **javatest** feature.
This gives the possibility to run unit test and have them integrated into the
standard waf unit test environment. It ... | 8,367 | Python | .py | 187 | 41.759358 | 122 | 0.726322 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,629 | genpybind.py | projecthamster_hamster/waflib/extras/genpybind.py | import os
import pipes
import subprocess
import sys
from waflib import Logs, Task, Context
from waflib.Tools.c_preproc import scan as scan_impl
# ^-- Note: waflib.extras.gccdeps.scan does not work for us,
# due to its current implementation:
# The -MD flag is injected into the {C,CXX}FLAGS environment variable and
# d... | 7,000 | Python | .py | 157 | 36.216561 | 85 | 0.640024 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,630 | scala.py | projecthamster_hamster/waflib/extras/scala.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2010 (ita)
"""
Scala support
scalac outputs files a bit where it wants to
"""
import os
from waflib import Task, Utils, Node
from waflib.TaskGen import feature, before_method, after_method
from waflib.Tools import ccroot
ccroot.USELIB_VARS['scalac'] = set(['CLA... | 3,327 | Python | .py | 105 | 28.990476 | 100 | 0.69678 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,631 | kde4.py | projecthamster_hamster/waflib/extras/kde4.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"""
Support for the KDE4 libraries and msgfmt
"""
import os, re
from waflib import Task, Utils
from waflib.TaskGen import feature
@feature('msgfmt')
def apply_msgfmt(self):
"""
Process all languages to create .mo files and to install them::
... | 2,723 | Python | .py | 75 | 33.76 | 127 | 0.673764 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,632 | dpapi.py | projecthamster_hamster/waflib/extras/dpapi.py | #! /usr/bin/env python
# encoding: utf-8
# Matt Clarkson, 2012
'''
DPAPI access library (http://msdn.microsoft.com/en-us/library/ms995355.aspx)
This file uses code originally created by Crusher Joe:
http://article.gmane.org/gmane.comp.python.ctypes/420
And modified by Wayne Koorts:
http://stackoverflow.com/questions/4... | 2,934 | Python | .py | 76 | 36.657895 | 77 | 0.756235 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,633 | erlang.py | projecthamster_hamster/waflib/extras/erlang.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2010 (ita)
# Przemyslaw Rzepecki, 2016
"""
Erlang support
"""
import re
from waflib import Task, TaskGen
from waflib.TaskGen import feature, after_method, before_method
# to load the method "to_incnodes" below
from waflib.Tools import ccroot
# Those flags are re... | 3,515 | Python | .py | 89 | 37.134831 | 112 | 0.697797 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,634 | gob2.py | projecthamster_hamster/waflib/extras/gob2.py | #!/usr/bin/env python
# encoding: utf-8
# Ali Sabil, 2007
from waflib import TaskGen
TaskGen.declare_chain(
name = 'gob2',
rule = '${GOB2} -o ${TGT[0].bld_dir()} ${GOB2FLAGS} ${SRC}',
ext_in = '.gob',
ext_out = '.c'
)
def configure(conf):
conf.find_program('gob2', var='GOB2')
conf.env['GOB2FLAGS'] = ''
| 314 | Python | .py | 13 | 22.384615 | 61 | 0.649832 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,635 | color_msvc.py | projecthamster_hamster/waflib/extras/color_msvc.py | #!/usr/bin/env python
# encoding: utf-8
# Replaces the default formatter by one which understands MSVC output and colorizes it.
# Modified from color_gcc.py
__author__ = __maintainer__ = "Alibek Omarov <a1ba.omarov@gmail.com>"
__copyright__ = "Alibek Omarov, 2019"
import sys
from waflib import Logs
class ColorMSVCF... | 1,821 | Python | .py | 50 | 31.8 | 87 | 0.665529 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,636 | __init__.py | projecthamster_hamster/waflib/extras/__init__.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2005-2010 (ita)
| 71 | Python | .py | 3 | 22.666667 | 30 | 0.705882 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,637 | satellite_assembly.py | projecthamster_hamster/waflib/extras/satellite_assembly.py | #!/usr/bin/python
# encoding: utf-8
# vim: tabstop=4 noexpandtab
"""
Create a satellite assembly from "*.??.txt" files. ?? stands for a language code.
The projects Resources subfolder contains resources.??.txt string files for several languages.
The build folder will hold the satellite assemblies as ./??/ExeName.reso... | 2,161 | Python | .py | 48 | 42.479167 | 104 | 0.727662 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,638 | run_py_script.py | projecthamster_hamster/waflib/extras/run_py_script.py | #!/usr/bin/env python
# encoding: utf-8
# Hans-Martin von Gaudecker, 2012
"""
Run a Python script in the directory specified by **ctx.bldnode**.
Select a Python version by specifying the **version** keyword for
the task generator instance as integer 2 or 3. Default is 3.
If the build environment has an attribute "PR... | 3,852 | Python | .py | 81 | 44.962963 | 118 | 0.723319 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,639 | make.py | projecthamster_hamster/waflib/extras/make.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011 (ita)
"""
A make-like way of executing the build, following the relationships between inputs/outputs
This algorithm will lead to slower builds, will not be as flexible as "waf build", but
it might be useful for building data files (?)
It is likely to break ... | 3,202 | Python | .py | 120 | 21.883333 | 93 | 0.643137 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,640 | package.py | projecthamster_hamster/waflib/extras/package.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011
"""
Obtain packages, unpack them in a location, and add associated uselib variables
(CFLAGS_pkgname, LIBPATH_pkgname, etc).
The default is use a Dependencies.txt file in the source directory.
This is a work in progress.
Usage:
def options(opt):
opt.load... | 1,590 | Python | .py | 62 | 23.16129 | 79 | 0.739762 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,641 | gccdeps.py | projecthamster_hamster/waflib/extras/gccdeps.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008-2010 (ita)
"""
Execute the tasks with gcc -MD, read the dependencies from the .d file
and prepare the dependency calculation for the next run.
This affects the cxx class, so make sure to load Qt5 after this tool.
Usage::
def options(opt):
opt.load('compi... | 7,371 | Python | .py | 200 | 34.105 | 148 | 0.708152 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,642 | clangxx_cross.py | projecthamster_hamster/waflib/extras/clangxx_cross.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy 2009-2018 (ita)
# DragoonX6 2018
"""
Detect the Clang++ C++ compiler
This version is an attempt at supporting the -target and -sysroot flag of Clang++.
"""
from waflib.Tools import ccroot, ar, gxx
from waflib.Configure import conf
import waflib.extras.clang_cross_... | 3,018 | Python | .py | 85 | 33.352941 | 92 | 0.744505 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,643 | rst.py | projecthamster_hamster/waflib/extras/rst.py | #!/usr/bin/env python
# encoding: utf-8
# Jérôme Carretero, 2013 (zougloub)
"""
reStructuredText support (experimental)
Example::
def configure(conf):
conf.load('rst')
if not conf.env.RST2HTML:
conf.fatal('The program rst2html is required')
def build(bld):
bld(
features = 'rst',
type = 'rst2htm... | 6,951 | Python | .py | 207 | 30.555556 | 123 | 0.691882 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,644 | haxe.py | projecthamster_hamster/waflib/extras/haxe.py | import re
from waflib import Utils, Task, Errors, Logs
from waflib.Configure import conf
from waflib.TaskGen import extension, taskgen_method
HAXE_COMPILERS = {
'JS': {'tgt': '--js', 'ext_out': ['.js']},
'LUA': {'tgt': '--lua', 'ext_out': ['.lua']},
'SWF': {'tgt': '--swf', 'ext_out': ['.swf']},
'NEKO'... | 5,455 | Python | .py | 135 | 32.185185 | 109 | 0.55631 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,645 | fc_bgxlf.py | projecthamster_hamster/waflib/extras/fc_bgxlf.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
from waflib.Tools import fc, fc_config, fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].insert(0, 'fc_bgxlf')
@conf
def find_bgxlf(conf):
fc = conf.find_program(['bgxlf2003_r','bgxlf2003'... | 726 | Python | .py | 26 | 26.153846 | 62 | 0.717579 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,646 | fc_nfort.py | projecthamster_hamster/waflib/extras/fc_nfort.py | #! /usr/bin/env python
# encoding: utf-8
# Detection of the NEC Fortran compiler for Aurora Tsubasa
import re
from waflib.Tools import fc,fc_config,fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].append('fc_nfort')
@conf
def find_nfort(conf):
fc=conf.fi... | 1,304 | Python | .py | 47 | 25.808511 | 91 | 0.721246 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,647 | c_dumbpreproc.py | projecthamster_hamster/waflib/extras/c_dumbpreproc.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"""
Dumb C/C++ preprocessor for finding dependencies
It will look at all include files it can find after removing the comments, so the following
will always add the dependency on both "a.h" and "b.h"::
#include "a.h"
#ifdef B
#include "b.h"
... | 1,659 | Python | .py | 57 | 26.438596 | 91 | 0.689981 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,648 | cppcheck.py | projecthamster_hamster/waflib/extras/cppcheck.py | #! /usr/bin/env python
# -*- encoding: utf-8 -*-
# Michel Mooij, michel.mooij7@gmail.com
"""
Tool Description
================
This module provides a waf wrapper (i.e. waftool) around the C/C++ source code
checking tool 'cppcheck'.
See http://cppcheck.sourceforge.net/ for more information on the cppcheck tool
itself.... | 18,052 | Python | .py | 505 | 32.867327 | 243 | 0.700418 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,649 | objcopy.py | projecthamster_hamster/waflib/extras/objcopy.py | #!/usr/bin/python
# Grygoriy Fuchedzhy 2010
"""
Support for converting linked targets to ihex, srec or binary files using
objcopy. Use the 'objcopy' feature in conjunction with the 'cc' or 'cxx'
feature. The 'objcopy' feature uses the following attributes:
objcopy_bfdname Target object format name (eg. ihex, srec, b... | 1,872 | Python | .py | 44 | 40.068182 | 104 | 0.750412 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,650 | syms.py | projecthamster_hamster/waflib/extras/syms.py | #! /usr/bin/env python
# encoding: utf-8
"""
This tool supports the export_symbols_regex to export the symbols in a shared library.
by default, all symbols are exported by gcc, and nothing by msvc.
to use the tool, do something like:
def build(ctx):
ctx(features='c cshlib syms', source='a.c b.c', export_symbols_rege... | 3,208 | Python | .py | 73 | 41.068493 | 109 | 0.670615 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,651 | run_do_script.py | projecthamster_hamster/waflib/extras/run_do_script.py | #!/usr/bin/env python
# encoding: utf-8
# Hans-Martin von Gaudecker, 2012
"""
Run a Stata do-script in the directory specified by **ctx.bldnode**. The
first and only argument will be the name of the do-script (no extension),
which can be accessed inside the do-script by the local macro `1'. Useful
for keeping a log fi... | 4,989 | Python | .py | 116 | 39.913793 | 113 | 0.709485 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,652 | c_nec.py | projecthamster_hamster/waflib/extras/c_nec.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
"""
NEC SX Compiler for SX vector systems
"""
import re
from waflib import Utils
from waflib.Tools import ccroot,ar
from waflib.Configure import conf
from waflib.Tools import xlc # method xlc_common_flags
from waflib.Tools.compiler_c import c_compiler
... | 1,789 | Python | .py | 66 | 25.227273 | 115 | 0.662974 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,653 | file_to_object.py | projecthamster_hamster/waflib/extras/file_to_object.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Tool to embed file into objects
__author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2014"
"""
This tool allows to embed file contents in object files (.o).
It is not exactly portable, and the file contents are reachable
... | 3,481 | Python | .py | 120 | 26.15 | 72 | 0.654573 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,654 | local_rpath.py | projecthamster_hamster/waflib/extras/local_rpath.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2011 (ita)
import copy
from waflib.TaskGen import after_method, feature
@after_method('propagate_uselib_vars')
@feature('cprogram', 'cshlib', 'cxxprogram', 'cxxshlib', 'fcprogram', 'fcshlib')
def add_rpath_stuff(self):
all = copy.copy(self.to_list(getattr(self,... | 594 | Python | .py | 18 | 30.611111 | 80 | 0.69808 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,655 | msvcdeps.py | projecthamster_hamster/waflib/extras/msvcdeps.py | #!/usr/bin/env python
# encoding: utf-8
# Copyright Garmin International or its subsidiaries, 2012-2013
'''
Off-load dependency scanning from Python code to MSVC compiler
This tool is safe to load in any environment; it will only activate the
MSVC exploits when it finds that a particular taskgen uses MSVC to
compile.... | 8,835 | Python | .py | 235 | 34.638298 | 99 | 0.726964 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,656 | clang_compilation_database.py | projecthamster_hamster/waflib/extras/clang_compilation_database.py | #!/usr/bin/env python
# encoding: utf-8
# Christoph Koke, 2013
# Alibek Omarov, 2019
"""
Writes the c and cpp compile commands into build/compile_commands.json
see http://clang.llvm.org/docs/JSONCompilationDatabase.html
Usage:
Load this tool in `options` to be able to generate database
by request in command-line a... | 3,371 | Python | .py | 112 | 26.294643 | 86 | 0.691095 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,657 | fc_open64.py | projecthamster_hamster/waflib/extras/fc_open64.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib import Utils
from waflib.Tools import fc,fc_config,fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].insert(0, 'fc_open64')
@conf
def find_openf95(conf):
"""Find the O... | 1,510 | Python | .py | 47 | 30.191489 | 105 | 0.72865 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,658 | fc_pgfortran.py | projecthamster_hamster/waflib/extras/fc_pgfortran.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib.Tools import fc, fc_config, fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].append('fc_pgfortran')
@conf
def find_pgfortran(conf):
"""Find the PGI fortran compiler (... | 1,780 | Python | .py | 61 | 26.147541 | 81 | 0.658294 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,659 | sas.py | projecthamster_hamster/waflib/extras/sas.py | #!/usr/bin/env python
# encoding: utf-8
# Mark Coggeshall, 2010
"SAS support"
import os
from waflib import Task, Errors, Logs
from waflib.TaskGen import feature, before_method
sas_fun, _ = Task.compile_fun('sas -sysin ${SRCFILE} -log ${LOGFILE} -print ${LSTFILE}', shell=False)
class sas(Task.Task):
vars = ['SAS', ... | 1,946 | Python | .py | 56 | 31.857143 | 105 | 0.686933 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,660 | protoc.py | projecthamster_hamster/waflib/extras/protoc.py | #!/usr/bin/env python
# encoding: utf-8
# Philipp Bender, 2012
# Matt Clarkson, 2012
import re, os
from waflib.Task import Task
from waflib.TaskGen import extension
from waflib import Errors, Context, Logs
"""
A simple tool to integrate protocol buffers into your build system.
Example for C++:
def configure(con... | 6,873 | Python | .py | 176 | 33.9375 | 151 | 0.676493 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,661 | xcode6.py | projecthamster_hamster/waflib/extras/xcode6.py | #! /usr/bin/env python
# encoding: utf-8
# XCode 3/XCode 4/XCode 6/Xcode 7 generator for Waf
# Based on work by Nicolas Mercier 2011
# Extended by Simon Warg 2015, https://github.com/mimon
# XCode project file format based on http://www.monobjc.net/xcode-project-file-format.html
"""
See playground/xcode6/ for usage ex... | 24,215 | Python | .py | 612 | 36.72549 | 361 | 0.724327 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,662 | boost.py | projecthamster_hamster/waflib/extras/boost.py | #!/usr/bin/env python
# encoding: utf-8
#
# partially based on boost.py written by Gernot Vormayr
# written by Ruediger Sonderfeld <ruediger@c-plusplus.de>, 2008
# modified by Bjoern Michaelsen, 2008
# modified by Luca Fossati, 2008
# rewritten for waf 1.5.1, Thomas Nagy, 2008
# rewritten for waf 1.6.2, Sylvain Rouquet... | 18,557 | Python | .py | 470 | 36.395745 | 164 | 0.680717 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,663 | fc_solstudio.py | projecthamster_hamster/waflib/extras/fc_solstudio.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib import Utils
from waflib.Tools import fc,fc_config,fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].append('fc_solstudio')
@conf
def find_solstudio(conf):
"""Find the... | 1,642 | Python | .py | 51 | 30.254902 | 88 | 0.710127 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,664 | proc.py | projecthamster_hamster/waflib/extras/proc.py | #! /usr/bin/env python
# per rosengren 2011
from os import environ, path
from waflib import TaskGen, Utils
def options(opt):
grp = opt.add_option_group('Oracle ProC Options')
grp.add_option('--oracle_home', action='store', default=environ.get('PROC_ORACLE'), help='Path to Oracle installation home (has bin/lib)')
g... | 1,725 | Python | .py | 47 | 34.361702 | 139 | 0.685218 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,665 | msvc_pdb.py | projecthamster_hamster/waflib/extras/msvc_pdb.py | #!/usr/bin/env python
# encoding: utf-8
# Rafaël Kooi 2019
from waflib import TaskGen
@TaskGen.feature('c', 'cxx', 'fc')
@TaskGen.after_method('propagate_uselib_vars')
def add_pdb_per_object(self):
"""For msvc/fortran, specify a unique compile pdb per object, to work
around LNK4099. Flags are updated with a unique... | 1,339 | Python | .py | 38 | 31.631579 | 82 | 0.676721 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,666 | cython.py | projecthamster_hamster/waflib/extras/cython.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2010-2015
import re
from waflib import Task, Logs
from waflib.TaskGen import extension
cy_api_pat = re.compile(r'\s*?cdef\s*?(public|api)\w*')
re_cyt = re.compile(r"""
^\s* # must begin with some whitespace characters
(?:from\s+(\w+)(... | 4,197 | Python | .py | 124 | 30.701613 | 117 | 0.671111 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,667 | pep8.py | projecthamster_hamster/waflib/extras/pep8.py | #! /usr/bin/env python
# encoding: utf-8
#
# written by Sylvain Rouquette, 2011
'''
Install pep8 module:
$ easy_install pep8
or
$ pip install pep8
To add the pep8 tool to the waf file:
$ ./waf-light --tools=compat15,pep8
or, if you have waf >= 1.6.2
$ ./waf update --files=pep8
Then add this to your wscript:
[at]... | 3,476 | Python | .py | 92 | 34.01087 | 66 | 0.693472 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,668 | stracedeps.py | projecthamster_hamster/waflib/extras/stracedeps.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2015 (ita)
"""
Execute tasks through strace to obtain dependencies after the process is run. This
scheme is similar to that of the Fabricate script.
To use::
def configure(conf):
conf.load('strace')
WARNING:
* This will not work when advanced scanners ar... | 4,102 | Python | .py | 143 | 25.958042 | 127 | 0.68279 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,669 | cabal.py | projecthamster_hamster/waflib/extras/cabal.py | #!/usr/bin/env python
# encoding: utf-8
# Anton Feldmann, 2012
# "Base for cabal"
from waflib import Task, Utils
from waflib.TaskGen import extension
from waflib.Utils import threading
from shutil import rmtree
lock = threading.Lock()
registering = False
def configure(self):
self.find_program('caba... | 5,165 | Python | .py | 119 | 35.966387 | 128 | 0.639759 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,670 | cross_gnu.py | projecthamster_hamster/waflib/extras/cross_gnu.py | #!/usr/bin/python
# -*- coding: utf-8 vi:ts=4:noexpandtab
# Tool to provide dedicated variables for cross-compilation
__author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2014"
"""
This tool allows to use environment variables to define cross-compilation
variables i... | 6,109 | Python | .py | 179 | 31.206704 | 105 | 0.68901 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,671 | fc_nag.py | projecthamster_hamster/waflib/extras/fc_nag.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib import Utils
from waflib.Tools import fc,fc_config,fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].insert(0, 'fc_nag')
@conf
def find_nag(conf):
"""Find the NAG Fort... | 1,520 | Python | .py | 50 | 28.42 | 104 | 0.70048 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,672 | build_file_tracker.py | projecthamster_hamster/waflib/extras/build_file_tracker.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2015
"""
Force files to depend on the timestamps of those located in the build directory. You may
want to use this to force partial rebuilds, see playground/track_output_files/ for a working example.
Note that there is a variety of ways to implement this, one ma... | 898 | Python | .py | 21 | 40.904762 | 116 | 0.777011 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,673 | midl.py | projecthamster_hamster/waflib/extras/midl.py | #!/usr/bin/env python
# Issue 1185 ultrix gmail com
"""
Microsoft Interface Definition Language support. Given ComObject.idl, this tool
will generate ComObject.tlb ComObject_i.h ComObject_i.c ComObject_p.c and dlldata.c
To declare targets using midl::
def configure(conf):
conf.load('msvc')
conf.load('midl')
... | 1,699 | Python | .py | 57 | 27.333333 | 197 | 0.682822 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,674 | wafcache.py | projecthamster_hamster/waflib/extras/wafcache.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2019 (ita)
"""
Filesystem-based cache system to share and re-use build artifacts
Cache access operations (copy to and from) are delegated to
independent pre-forked worker subprocesses.
The following environment variables may be set:
* WAFCACHE: several possibil... | 18,813 | Python | .py | 561 | 30.299465 | 112 | 0.706028 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,675 | review.py | projecthamster_hamster/waflib/extras/review.py | #!/usr/bin/env python
# encoding: utf-8
# Laurent Birtz, 2011
# moved the code into a separate tool (ita)
"""
There are several things here:
- a different command-line option management making options persistent
- the review command to display the options set
Assumptions:
- configuration options are not always added ... | 9,090 | Python | .py | 268 | 30.794776 | 122 | 0.706218 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,676 | fc_cray.py | projecthamster_hamster/waflib/extras/fc_cray.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
import re
from waflib.Tools import fc, fc_config, fc_scan
from waflib.Configure import conf
from waflib.Tools.compiler_fc import fc_compiler
fc_compiler['linux'].append('fc_cray')
@conf
def find_crayftn(conf):
"""Find the Cray fortran compiler (will l... | 1,446 | Python | .py | 43 | 31.44186 | 102 | 0.693907 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,677 | blender.py | projecthamster_hamster/waflib/extras/blender.py | #!/usr/bin/env python
# encoding: utf-8
# Michal Proszek, 2014 (poxip)
"""
Detect the version of Blender, path
and install the extension:
def options(opt):
opt.load('blender')
def configure(cnf):
cnf.load('blender')
def build(bld):
bld(name='io_mesh_raw',
feature='blender',
files=['file1.py', 'file2.py... | 3,069 | Python | .py | 92 | 31.021739 | 95 | 0.715299 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,678 | bjam.py | projecthamster_hamster/waflib/extras/bjam.py | #! /usr/bin/env python
# per rosengren 2011
from os import sep, readlink
from waflib import Logs
from waflib.TaskGen import feature, after_method
from waflib.Task import Task, always_run
def options(opt):
grp = opt.add_option_group('Bjam Options')
grp.add_option('--bjam_src', default=None, help='You can find it in ... | 3,893 | Python | .py | 120 | 29.475 | 102 | 0.678353 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,679 | remote.py | projecthamster_hamster/waflib/extras/remote.py | #!/usr/bin/env python
# encoding: utf-8
# Remote Builds tool using rsync+ssh
__author__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2013"
"""
Simple Remote Builds
********************
This tool is an *experimental* tool (meaning, do not even try to pollute
the waf bug tracker with bu... | 9,786 | Python | .py | 259 | 33.926641 | 134 | 0.684611 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,680 | qt4.py | projecthamster_hamster/waflib/extras/qt4.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2010 (ita)
"""
Tool Description
================
This tool helps with finding Qt4 tools and libraries,
and also provides syntactic sugar for using Qt4 tools.
The following snippet illustrates the tool usage::
def options(opt):
opt.load('compiler_cxx qt... | 20,306 | Python | .py | 593 | 30.897133 | 154 | 0.674009 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,681 | pyqt5.py | projecthamster_hamster/waflib/extras/pyqt5.py | #!/usr/bin/env python
# encoding: utf-8
# Federico Pellegrin, 2016-2022 (fedepell) adapted for Python
"""
This tool helps with finding Python Qt5 tools and libraries,
and provides translation from QT5 files to Python code.
The following snippet illustrates the tool usage::
def options(opt):
opt.load('py pyqt5')
... | 7,343 | Python | .py | 207 | 33.062802 | 209 | 0.704946 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,682 | parallel_debug.py | projecthamster_hamster/waflib/extras/parallel_debug.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2007-2010 (ita)
"""
Debugging helper for parallel compilation.
Copy it to your project and load it with::
def options(opt):
opt.load('parallel_debug', tooldir='.')
def build(bld):
...
The build will then output a file named pdebug.svg in the source direc... | 12,067 | Python | .py | 380 | 28.955263 | 256 | 0.659802 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,683 | win32_opts.py | projecthamster_hamster/waflib/extras/win32_opts.py | #! /usr/bin/env python
# encoding: utf-8
"""
Windows-specific optimizations
This module can help reducing the overhead of listing files on windows
(more than 10000 files). Python 3.5 already provides the listdir
optimization though.
"""
import os
from waflib import Utils, Build, Node, Logs
try:
TP = '%s\\*'.decode... | 4,708 | Python | .py | 148 | 27.97973 | 105 | 0.697003 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,684 | wix.py | projecthamster_hamster/waflib/extras/wix.py | #!/usr/bin/python
# encoding: utf-8
# vim: tabstop=4 noexpandtab
"""
Windows Installer XML Tool (WiX)
.wxs --- candle ---> .wxobj --- light ---> .msi
bld(features='wix', some.wxs, gen='some.msi', candleflags=[..], lightflags=[..])
bld(features='wix', source=['bundle.wxs','WixBalExtension'], gen='setup.exe', candlef... | 2,659 | Python | .py | 73 | 34.09589 | 105 | 0.692068 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,685 | c_bgxlc.py | projecthamster_hamster/waflib/extras/c_bgxlc.py | #! /usr/bin/env python
# encoding: utf-8
# harald at klimachs.de
"""
IBM XL Compiler for Blue Gene
"""
from waflib.Tools import ccroot,ar
from waflib.Configure import conf
from waflib.Tools import xlc # method xlc_common_flags
from waflib.Tools.compiler_c import c_compiler
c_compiler['linux'].append('c_bgxlc')
@con... | 706 | Python | .py | 26 | 25.461538 | 54 | 0.735905 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,686 | valadoc.py | projecthamster_hamster/waflib/extras/valadoc.py | #! /usr/bin/env python
# encoding: UTF-8
# Nicolas Joseph 2009
"""
ported from waf 1.5:
TODO: tabs vs spaces
"""
from waflib import Task, Utils, Errors, Logs
from waflib.TaskGen import feature
VALADOC_STR = '${VALADOC}'
class valadoc(Task.Task):
vars = ['VALADOC', 'VALADOCFLAGS']
color = 'BLUE'
after = ['cprogr... | 4,445 | Python | .py | 128 | 31.921875 | 131 | 0.69036 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,687 | codelite.py | projecthamster_hamster/waflib/extras/codelite.py | #! /usr/bin/env python
# encoding: utf-8
# CodeLite Project
# Christian Klein (chrikle@berlios.de)
# Created: Jan 2012
# As templete for this file I used the msvs.py
# I hope this template will work proper
"""
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that ... | 33,888 | Python | .py | 746 | 31.686327 | 224 | 0.536419 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,688 | unity.py | projecthamster_hamster/waflib/extras/unity.py | #! /usr/bin/env python
# encoding: utf-8
"""
Compile whole groups of C/C++ files at once
(C and C++ files are processed independently though).
To enable globally::
def options(opt):
opt.load('compiler_cxx')
def build(bld):
bld.load('compiler_cxx unity')
To enable for specific task generators only::
def buil... | 2,872 | Python | .py | 85 | 31.141176 | 98 | 0.684153 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,689 | c_emscripten.py | projecthamster_hamster/waflib/extras/c_emscripten.py | #!/usr/bin/env python
# -*- coding: utf-8 vi:ts=4:noexpandtab
import subprocess, shlex, sys
from waflib.Tools import ccroot, gcc, gxx
from waflib.Configure import conf
from waflib.TaskGen import after_method, feature
from waflib.Tools.compiler_c import c_compiler
from waflib.Tools.compiler_cxx import cxx_compiler
f... | 2,528 | Python | .py | 74 | 32 | 94 | 0.677181 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,690 | waf_xattr.py | projecthamster_hamster/waflib/extras/waf_xattr.py | #! /usr/bin/env python
# encoding: utf-8
"""
Use extended attributes instead of database files
1. Input files will be made writable
2. This is only for systems providing extended filesystem attributes
3. By default, hashes are calculated only if timestamp/size change (HASH_CACHE below)
4. The module enables "deep_inp... | 4,144 | Python | .py | 128 | 29.710938 | 101 | 0.729344 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,691 | ticgt.py | projecthamster_hamster/waflib/extras/ticgt.py | #!/usr/bin/env python
# encoding: utf-8
# Texas Instruments code generator support (experimental)
# When reporting issues, please directly assign the bug to the maintainer.
__author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2012"
"""
TI cgt6x is a compiler suite ... | 9,474 | Python | .py | 243 | 36.452675 | 298 | 0.687609 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,692 | halide.py | projecthamster_hamster/waflib/extras/halide.py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Halide code generation tool
__author__ = __maintainer__ = "Jérôme Carretero <cJ-waf@zougloub.eu>"
__copyright__ = "Jérôme Carretero, 2014"
"""
Tool to run `Halide <http://halide-lang.org>`_ code generators.
Usage::
bld(
name='pipeline',
# ^ Reference this in ... | 3,987 | Python | .py | 123 | 29.284553 | 83 | 0.662578 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,693 | qt5.py | projecthamster_hamster/waflib/Tools/qt5.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
# Rafaël Kooi, 2023 (RA-Kooi)
"""
This tool helps with finding Qt5 and Qt6 tools and libraries,
and also provides syntactic sugar for using Qt5 and Qt6 tools.
The following snippet illustrates the tool usage::
def options(opt):
opt.load('comp... | 26,948 | Python | .py | 747 | 32.850067 | 165 | 0.682209 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,694 | clang.py | projecthamster_hamster/waflib/Tools/clang.py | #!/usr/bin/env python
# encoding: utf-8
# Krzysztof Kosiński 2014
"""
Detect the Clang C compiler
"""
from waflib.Tools import ccroot, ar, gcc
from waflib.Configure import conf
@conf
def find_clang(conf):
"""
Finds the program clang and executes it to ensure it really is clang
"""
cc = conf.find_program('clang'... | 623 | Python | .py | 25 | 23.2 | 69 | 0.728956 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,695 | dmd.py | projecthamster_hamster/waflib/Tools/dmd.py | #!/usr/bin/env python
# encoding: utf-8
# Carlos Rafael Giani, 2007 (dv)
# Thomas Nagy, 2008-2018 (ita)
import sys
from waflib.Tools import ar, d
from waflib.Configure import conf
@conf
def find_dmd(conf):
"""
Finds the program *dmd*, *dmd2*, or *ldc* and set the variable *D*
"""
conf.find_program(['dmd', 'dmd2',... | 1,880 | Python | .py | 64 | 27.203125 | 74 | 0.606667 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,696 | python.py | projecthamster_hamster/waflib/Tools/python.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2007-2015 (ita)
# Gustavo Carneiro (gjc), 2007
"""
Support for Python, detect the headers and libraries and provide
*use* variables to link C/C++ programs against them::
def options(opt):
opt.load('compiler_c python')
def configure(conf):
conf.load('compile... | 23,264 | Python | .py | 566 | 38.303887 | 184 | 0.70978 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,697 | c.py | projecthamster_hamster/waflib/Tools/c.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"Base for c programs/libraries"
from waflib import TaskGen, Task
from waflib.Tools import c_preproc
from waflib.Tools.ccroot import link_task, stlink_task
@TaskGen.extension('.c')
def c_hook(self, node):
"Binds the c file extensions create :py:c... | 1,529 | Python | .py | 31 | 47.451613 | 308 | 0.708054 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,698 | glib2.py | projecthamster_hamster/waflib/Tools/glib2.py | #! /usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2006-2018 (ita)
"""
Support for GLib2 tools:
* marshal
* enums
* gsettings
* gresource
"""
import os
import functools
from waflib import Context, Task, Utils, Options, Errors, Logs
from waflib.TaskGen import taskgen_method, before_method, feature, extension
fro... | 15,771 | Python | .py | 407 | 34.700246 | 261 | 0.684662 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |
20,699 | nasm.py | projecthamster_hamster/waflib/Tools/nasm.py | #!/usr/bin/env python
# encoding: utf-8
# Thomas Nagy, 2008-2018 (ita)
"""
Nasm tool (asm processing)
"""
import os
import waflib.Tools.asm # leave this
from waflib.TaskGen import feature
@feature('asm')
def apply_nasm_vars(self):
"""provided for compatibility"""
self.env.append_value('ASFLAGS', self.to_list(getat... | 733 | Python | .py | 27 | 25.37037 | 80 | 0.676638 | projecthamster/hamster | 1,069 | 250 | 128 | GPL-3.0 | 9/5/2024, 5:12:46 PM (Europe/Amsterdam) |