summaryrefslogtreecommitdiff
path: root/src/lib/buildgraph/processcommandexecutor.h
Commit message (Collapse)AuthorAgeFilesLines
* Make a process' environment configurable in a prepare script.Christian Kandeler2013-04-031-1/+5
| | | | | | | | This is needed for applications that are configured via environment variables rather than command-line arguments. Change-Id: I114f2bcd65d8551175b35ffbd4912bd37699dc89 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Remove global log sink.Christian Kandeler2013-02-061-1/+1
| | | | | | | | | | | | | | | Applications may not want to use the same log sink for all builds. The logging facility is also decoupled from the command-line client in other ways: - The LogWriter modifiers for output channel and text color are gone, since this type of decision should not be made by low-level code. Instead, the "highlight" string can be forwarded to the log sink. - The console logger now lives in app/shared, as it must never be used by library code. Change-Id: I8863a554c9b74577320ef23f6f934a74e0f0cbb0 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Do not write directly into loggerTobias Hunger2013-01-111-2/+6
| | | | | | | | | | | Pass information up to the client instead so that it can decide how to handle it. This allows e.g. creator to parse compile output for build issues. Change-Id: I76be4eaeb289b211b7d2527b555536b556655492 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* update copyright yearJoerg Bornemann2013-01-091-1/+1
| | | | | Change-Id: Ic2962e57ede037b910d7e77b01b0163f0a22cb7d Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Improve ProcessCommandExecutorTobias Hunger2013-01-081-1/+2
| | | | | | | | | | | | | | * Report absolute path of executable to be run, incl. extensions on windows. This makes a dry run a bit more expensive, but also more useful. * Better calculation of command line length. This used to ignore extensions that were tagged on to the exectuable name as well as spaces between arguments and "" that might be necessary to escape whitespaces. * Replace m_commandline with m_program and m_arguments Change-Id: Id3becca9fea168a971af2e762aef984b4291c8f6 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Make header guards unique.Christian Kandeler2012-11-291-3/+3
| | | | | | | | | We add a "QBS_" prefix everywhere to reduce the chance of clashes with header files from somewhere else. This is especially important for the headers to be included in client code. Change-Id: I2fe8de250073a79f4ae9a4237569c21a980f7c85 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Introduce namespace Internal.Christian Kandeler2012-11-081-0/+2
| | | | | | | | | This makes it obvious at first glance which facilities are for public use and which are not, which should be useful especially for clients of the library. Change-Id: I7f74f13b5c8a4c63a1de57bf607084a3a3852653 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Split up class CommandExecutor.Christian Kandeler2012-10-221-0/+78
It currently combines the running of processes and Javascript commands, which are two completely different things. Put the respective functionality into dedicated classes and provide a common API via a base class. Change-Id: I65517fc6fa75c102c9029259ec9d96563b0a2a82 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>