Blame googletest/xcode/Config/ReleaseProject.xcconfig
|
Packit |
bd1cd8 |
//
|
|
Packit |
bd1cd8 |
// ReleaseProject.xcconfig
|
|
Packit |
bd1cd8 |
//
|
|
Packit |
bd1cd8 |
// These are Release Configuration project settings for the gtest framework
|
|
Packit |
bd1cd8 |
// and examples. It is set in the "Based On:" dropdown in the "Project" info
|
|
Packit |
bd1cd8 |
// dialog.
|
|
Packit |
bd1cd8 |
// This file is based on the Xcode Configuration files in:
|
|
Packit |
bd1cd8 |
// http://code.google.com/p/google-toolbox-for-mac/
|
|
Packit |
bd1cd8 |
//
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
#include "General.xcconfig"
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// subconfig/Release.xcconfig
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// Optimize for space and size (Apple recommendation)
|
|
Packit |
bd1cd8 |
GCC_OPTIMIZATION_LEVEL = s
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// Deploment postprocessing is what triggers Xcode to strip
|
|
Packit |
bd1cd8 |
DEPLOYMENT_POSTPROCESSING = YES
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// No symbols
|
|
Packit |
bd1cd8 |
GCC_GENERATE_DEBUGGING_SYMBOLS = NO
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// Dead code strip does not affect ObjC code but can help for C
|
|
Packit |
bd1cd8 |
DEAD_CODE_STRIPPING = YES
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// NDEBUG is used by things like assert.h, so define it for general compat.
|
|
Packit |
bd1cd8 |
// ASSERT going away in release tends to create unused vars.
|
|
Packit |
bd1cd8 |
OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable
|
|
Packit |
bd1cd8 |
|
|
Packit |
bd1cd8 |
// When we strip we want to strip all symbols in release, but save externals.
|
|
Packit |
bd1cd8 |
STRIP_STYLE = all
|