Austin Schuh | 0cbef62 | 2015-09-06 17:34:52 -0700 | [diff] [blame] | 1 | // |
| 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 Schuh | 889ac43 | 2018-10-29 22:57:02 -0700 | [diff] [blame^] | 8 | // https://github.com/google/google-toolbox-for-mac |
Austin Schuh | 0cbef62 | 2015-09-06 17:34:52 -0700 | [diff] [blame] | 9 | // |
| 10 | |
| 11 | #include "General.xcconfig" |
| 12 | |
| 13 | // subconfig/Release.xcconfig |
| 14 | |
| 15 | // Optimize for space and size (Apple recommendation) |
| 16 | GCC_OPTIMIZATION_LEVEL = s |
| 17 | |
| 18 | // Deploment postprocessing is what triggers Xcode to strip |
| 19 | DEPLOYMENT_POSTPROCESSING = YES |
| 20 | |
| 21 | // No symbols |
| 22 | GCC_GENERATE_DEBUGGING_SYMBOLS = NO |
| 23 | |
| 24 | // Dead code strip does not affect ObjC code but can help for C |
| 25 | DEAD_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. |
| 29 | OTHER_CFLAGS = $(OTHER_CFLAGS) -DNDEBUG=1 -Wno-unused-variable |
| 30 | |
| 31 | // When we strip we want to strip all symbols in release, but save externals. |
| 32 | STRIP_STYLE = all |