Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change header export settings in FMDB and FMDB-IOS targets #257

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aegolden
Copy link

@aegolden aegolden commented May 2, 2014

These changes cause the FMDB-IOS library target to export headers so projects that depend on FMDB-IOS can find those headers in a natural place under $(BUILT_PRODUCTS_DIR)/usr/local/include.

The second commit updates the header export paths of both FMDB and FMDB-IOS so that headers can be imported like:

#import <FMDB/FMDatabase.h>

instead of

#import <FMDatabase.h>

Adds a copy headers build phase to the FMDB-IOS target, which
includes the same Public headers as the FMDB target.  Also makes
FMDatabasePool.h a Private (rather than a Project) header in both
FMDB and FMDB-IOS, so if an application imports FMDatabase.h, then
FMDatabase will be able to find FMDatabasePool.h.

This makes it easier to incorporate FMDB-IOS into an iOS
application project.  FMDB can be included in the app's project
as a subproject, and the app target can depend on and link against
FMDB-IOS, and find the FMDB headers in a natural place:
$(BUILT_PRODUCTS_DIR)/usr/local/include.
Adds the FMDB directory to the header folder paths so FMDB headers
can be imported like headers from a "normal" library:

import <FMDB/FMDatabase.h>

instead of

import <FMDatabase.h>
@cutz
Copy link
Contributor

cutz commented Oct 31, 2015

@ccgus would you be interested in accepting a pull request like this if it were rebased on master?

@ccgus
Copy link
Owner

ccgus commented Nov 2, 2015

@cutz, sure.

Sorry @aegolden, I completely dropped the ball on this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants