blob: df9a38f89b9772d657784821b2b163dedad4446c [file] [log] [blame]
Austin Schuh0cbef622015-09-06 17:34:52 -07001//
2// ReleaseProject.xcconfig
3//
4// These are Release Configuration project settings for the gtest framework
5// and examples. It is set in the "Based On:" dropdown in the "Project" info
6// dialog.
7// This file is based on the Xcode Configuration files in:
Austin Schuh889ac432018-10-29 22:57:02 -07008// https://github.com/google/google-toolbox-for-mac
Austin Schuh0cbef622015-09-06 17:34:52 -07009//
10
11#include "General.xcconfig"
12
13// subconfig/Release.xcconfig
14
15// Optimize for space and size (Apple recommendation)
16GCC_OPTIMIZATION_LEVEL = s
17
18// Deploment postprocessing is what triggers Xcode to strip
19DEPLOYMENT_POSTPROCESSING = YES
20
21// No symbols
22GCC_GENERATE_DEBUGGING_SYMBOLS = NO
23
24// Dead code strip does not affect ObjC code but can help for C
25DEAD_CODE_STRIPPING = YES
26
27// NDEBUG is used by things like assert.h, so define it for general compat.
28// ASSERT going away in release tends to create unused vars.
29OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable
30
31// When we strip we want to strip all symbols in release, but save externals.
32STRIP_STYLE = all