Questions tagged [build-system]

Build systems are software tools designed to automate the process of program compilation.

Build systems are software tools designed to automate the process of program compilation. Build systems come in various forms, and are used for a variety of software build tasks. Their primary goal is to efficiently create executables and libraries.

At their core, build systems are functional based languages mapping a set of source resources (in most cases, files) to a target (executable). The primary assumption of the build system is that each of the build actions are idempotent. That is, each invocation of a build command with the same input and options will create the same output. This assumption allows the build system to memorize the actions that is has already performed, and only perform build actions on resources that have changed.

409 questions
10
votes
1 answer

Move from Gradle to CMake for C++ project

We have been using Gradle for our C++ project(s) for the last year now but as the complexity of the project grows and our use/creation of libraries increases I find myself dealing with situations where my knowledge of Gradle falls short. The net is…
Jad
  • 413
  • 1
  • 5
  • 11
9
votes
2 answers

How to pass compiler options during Linux kernel compilation?

For reasons, I need to compile the Linux kernel (currently 4.7.10) passing some simple and innocent additional command line options (e.g. -pipe -Wsomething etc) to the C compiler. How do I do it? More specifically, how do I enforce these compiler…
jotik
  • 17,044
  • 13
  • 58
  • 123
9
votes
3 answers

Why gradle doesn't search for dependency in other maven repos?

Why does gradle not searching for dependency in ALL defined maven repos? Repos block is defined: repositories { maven { name = 'JBoss.org Maven repository' url 'https://repository.jboss.org/nexus/content/groups/public' } …
head_thrash
  • 1,623
  • 1
  • 21
  • 26
8
votes
2 answers

Finding Directed Acyclic Graph (DAG) Minimal Elements (Vertices) with XSLT/XPath?

I have an XML file that encodes a directed acyclic graph (DAG) that represents a partial order. Such graphs are useful for things like specifying dependencies and finding critical paths. For the curious, my current application is to specify…
Greg Mattes
  • 33,090
  • 15
  • 73
  • 105
8
votes
2 answers

Build system for an embedded C/C++ project

I am looking for a high-level build system/tool that can help organise my embedded C project into "modules" and "components". Note that these two terms are highly subjective so my definitions are given below. A module is a cohesive collection of c…
thegreendroid
  • 3,239
  • 6
  • 31
  • 40
8
votes
3 answers

SBT multiproject setup where a subproject's build files depend on unmanaged JARs

Scenario: I want to develop a projectA written in Scala, which depends on projectB, also written in Scala. It will often be the case that I need to modify projectB as well. Hence, I will have a local Git clone of projectB (as in my repository as a…
ComFreek
  • 29,044
  • 18
  • 104
  • 156
8
votes
3 answers

Sublime Text 2 build system to compile & run Java in a new Terminal/Command Prompt window?

I would like to make a build system in Sublime Text 2 that will compile a Java file, and then run it in a new Terminal (for OS X or Linux) or Command Prompt (for Windows) window. The reason for this is because Sublime Text 2 doesn't allow users to…
user1650369
7
votes
1 answer

Bazel environment variables in build rules

I want to refer to a DirectX SDK in the BUILD file. The problem is that (as far as I understand) Bazel supports passing environment variables only through --action_env=DXSDK_DIR argument for Bazel and it is meant to be used in actions, which must be…
shybovycha
  • 11,556
  • 6
  • 52
  • 82
7
votes
1 answer

MSBuild confusing behavior with Target Outputs & Returns

I'm trying to understand the logic behind Outputs & Returns parameters. And I found very confusing behavior in case of using Outputs & Returns attribute. e.x. I created a project with 2 targets "Build" and "InternalTarget". The first target defines…
AndreyR
  • 294
  • 4
  • 15
7
votes
5 answers

How to show result of python script in a console when running from ST editor?

I'm new to Sublime Text so am unfamiliar with its internals so far. From what I could tell the problem could be something related to this. I have a python script var = raw_input("Enter something: ") print "You entered ", var which asks for input,…
Rook
  • 60,248
  • 49
  • 165
  • 242
7
votes
7 answers

What's a stupidly simple way to compile an OCaml project?

I'm toying around with OCaml. The first thing I want to know how to do is build an OCaml project. Right now, I just want something stupidly simple since I'm just learning. Could anyone point me towards a build system along with a "hello world"…
Jason Baker
  • 192,085
  • 135
  • 376
  • 510
6
votes
3 answers

Best build system for embedded development/cross-compiling

I'm doing some development right now using dsPICs and I'm not exactly in love with MPLAB. I'm actually using Visual Studio with a makefile project. Currently I'm using SCons, which seems to work fairly well, after finding a helpful guide to setting…
megabytephreak
  • 588
  • 7
  • 17
6
votes
2 answers

Build System and portability

I'm wondering how i can make a portable build system (step-by-step), i currently use cmake because it was easy to set up in the first place, with only one arch target, but now that i have to package the library I'm developing I'm wondering how is…
claf
  • 9,043
  • 17
  • 62
  • 79
6
votes
1 answer

Rollup + Typescript error when importing files outside baseUrl

I put together a rollup build system that takes a folder of Typescript components exports them as modules. The build system works perfectly if the component files live within the folder structure: src/components/Button but the problem arises when I…
user994619
  • 99
  • 1
  • 7
6
votes
1 answer

Yocto Bitbake Recipe How To Override do_install() and do_install_append()

I am trying to add the open source "procps" package to my working Yocto build. This package installs a bunch of binaries that replace those provided by BusyBox. I only want one of these binaries - pgrep. In my layer I created a bbappend file named…
PhilBot
  • 748
  • 18
  • 85
  • 173
1 2
3
27 28