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
14
votes
4 answers

What build systems work with Go?

I know that the Go source comes with a Makefile (It's in $GOROOT/doc) which I am using right now, but have other popular build systems added support for Go yet? Has anyone written build scripts for scons, waf etc... What do you use to build your Go…
Isaiah
  • 4,201
  • 4
  • 27
  • 40
14
votes
2 answers

How to adjust the path that Emacs' compile-goto-error gets from the compilation buffer?

I am using Emacs 23 and have the following problem: I run our project's build system from within Emacs like M-x compile -> cd /foo/bar && ./build The build system now does some magic, "cd"s into some subdirectory for the build process and then gcc…
Arne
  • 2,624
  • 3
  • 24
  • 45
13
votes
3 answers

Difference between "IntelliJ", "Maven" and "Gradle" build system in IntelliJ IDEA?

What is the difference between IntelliJ, Maven and Gradle build system in IntelliJ IDEA? Has IntelliJ IDEA its own build system? In addition, what is the difference between run in IntelliJ and Gradle bootRun?
henry-jo
  • 283
  • 1
  • 3
  • 14
13
votes
1 answer

Why use add_library({tgt} IMPORTED) versus target_link_libraries( -l {.so | .a})?

What is the purpose of using the statement: add_library( [SHARED|STATIC] IMPORTED) From what I have found even if you create an imported library target above you still would need to specify the specific location of the actual .so or .a. This…
Spencer Duball
  • 531
  • 2
  • 6
  • 18
13
votes
8 answers

Macro definitions for headers, where to put them?

When defining macros that headers rely on, such as _FILE_OFFSET_BITS, FUSE_USE_VERSION, _GNU_SOURCE among others, where is the best place to put them? Some possibilities I've considered include At the top of the any source files that rely on…
Matt Joiner
  • 112,946
  • 110
  • 377
  • 526
13
votes
7 answers

Sublime SFTP - Upload compiled css when sass file saved

I'm developing html/css in Sublime. I'm writing my css with sass and using Sublime's build system to generate the css file on file save. It's also configured to upload on save using the SFTP plugin. My problem is that the generated css file doesn't…
Ryan
  • 3,726
  • 3
  • 26
  • 38
13
votes
3 answers

Cabal with multiple Library sections

Is it possbile to write a Cabal configuration file, which contains multiple Library sections? I found in the documentation the description of Library section and Executables sections, so it seems, that it is impossible to put more Library section in…
Wojciech Danilo
  • 11,573
  • 17
  • 66
  • 132
12
votes
1 answer

Difference Between Android.bp and Android.mk

In Android O framework code, we see both Android.bp and Android.mk files. What is the need for both files? As per documentation .bp files are used for soong build system. When we do a build which file will be executed? .mk or .bp?
MayureshG
  • 354
  • 2
  • 5
  • 14
12
votes
1 answer

What is the job for oe_runmake in yocto?

I want to know about the oe_runmake in yocto.
yoctotutor.com
  • 5,145
  • 4
  • 26
  • 36
12
votes
4 answers

Can you glob source code with meson?

Is it possible to glob source code files in a meson build?
oz10
  • 153,307
  • 27
  • 93
  • 128
12
votes
3 answers

How to use libraries within my CMake project that need to be installed first?

I have a problem with my CMake build system. There are CMakeLists.txt files defining runtimes or libraries or using ExternalProjects_Add() to download and build external code. Because of dependencies, those projects have to find each other. Now I…
danijar
  • 32,406
  • 45
  • 166
  • 297
12
votes
3 answers

Enable `--multi-dex` option in ant for Android

It's easy to enable multi-dex option for gradle build system, but I haven't found example how I can enable this option for ant building. How can archive this?
Nickolai Astashonok
  • 2,878
  • 3
  • 20
  • 23
12
votes
4 answers

How do I force a target to be rebuilt if a variable is set?

Assume I have a build-target foo: foo:foo.c $(CC) $(CFLAGS) $(ARGS) -c foo.c -o foo Now, ARGS is something that I pass on the command line: $ make ARGS:=-DX=1 foo So, I need to bypass make's cleverness, because the foo target does not only…
bitmask
  • 32,434
  • 14
  • 99
  • 159
12
votes
1 answer

How do I configure the SVN HTTP proxy from the command line?

I script the set up of my build environment. (So the build process can bootstrap itself if it finds itself running on a clean image). As part of this process, certain dependencies are retrieved from public SVN repositories. The build machines sit…
William Payne
  • 3,055
  • 3
  • 23
  • 25
11
votes
2 answers

CMAKE: Creating and building a list within a function -- with directory, or global scope

I am not entirely familiar with the scoping rules of cmake. I need to buildup a list of various files whilst doing RPC code-generation for an IDL. function(generate_rpc file_name) set(PROTO_FILES ${PROTO_FILES}…
Hassan Syed
  • 20,075
  • 11
  • 87
  • 171
1
2
3
27 28