From 38f8bb3fdc3d3ecb449f85f75504589acafe08b1 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Tue, 21 May 2013 21:59:42 -0700 Subject: Simplified linking against mailcore. Added quick instructions in README.md --- .../iOS UI Test.xcodeproj/project.pbxproj | 18 ---------------- example/ios/iOS UI Test/iOS UI Test/main.mm | 2 +- .../macExample.xcodeproj/project.pbxproj | 24 ---------------------- example/mac/macExample/macExample/main.mm | 5 +---- 4 files changed, 2 insertions(+), 47 deletions(-) (limited to 'example') 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 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 #include -#include 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(); } -- cgit v1.2.3