Changeset 100850 in webkit


Ignore:
Timestamp:
Nov 19, 2011 12:09:22 AM (12 years ago)
Author:
abarth@webkit.org
Message:

WTF should have an Xcode project
https://bugs.webkit.org/show_bug.cgi?id=71752

Patch by Mark Rowe <mrowe@apple.com> on 2011-11-19
Reviewed by Adam Barth.

This adds an Xcode project that includes only Stub.cpp and Stub.h.
They’re built in to a library at the appropriate path for each
configuration (WebKitBuild/{Debug,Release}/libWTF.a and
/usr/local/lib/libWTF.a) and headers are installed in to the
appropriate location (WebKitBuild/{Debug,Release}/usr/local/include/wtf
and /usr/local/include/wtf). I tested building WTF in this project and
everything appears to build except for DateMath.cpp (due to bug 71747).
I have not yet done any work on making JavaScriptCore and other
projects use the built products of this new project.

  • Configurations: Added.
  • Configurations/Base.xcconfig: Copied from Source/JavaScriptCore/Configurations/Base.xcconfig.
  • Configurations/CompilerVersion.xcconfig: Copied from Source/JavaScriptCore/Configurations/CompilerVersion.xcconfig.
  • Configurations/DebugRelease.xcconfig: Copied from Source/JavaScriptCore/Configurations/DebugRelease.xcconfig.
  • Configurations/WTF.xcconfig: Copied from Source/WebKit2/Configurations/Shim.xcconfig.
  • WTF.xcodeproj: Added.
  • WTF.xcodeproj/project.pbxproj: Added.
  • config.h: Copied from Source/JavaScriptCore/config.h.
  • icu: Added.
  • icu/LICENSE: Copied from Source/JavaScriptCore/icu/LICENSE.
  • icu/README: Copied from Source/JavaScriptCore/icu/README.
  • icu/unicode: Added.
  • icu/unicode/parseerr.h: Copied from Source/JavaScriptCore/icu/unicode/parseerr.h.
  • icu/unicode/platform.h: Copied from Source/JavaScriptCore/icu/unicode/platform.h.
  • icu/unicode/putil.h: Copied from Source/JavaScriptCore/icu/unicode/putil.h.
  • icu/unicode/uchar.h: Copied from Source/JavaScriptCore/icu/unicode/uchar.h.
  • icu/unicode/ucnv.h: Copied from Source/JavaScriptCore/icu/unicode/ucnv.h.
  • icu/unicode/ucnv_err.h: Copied from Source/JavaScriptCore/icu/unicode/ucnv_err.h.
  • icu/unicode/ucol.h: Copied from Source/JavaScriptCore/icu/unicode/ucol.h.
  • icu/unicode/uconfig.h: Copied from Source/JavaScriptCore/icu/unicode/uconfig.h.
  • icu/unicode/uenum.h: Copied from Source/JavaScriptCore/icu/unicode/uenum.h.
  • icu/unicode/uiter.h: Copied from Source/JavaScriptCore/icu/unicode/uiter.h.
  • icu/unicode/uloc.h: Copied from Source/JavaScriptCore/icu/unicode/uloc.h.
  • icu/unicode/umachine.h: Copied from Source/JavaScriptCore/icu/unicode/umachine.h.
  • icu/unicode/unorm.h: Copied from Source/JavaScriptCore/icu/unicode/unorm.h.
  • icu/unicode/urename.h: Copied from Source/JavaScriptCore/icu/unicode/urename.h.
  • icu/unicode/uscript.h: Copied from Source/JavaScriptCore/icu/unicode/uscript.h.
  • icu/unicode/uset.h: Copied from Source/JavaScriptCore/icu/unicode/uset.h.
  • icu/unicode/ustring.h: Copied from Source/JavaScriptCore/icu/unicode/ustring.h.
  • icu/unicode/utf.h: Copied from Source/JavaScriptCore/icu/unicode/utf.h.
  • icu/unicode/utf16.h: Copied from Source/JavaScriptCore/icu/unicode/utf16.h.
  • icu/unicode/utf8.h: Copied from Source/JavaScriptCore/icu/unicode/utf8.h.
  • icu/unicode/utf_old.h: Copied from Source/JavaScriptCore/icu/unicode/utf_old.h.
  • icu/unicode/utypes.h: Copied from Source/JavaScriptCore/icu/unicode/utypes.h.
  • icu/unicode/uversion.h: Copied from Source/JavaScriptCore/icu/unicode/uversion.h.
Location:
trunk/Source/WTF
Files:
5 added
1 edited
30 copied

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r99251 r100850  
     12011-11-19  Mark Rowe  <mrowe@apple.com>
     2
     3        WTF should have an Xcode project
     4        https://bugs.webkit.org/show_bug.cgi?id=71752
     5
     6        Reviewed by Adam Barth.
     7
     8        This adds an Xcode project that includes only Stub.cpp and Stub.h.
     9        They’re built in to a library at the appropriate path for each
     10        configuration (WebKitBuild/{Debug,Release}/libWTF.a and
     11        /usr/local/lib/libWTF.a) and headers are installed in to the
     12        appropriate location (WebKitBuild/{Debug,Release}/usr/local/include/wtf
     13        and /usr/local/include/wtf). I tested building WTF in this project and
     14        everything appears to build except for DateMath.cpp (due to bug 71747).
     15        I have not yet done any work on making JavaScriptCore and other
     16        projects use the built products of this new project.
     17
     18        * Configurations: Added.
     19        * Configurations/Base.xcconfig: Copied from Source/JavaScriptCore/Configurations/Base.xcconfig.
     20        * Configurations/CompilerVersion.xcconfig: Copied from Source/JavaScriptCore/Configurations/CompilerVersion.xcconfig.
     21        * Configurations/DebugRelease.xcconfig: Copied from Source/JavaScriptCore/Configurations/DebugRelease.xcconfig.
     22        * Configurations/WTF.xcconfig: Copied from Source/WebKit2/Configurations/Shim.xcconfig.
     23        * WTF.xcodeproj: Added.
     24        * WTF.xcodeproj/project.pbxproj: Added.
     25        * config.h: Copied from Source/JavaScriptCore/config.h.
     26        * icu: Added.
     27        * icu/LICENSE: Copied from Source/JavaScriptCore/icu/LICENSE.
     28        * icu/README: Copied from Source/JavaScriptCore/icu/README.
     29        * icu/unicode: Added.
     30        * icu/unicode/parseerr.h: Copied from Source/JavaScriptCore/icu/unicode/parseerr.h.
     31        * icu/unicode/platform.h: Copied from Source/JavaScriptCore/icu/unicode/platform.h.
     32        * icu/unicode/putil.h: Copied from Source/JavaScriptCore/icu/unicode/putil.h.
     33        * icu/unicode/uchar.h: Copied from Source/JavaScriptCore/icu/unicode/uchar.h.
     34        * icu/unicode/ucnv.h: Copied from Source/JavaScriptCore/icu/unicode/ucnv.h.
     35        * icu/unicode/ucnv_err.h: Copied from Source/JavaScriptCore/icu/unicode/ucnv_err.h.
     36        * icu/unicode/ucol.h: Copied from Source/JavaScriptCore/icu/unicode/ucol.h.
     37        * icu/unicode/uconfig.h: Copied from Source/JavaScriptCore/icu/unicode/uconfig.h.
     38        * icu/unicode/uenum.h: Copied from Source/JavaScriptCore/icu/unicode/uenum.h.
     39        * icu/unicode/uiter.h: Copied from Source/JavaScriptCore/icu/unicode/uiter.h.
     40        * icu/unicode/uloc.h: Copied from Source/JavaScriptCore/icu/unicode/uloc.h.
     41        * icu/unicode/umachine.h: Copied from Source/JavaScriptCore/icu/unicode/umachine.h.
     42        * icu/unicode/unorm.h: Copied from Source/JavaScriptCore/icu/unicode/unorm.h.
     43        * icu/unicode/urename.h: Copied from Source/JavaScriptCore/icu/unicode/urename.h.
     44        * icu/unicode/uscript.h: Copied from Source/JavaScriptCore/icu/unicode/uscript.h.
     45        * icu/unicode/uset.h: Copied from Source/JavaScriptCore/icu/unicode/uset.h.
     46        * icu/unicode/ustring.h: Copied from Source/JavaScriptCore/icu/unicode/ustring.h.
     47        * icu/unicode/utf.h: Copied from Source/JavaScriptCore/icu/unicode/utf.h.
     48        * icu/unicode/utf16.h: Copied from Source/JavaScriptCore/icu/unicode/utf16.h.
     49        * icu/unicode/utf8.h: Copied from Source/JavaScriptCore/icu/unicode/utf8.h.
     50        * icu/unicode/utf_old.h: Copied from Source/JavaScriptCore/icu/unicode/utf_old.h.
     51        * icu/unicode/utypes.h: Copied from Source/JavaScriptCore/icu/unicode/utypes.h.
     52        * icu/unicode/uversion.h: Copied from Source/JavaScriptCore/icu/unicode/uversion.h.
     53
    1542011-11-03  Adam Barth  <abarth@webkit.org>
    255
  • trunk/Source/WTF/Configurations/Base.xcconfig

    r100849 r100850  
    4747GCC_OBJC_CALL_CXX_CDTORS = YES;
    4848GCC_PRECOMPILE_PREFIX_HEADER = YES;
    49 GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) HAVE_DTRACE=$(HAVE_DTRACE) WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST HAVE_HEADER_DETECTION_H $(GCC_PREPROCESSOR_DEFINITIONS);
     49GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) WEBKIT_VERSION_MIN_REQUIRED=WEBKIT_VERSION_LATEST HAVE_HEADER_DETECTION_H $(GCC_PREPROCESSOR_DEFINITIONS);
    5050GCC_STRICT_ALIASING = YES;
    5151GCC_THREADSAFE_STATICS = NO;
     
    7272WARNING_CFLAGS_macosx_ppc64 = $(WARNING_CFLAGS_BASE);
    7373WARNING_CFLAGS_macosx_x86_64 = $(WARNING_CFLAGS_BASE);
    74 HEADER_SEARCH_PATHS = . icu $(HEADER_SEARCH_PATHS);
     74HEADER_SEARCH_PATHS = $(BUILT_PRODUCTS_DIR)/usr/local/include $(DSTROOT)/usr/local/include icu $(HEADER_SEARCH_PATHS);
    7575
    7676
     
    108108DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT));
    109109
    110 SECTORDER_FLAGS = -Wl,-order_file,JavaScriptCore.order;
    111 
    112110// If the target Mac OS X version does not match the current Mac OS X version then we'll want to build using the target version's SDK.
    113111SDKROOT = $(SDKROOT_$(MAC_OS_X_VERSION_MAJOR)_$(TARGET_MAC_OS_X_VERSION_MAJOR));
     
    123121SDKROOT_1090_1080 = macosx10.8;
    124122
    125 
    126 // HAVE_DTRACE is disabled on Leopard due to <rdar://problem/5628149>
    127 HAVE_DTRACE = $(HAVE_DTRACE_$(REAL_PLATFORM_NAME));
    128 HAVE_DTRACE_iphoneos = 1;
    129 HAVE_DTRACE_iphonesimulator = 1;
    130 HAVE_DTRACE_macosx = $(HAVE_DTRACE_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
    131 HAVE_DTRACE_macosx_1050 = 0;
    132 HAVE_DTRACE_macosx_1060 = 1;
    133 HAVE_DTRACE_macosx_1070 = 1;
    134 HAVE_DTRACE_macosx_1080 = 1;
    135 HAVE_DTRACE_macosx_1090 = 1;
  • trunk/Source/WTF/Configurations/CompilerVersion.xcconfig

    r100849 r100850  
    5959TARGET_GCC_VERSION_macosx = $(TARGET_GCC_VERSION_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
    6060
    61 TARGET_GCC_VERSION_macosx_1050 = $(TARGET_GCC_VERSION_macosx_1050_$(XCODE_VERSION_MINOR));
    62 TARGET_GCC_VERSION_macosx_1050_ = $(TARGET_GCC_VERSION_macosx_1050_$(XCODE_VERSION_ACTUAL));
    63 TARGET_GCC_VERSION_macosx_1050_0310 = GCC_42;
    64 TARGET_GCC_VERSION_macosx_1050_0320 = GCC_42;
    65 
    6661TARGET_GCC_VERSION_macosx_1060 = $(TARGET_GCC_VERSION_macosx_1060_AND_1070_$(CONFIGURATION));
    6762TARGET_GCC_VERSION_macosx_1070 = $(TARGET_GCC_VERSION_macosx_1060_AND_1070_$(CONFIGURATION));
  • trunk/Source/WTF/Configurations/DebugRelease.xcconfig

    r100849 r100850  
    2828ARCHS_iphonesimulator = $(NATIVE_ARCH);
    2929ARCHS_macosx = $(ARCHS_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
    30 ARCHS_macosx_1050 = $(NATIVE_ARCH);
    3130ARCHS_macosx_1060 = $(ARCHS_STANDARD_32_64_BIT);
    3231ARCHS_macosx_1070 = $(ARCHS_STANDARD_32_64_BIT);
     
    4039MACOSX_DEPLOYMENT_TARGET_iphonesimulator = 10.5;
    4140MACOSX_DEPLOYMENT_TARGET_macosx = $(MACOSX_DEPLOYMENT_TARGET_macosx_$(TARGET_MAC_OS_X_VERSION_MAJOR));
    42 MACOSX_DEPLOYMENT_TARGET_macosx_1050 = 10.5;
    4341MACOSX_DEPLOYMENT_TARGET_macosx_1060 = 10.6;
    4442MACOSX_DEPLOYMENT_TARGET_macosx_1070 = 10.7;
     
    4745
    4846GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES;
    49 
    50 SECTORDER_FLAGS = ;
  • trunk/Source/WTF/Configurations/WTF.xcconfig

    r100849 r100850  
    1 // Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
     1// Copyright (C) 2011 Apple Inc. All rights reserved.
    22//
    33// Redistribution and use in source and binary forms, with or without
     
    2222// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    2323
    24 #include "BaseTarget.xcconfig"
     24EXECUTABLE_PREFIX = lib;
     25PRODUCT_NAME = WTF;
    2526
    26 GCC_DYNAMIC_NO_PIC = NO;
    27 SKIP_INSTALL = YES;
    28 
     27PRIVATE_HEADERS_FOLDER_PATH = /usr/local/include/wtf;
     28INSTALLHDRS_SCRIPT_PHASE = YES;
  • trunk/Source/WTF/config.h

    r100849 r100850  
    3737#if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF)
    3838#define WTF_EXPORT_PRIVATE WTF_EXPORT
    39 #define JS_EXPORT_PRIVATE WTF_EXPORT
    4039#else
    4140#define WTF_EXPORT_PRIVATE WTF_IMPORT
    42 #define JS_EXPORT_PRIVATE WTF_IMPORT
    4341#endif
    4442
    45 #define JS_EXPORTDATA JS_EXPORT_PRIVATE
    46 #define JS_EXPORTCLASS JS_EXPORT_PRIVATE
    47 
    4843#else /* !USE(EXPORT_MACROS) */
    49 
    50 #if !PLATFORM(CHROMIUM) && OS(WINDOWS) && !defined(BUILDING_WX__) && !COMPILER(GCC)
    51 #if defined(BUILDING_JavaScriptCore) || defined(BUILDING_WTF)
    52 #define JS_EXPORTDATA __declspec(dllexport)
    53 #else
    54 #define JS_EXPORTDATA __declspec(dllimport)
    55 #endif
    56 #define JS_EXPORTCLASS JS_EXPORTDATA
    57 #else
    58 #define JS_EXPORTDATA
    59 #define JS_EXPORTCLASS
    60 #endif
    6144
    6245#define WTF_EXPORT_PRIVATE
Note: See TracChangeset for help on using the changeset viewer.