Questions tagged [buildconfiguration]

The process, mechanism and results of configuring the build of a source-code project or hierarchy-of-files into its target artifacts (executable files, object libraries, generated documents etc.)

191 questions
10
votes
3 answers

BuildConfigField mock for unit test in Kotlin

I'm trying to cover as much as possible a Kotlin Android library and I'm encountering an issue about custom BuildConfig variable, better known as buildConfigField. I would like to mock this variable to test both true and false values. Extract from…
BapNesS
  • 183
  • 3
  • 10
9
votes
1 answer

iOS: When to Use Which Code Signing Identity in The Build Configuration?

I am never very clear regarding to which Code Signing Identity I should use in the Build Configuration concerning which scenario, and would love if someone can explain it in the most simple way. This is what I know: I create in the Provisioning…
Ohad Regev
  • 5,641
  • 12
  • 60
  • 84
9
votes
1 answer

How to use two different GoogleService-info.plist file in ios swift project for dev n prod?

I need to use two different GoogleService-info.plist for working with dev and prod builds, currently I'm separating dev and prod by just changing "build configuration" in edit scheme, but now I need to have two different .plist files for dev and…
Harshad Madaye
  • 480
  • 1
  • 7
  • 21
9
votes
1 answer

iOS/Xcode: Concurrent builds for Debug, Ad Hoc, and Release *w/ In-App Purchases*

I've followed this tutorial to allow for my app to have builds for DEBUG, ADHOC testing (for my beta users), and RELEASE. Everything works great except for my in-app purchases. My Bundle IDs after this setup are: Debug:…
tptcat
  • 3,894
  • 2
  • 32
  • 51
9
votes
2 answers

Alternatives/Tools for #define hell C/C++

In our C/C++ Project we use a configuration header (~1000 lines) that is full of #ifdef's and #defines #if (defined(HW_1) || defined(SOME_TECHNOLOGY_SUPPORTED)) && defined(OTHER_TECHNOLOGY_SUPPORTED) #define SOME_FEATURE_AVAILABLE #endif In our…
woodtluk
  • 935
  • 8
  • 20
9
votes
3 answers

Unable to create new build configuration

Here's an annoying one. I have a solution in Visual Studio 2012 that contains a .Net 4.5 class library, a .NET 4.5 web application and a .NET 4.5 website. I want to create a new build configuration, let's call it Publish or Live, mainly so that I…
MattW
  • 113
  • 4
8
votes
2 answers

Is it possible to run the command line compiler with selected build configuration in Delphi XE2?

I'd like to make builds from the command line and I'm wondering if there's a way how to execute the command line compiler with selected build configuration ? I know there is option --no-config which won't load default dcc32.cfg file but I would like…
Martin Reiner
  • 2,167
  • 2
  • 20
  • 34
7
votes
2 answers

Post build event depending on configuration name in new ASP.NET 5 project

I'm writing a unified project for 3 smart TVs. I have also 3 configurations created in Visual Studio. Now I want to execute some CLI scripts depending on selected configuration. The problem is in new ASP.NET 5 project I don't have an editor for post…
Nickon
  • 9,652
  • 12
  • 64
  • 119
7
votes
2 answers

How can I let CMake check whether my headers are self-sufficient?

Setup I have a project that builds and runs fine with CMake. My project setup is like this: ├── CMakeLists.txt | ├── include/ │ └── standalone/ │ └── x.hpp | ├── src/ └── standalone/ └── main.cpp The contents of my headers is…
TemplateRex
  • 69,038
  • 19
  • 164
  • 304
6
votes
1 answer

Should I really specify header files as target_sources()?

In his Meeting C++ 2019 talk (and also in 2018), presenter Deniz Bahadir recommends that we specify targets' C++ header files using target_sources(), with some of them being PUBLIC or INTERFACE. But - when I try to do that (using relative paths,…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
6
votes
2 answers

Visual Studio 2017 Hangs when changing build configuration

I can change the build configuration from debug to release (or other debug configurations that I created), but when I change back to debug, Visual Studio freezes. Memory usage keeps climbing and climbing, until Visual Studio restarts by itself after…
Jimmy
  • 5,131
  • 9
  • 55
  • 81
6
votes
3 answers

Create separate apk for separate flavor in android

I have used build.gradle(app) to create different flavors of apk. But installing different flavors of same apk overrides the previous one. I want to create different apks to run on same device simultaneously. I want to create different apk with…
SimpleCoder
  • 1,665
  • 1
  • 21
  • 34
6
votes
0 answers

Build configuration: Any CPU vs Mixed Platform

What is the difference among the following build configurations: Any CPU Mixed Platform Note that this is a different question respect to Build Configuration: Mixed Platform VS Any CPU : there, according to the accepted answer, a suggestion is…
Starnuto di topo
  • 3,215
  • 5
  • 32
  • 66
6
votes
1 answer

Will the dcc32.exe compiler use project build configuration file when is called with --no-config parameter?

Problem description: Consider the following command line call (called for Delphi 2009 compiler): dcc32.exe --no-config --peflags:1 Project.dpr Will this call use the Project.dproj or Project.dof configuration files ? If yes, will the command line…
TLama
  • 75,147
  • 17
  • 214
  • 392
5
votes
1 answer

How to properly specify idiosyncratic ICC compiler options in CMake?

The Intel C/C++ has a bunch of custom flags, some of which mix compilation and linking, (such as -qopenmp), and others are just idiosyncratic alternative forms (such as -ipp for linking with Intel's ipp libraries). I can add such flags "manually" to…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1
2
3
12 13