From 15b1812c75134154f9d107515e7598c9d2a5676e Mon Sep 17 00:00:00 2001 From: jverkoey Date: Thu, 10 Mar 2011 17:57:16 -0500 Subject: [PATCH] [config] Add Xcode 4 header search paths that take into account the new Build Location value. Before this change, Three20 compilation would fail whenever private headers were imported because the headers were being copied to a new location. --- src/common/Configurations/Paths.xcconfig | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/common/Configurations/Paths.xcconfig b/src/common/Configurations/Paths.xcconfig index c57252fc57..2523f012a5 100644 --- a/src/common/Configurations/Paths.xcconfig +++ b/src/common/Configurations/Paths.xcconfig @@ -23,5 +23,19 @@ SYMROOT = $(OBJROOT)/Products // Search Paths LIBRARY_SEARCH_PATHS = $(STDLIB_LIBRARY) -HEADER_SEARCH_PATHS = $(STDLIB_HEADERS) "$(CONFIGURATION_BUILD_DIR)/../three20" +// Header search paths: why we have three +// +// CONFIGURATION_BUILD_DIR is for when the headers are copied to Three20's Build folder. +// Applies to: +// - Xcode 3.2.# +// - Xcode 4 with the Build Location preference set to "Place build products in locations +// specified by targets" +// +// BUILT_PRODUCTS_DIR is for Xcode 4 support only. We need two copies of a BUILT_PRODUCTS_DIR path +// because on Archive builds, there is one extra folder placed between the +// product and the public header path. +// Applies to: +// - Xcode 4 only + +HEADER_SEARCH_PATHS = $(STDLIB_HEADERS) "$(BUILT_PRODUCTS_DIR)/../three20" "$(BUILT_PRODUCTS_DIR)/../../three20" "$(CONFIGURATION_BUILD_DIR)/../../three20"