1.5. Project Build Settings

1.5. Where are my project's build settings?

Project build settings define how your application is compiled and linked.

  • For Unity Projects: Settings are primarily managed within the Unity editor.

  • For Other Projects: All build settings (preprocessor definitions, compiler and linker options, targeted OS version, signing identity, etc.) are located in the project's make.cmd file.

Editing make.cmd

The make.cmd file is a text-editable script.

  • If you use Visual Studio, make.cmd is typically included in the Solution Explorer. Click on it to open and edit its contents.

  • You can open it with any text editor.

Key Variables for Compiler and Linker Options

Following the UNIX C convention, compiler and linker options are set in these variables within make.cmd:

  • DBE_CPPFLAGS: Compiler flags applied to all source file types (C, C++, Objective-C).

  • DBE_CFLAGS: Compiler flags specifically for C and Objective-C source files.

  • DBE_CXXFLAGS: Compiler flags specifically for C++ and Objective-C++ source files.

  • DBE_LDFLAGS: Linker flags.

The contents of these variables are treated as command-line options (flags) when invoking the compiler and linker.

Finding Option Syntax

If you need to find the name or syntax of a particular compiler or linker option, refer to the official documentation:

Tip: Use your browser's "search in page" (Ctrl+F or Cmd+F) and specify a keyword to quickly locate the option you need in the documentation pages.

Last updated