diff options
author | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-05-21 21:59:42 -0700 |
---|---|---|
committer | Hoa V. DINH <dinh.viet.hoa@gmail.com> | 2013-05-21 21:59:50 -0700 |
commit | 38f8bb3fdc3d3ecb449f85f75504589acafe08b1 (patch) | |
tree | 408013b990bf00bb8a9522a41a29b490fc9ee59a /example | |
parent | 8108d5cd3c1176b691a0b1e17e9e4e73cc3f49b1 (diff) |
Simplified linking against mailcore. Added quick instructions in README.md
Diffstat (limited to 'example')
4 files changed, 2 insertions, 47 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test.xcodeproj/project.pbxproj b/example/ios/iOS UI Test/iOS UI Test.xcodeproj/project.pbxproj index 4b8dae30..db280fde 100644 --- a/example/ios/iOS UI Test/iOS UI Test.xcodeproj/project.pbxproj +++ b/example/ios/iOS UI Test/iOS UI Test.xcodeproj/project.pbxproj @@ -432,16 +432,7 @@ CLANG_CXX_LIBRARY = "libstdc++"; GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "iOS UI Test/iOS UI Test-Prefix.pch"; - HEADER_SEARCH_PATHS = ""; INFOPLIST_FILE = "iOS UI Test/iOS UI Test-Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "\"$(SRCROOT)/../../../Externals/libetpan-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/icu4c-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/ctemplate-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/libsasl-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/tidy-html5-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/libsasl-ios/lib/sasl2\"", - ); OTHER_LDFLAGS = ( "-lctemplate-ios", "-letpan-ios", @@ -465,16 +456,7 @@ buildSettings = { GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "iOS UI Test/iOS UI Test-Prefix.pch"; - HEADER_SEARCH_PATHS = ""; INFOPLIST_FILE = "iOS UI Test/iOS UI Test-Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "\"$(SRCROOT)/../../../Externals/libetpan-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/icu4c-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/ctemplate-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/libsasl-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/tidy-html5-ios/lib\"", - "\"$(SRCROOT)/../../../Externals/libsasl-ios/lib/sasl2\"", - ); OTHER_LDFLAGS = ( "-lctemplate-ios", "-letpan-ios", diff --git a/example/ios/iOS UI Test/iOS UI Test/main.mm b/example/ios/iOS UI Test/iOS UI Test/main.mm index c9092479..7793820a 100644 --- a/example/ios/iOS UI Test/iOS UI Test/main.mm +++ b/example/ios/iOS UI Test/iOS UI Test/main.mm @@ -12,6 +12,6 @@ #import <MailCore/MailCore.h> int main(int argc, char *argv[]) { - mailcore::logEnabled = false; + mailcore::logEnabled = true; return UIApplicationMain(argc, argv, nil, @"AppDelegate"); } diff --git a/example/mac/macExample/macExample.xcodeproj/project.pbxproj b/example/mac/macExample/macExample.xcodeproj/project.pbxproj index baab11de..4cfe53f6 100644 --- a/example/mac/macExample/macExample.xcodeproj/project.pbxproj +++ b/example/mac/macExample/macExample.xcodeproj/project.pbxproj @@ -424,19 +424,7 @@ buildSettings = { CLANG_CXX_LIBRARY = "libc++"; COMBINE_HIDPI_IMAGES = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../../../Externals/libetpan/include", - "$(SRCROOT)/../../../Externals/icu4c/include", - "$(SRCROOT)/../../../Externals/ctemplate/include", - /usr/include/tidy, - /usr/include/libxml2, - ); INFOPLIST_FILE = "macExample/macExample-Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(SRCROOT)/../../../Externals/libetpan/lib", - "$(SRCROOT)/../../../Externals/icu4c/lib", - "$(SRCROOT)/../../../Externals/ctemplate/lib", - ); PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; @@ -447,19 +435,7 @@ buildSettings = { CLANG_CXX_LIBRARY = "libc++"; COMBINE_HIDPI_IMAGES = YES; - HEADER_SEARCH_PATHS = ( - "$(SRCROOT)/../../../Externals/libetpan/include", - "$(SRCROOT)/../../../Externals/icu4c/include", - "$(SRCROOT)/../../../Externals/ctemplate/include", - /usr/include/tidy, - /usr/include/libxml2, - ); INFOPLIST_FILE = "macExample/macExample-Info.plist"; - LIBRARY_SEARCH_PATHS = ( - "$(SRCROOT)/../../../Externals/libetpan/lib", - "$(SRCROOT)/../../../Externals/icu4c/lib", - "$(SRCROOT)/../../../Externals/ctemplate/lib", - ); PRODUCT_NAME = "$(TARGET_NAME)"; WRAPPER_EXTENSION = app; }; diff --git a/example/mac/macExample/macExample/main.mm b/example/mac/macExample/macExample/main.mm index cdb19817..1749c010 100644 --- a/example/mac/macExample/macExample/main.mm +++ b/example/mac/macExample/macExample/main.mm @@ -8,12 +8,9 @@ #import <Cocoa/Cocoa.h> #include <MailCore/MailCore.h> -#include <unicode/putil.h> int main(int argc, char *argv[]) { - u_setDataDirectory("/usr/local/share/icu"); - //mailcore::AutoreleasePool * pool = new mailcore::AutoreleasePool(); + //mailcore::setICUDataDirectory(MCSTR("/usr/local/share/icu")); return NSApplicationMain(argc, (const char **)argv); - //pool->release(); } |