Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

Commit

Permalink
[config] Add Xcode 4 header search paths that take into account the n…
Browse files Browse the repository at this point in the history
…ew 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.
  • Loading branch information
jverkoey committed Mar 10, 2011
1 parent 257bd68 commit 15b1812
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/common/Configurations/Paths.xcconfig
Expand Up @@ -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"

0 comments on commit 15b1812

Please sign in to comment.