Changeset 29234 in webkit


Ignore:
Timestamp:
Jan 7, 2008 11:30:40 AM (16 years ago)
Author:
alp@webkit.org
Message:

2008-01-07 Alp Toker <alp@atoker.com>

Reviewed by Darin.

http://bugs.webkit.org/show_bug.cgi?id=16029
JavaScriptCore.h is not suitable for platforms other than Mac OS X

Introduce a new JavaScriptCore/JavaScript.h public API header. This
should be used by all new portable code using the JavaScriptCore API.

JavaScriptCore/JavaScriptCore.h will remain for compatibility with
existing applications that depend on it including JSStringRefCF.h
which isn't portable.

Also add minidom to the GTK+/autotools build since we can now support
it on all platforms.

  • API/JSNode.h:
  • API/JSNodeList.h:
  • API/JavaScript.h: Added.
  • API/JavaScriptCore.h:
  • ForwardingHeaders/JavaScriptCore/JavaScript.h: Added.
  • GNUmakefile.am:
  • JavaScriptCore.xcodeproj/project.pbxproj:
Location:
trunk/JavaScriptCore
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSNode.h

    r15497 r29234  
    2828#define JSNode_h
    2929
    30 #include "JavaScriptCore.h"
     30#include <JavaScriptCore/JavaScript.h>
    3131#include "Node.h"
    3232
  • trunk/JavaScriptCore/API/JSNodeList.h

    r15133 r29234  
    2828#define JSNodeList_h
    2929
    30 #include "JavaScriptCore.h"
     30#include <JavaScriptCore/JavaScript.h>
    3131#include "NodeList.h"
    3232
  • trunk/JavaScriptCore/API/JavaScriptCore.h

    r21342 r29234  
    2828#define JavaScriptCore_h
    2929
    30 #include <JavaScriptCore/JSBase.h>
    31 #include <JavaScriptCore/JSContextRef.h>
    32 #include <JavaScriptCore/JSStringRef.h>
     30#include <JavaScriptCore/JavaScript.h>
    3331#include <JavaScriptCore/JSStringRefCF.h>
    34 #include <JavaScriptCore/JSObjectRef.h>
    35 #include <JavaScriptCore/JSValueRef.h>
    3632
    3733#endif // JavaScriptCore_h
  • trunk/JavaScriptCore/ChangeLog

    r29217 r29234  
     12008-01-07  Alp Toker  <alp@atoker.com>
     2
     3        Reviewed by Darin.
     4
     5        http://bugs.webkit.org/show_bug.cgi?id=16029
     6        JavaScriptCore.h is not suitable for platforms other than Mac OS X
     7
     8        Introduce a new JavaScriptCore/JavaScript.h public API header. This
     9        should be used by all new portable code using the JavaScriptCore API.
     10
     11        JavaScriptCore/JavaScriptCore.h will remain for compatibility with
     12        existing applications that depend on it including JSStringRefCF.h
     13        which isn't portable.
     14
     15        Also add minidom to the GTK+/autotools build since we can now support
     16        it on all platforms.
     17
     18        * API/JSNode.h:
     19        * API/JSNodeList.h:
     20        * API/JavaScript.h: Added.
     21        * API/JavaScriptCore.h:
     22        * ForwardingHeaders/JavaScriptCore/JavaScript.h: Added.
     23        * GNUmakefile.am:
     24        * JavaScriptCore.xcodeproj/project.pbxproj:
     25
    1262008-01-06  Eric Seidel  <eric@webkit.org>
    227
  • trunk/JavaScriptCore/GNUmakefile.am

    r29209 r29234  
    44
    55javascriptcore_cppflags += \
     6        -I $(srcdir)/JavaScriptCore/ForwardingHeaders \
    67        -I $(srcdir)/JavaScriptCore/bindings \
    78        -I $(srcdir)/JavaScriptCore/bindings/c \
     
    1011
    1112javascriptcore_h_api += \
     13        JavaScriptCore/API/JavaScript.h \
    1214        JavaScriptCore/API/JavaScriptCore.h \
    1315        JavaScriptCore/API/JSBase.h \
     
    138140
    139141noinst_PROGRAMS += \
    140         Programs/testkjs \
    141         Programs/dftables
     142        Programs/dftables \
     143        Programs/minidom \
     144        Programs/testkjs
    142145
    143146# dftables
    144147Programs_dftables_SOURCES = JavaScriptCore/pcre/dftables.cpp
     148
     149# minidom
     150Programs_minidom_SOURCES = \
     151        JavaScriptCore/API/JSNode.c \
     152        JavaScriptCore/API/JSNodeList.c \
     153        JavaScriptCore/API/Node.c \
     154        JavaScriptCore/API/NodeList.c \
     155        JavaScriptCore/API/minidom.c
     156Programs_minidom_CPPFLAGS = $(global_cppflags)
     157Programs_minidom_CXXFLAGS = $(ICU_CFLAGS)
     158Programs_minidom_LDADD = $(ICU_LIBS) libJavaScriptCore.la
     159Programs_minidom_LDFLAGS = -rpath $(CURDIR)/.libs
    145160
    146161# testkjs
  • trunk/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r28911 r29234  
    8181                14BD5A310A3E91F600BAF59C /* JSContextRef.h in Headers */ = {isa = PBXBuildFile; fileRef = 14BD5A2A0A3E91F600BAF59C /* JSContextRef.h */; settings = {ATTRIBUTES = (Public, ); }; };
    8282                14BD5A320A3E91F600BAF59C /* JSValueRef.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14BD5A2B0A3E91F600BAF59C /* JSValueRef.cpp */; };
     83                14BD5A360A3E91F600BAF59C /* JavaScript.h in Headers */ = {isa = PBXBuildFile; fileRef = 14BD5A2F0A3E91F600BAF59C /* JavaScript.h */; settings = {ATTRIBUTES = (Public, ); }; };
    8384                14BD5A360A3E91F600BAF59C /* JavaScriptCore.h in Headers */ = {isa = PBXBuildFile; fileRef = 14BD5A2F0A3E91F600BAF59C /* JavaScriptCore.h */; settings = {ATTRIBUTES = (Public, ); }; };
    8485                14DE0D690D02431400AACCA2 /* JSGlobalObject.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 14DE0D680D02431400AACCA2 /* JSGlobalObject.cpp */; };
     
    442443                14BD5A2B0A3E91F600BAF59C /* JSValueRef.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = JSValueRef.cpp; sourceTree = "<group>"; };
    443444                14BD5A2D0A3E91F600BAF59C /* testapi.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = testapi.c; sourceTree = "<group>"; };
     445                14BD5A2F0A3E91F600BAF59C /* JavaScript.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JavaScript.h; sourceTree = "<group>"; };
    444446                14BD5A2F0A3E91F600BAF59C /* JavaScriptCore.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = JavaScriptCore.h; sourceTree = "<group>"; };
    445447                14D857740A4696C80032146C /* testapi.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = testapi.js; sourceTree = "<group>"; };
     
    776778                        children = (
    777779                                1482B78A0A4305AB00517CFC /* APICast.h */,
     780                                14BD5A2F0A3E91F600BAF59C /* JavaScript.h */,
    778781                                14BD5A2F0A3E91F600BAF59C /* JavaScriptCore.h */,
    779782                                1421359A0A677F4F00A8195E /* JSBase.cpp */,
     
    11801183                                14F252570D08DD8D004ECFFF /* JSVariableObject.h in Headers */,
    11811184                                65C7A1740A8EAACB00FA37EA /* JSWrapperObject.h in Headers */,
     1185                                14BD5A360A3E91F600BAF59C /* JavaScript.h in Headers */,
    11821186                                14BD5A360A3E91F600BAF59C /* JavaScriptCore.h in Headers */,
    11831187                                932F5B610822A1C700736975 /* JavaScriptCorePrefix.h in Headers */,
Note: See TracChangeset for help on using the changeset viewer.