aboutsummaryrefslogtreecommitdiff
path: root/build/scope.cxx
AgeCommit message (Collapse)AuthorFilesLines
2016-01-05Rename build directory/namespace to build2Boris Kolpackov1-317/+0
2015-12-02Implement optional module loadingBoris Kolpackov1-21/+17
The syntax is: using? cli Now each module use results in two bool variables: <module>.loaded and <module>.configured. Also implement variable visibility (the above two variables are limited to project).
2015-12-01Use 'extension' variable to resolve extension for file{}Boris Kolpackov1-1/+23
We now also check target type/pattern-specific variables. So the new usage is: cli{*}: extension = cli
2015-12-01Implement support for definition target type aliasesBoris Kolpackov1-6/+9
For example: define cli=file Currently, the semantics is that of a real alias with only name differences that are used for display. See tests/define/buildfile for more use cases.
2015-08-31Rework scoping logicBoris Kolpackov1-52/+110
Now the src directory is entered into the scope map and points to the same scope as out. This means that targets that are in src, not out (e.g., source files) will "see" rules, variables, etc. This becomes important when we try, for example, to install a source file (say, a header) from src: we need the rule as well as the install.* variables.
2015-08-24New variable architectureBoris Kolpackov1-12/+15
2015-08-17Tighten variable_map interfaceBoris Kolpackov1-5/+3
2015-07-15Implement project-qualified names/prerequisites, two-stage importBoris Kolpackov1-1/+1
2015-07-07Rework module architectureBoris Kolpackov1-0/+100
Now the target type and rule maps are in scopes (builtins -- in global scope). We also now have the map of loaded modules in the root scope of each project.
2015-06-18Move path and filesystem from build2 to libbutlBoris Kolpackov1-2/+2
2015-05-25Store pointer to map key rather than iteratorBoris Kolpackov1-1/+1
Clang's libc++ complains about a map iterator instantiation that has an incomplete value. At the same time, it appears that references (and thus pointers) to map elements are also stable.
2015-05-11Correct copyrightBoris Kolpackov1-1/+1
2015-04-15New variables architectureBoris Kolpackov1-5/+22
Now operator[] is only used for lookup.
2015-04-15Initial library supportBoris Kolpackov1-7/+0
2015-04-13Add separate type to represent directory pathsBoris Kolpackov1-3/+3
2015-04-07Initial support for amalgamation/subprojectsBoris Kolpackov1-3/+5
For now both need to be manually specified in src bootstrap. At this stage main() loads any outer root scopes while include loads any inner.
2015-04-07Provide more convenient access to root scopeBoris Kolpackov1-9/+26
2015-03-31Rename root_scope to global_scopeBoris Kolpackov1-3/+3
To avoid confusion with project's root scopes.
2015-03-18Implement complete root/base detection, basic module supportBoris Kolpackov1-3/+3
This is the initial groundwork for the configuration support.
2015-03-04Move roots and bases to appropriate scopesBoris Kolpackov1-24/+30
2015-02-27Variable assignment, appending supportBoris Kolpackov1-5/+29
2015-02-26Support for scope parents, initial variable supportBoris Kolpackov1-0/+66
2014-12-18Initial support for loading dependency info from buildfilesBoris Kolpackov1-0/+12
Also a new iteration on the overall architecture. Now, for the first time, build can read the buildfile and build itself. g++-4.9 -std=c++14 -g -I.. -o bd bd.cxx algorithm.cxx scope.cxx parser.cxx lexer.cxx target.cxx prerequisite.cxx rule.cxx native.cxx cxx/target.cxx cxx/rule.cxx process.cxx timestamp.cxx path.cxx g++-4.9 -std=c++14 -g -I../../.. -o driver driver.cxx ../../../build/lexer.cxx g++-4.9 -std=c++14 -g -I../../.. -o driver driver.cxx ../../../build/lexer.cxx ../../../build/parser.cxx ../../../build/scope.cxx ../../../build/target.cxx ../../../build/native.cxx ../../../build/prerequisite.cxx ../../../build/path.cxx ../../../build/timestamp.cxx