Skip to content

Commit 1a64310

Browse files
emutavchispenap
authored andcommitted
Expose JSC "C" API
Signed-off-by: Eugene Mutavchi <Ievgen_Mutavchi@comcast.com>
1 parent 567613b commit 1a64310

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

Source/JavaScriptCore/API/glib/JSCContextPrivate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ typedef const struct OpaqueJSValue* JSValueRef;
3333
typedef struct OpaqueJSValue* JSObjectRef;
3434

3535
JS_EXPORT_PRIVATE GRefPtr<JSCContext> jscContextGetOrCreate(JSGlobalContextRef);
36-
JS_EXPORT_PRIVATE JSGlobalContextRef jscContextGetJSContext(JSCContext*);
36+
G_BEGIN_DECLS JSC_API JS_EXPORT_PRIVATE JSGlobalContextRef jscContextGetJSContext(JSCContext*); G_END_DECLS
3737
JS_EXPORT_PRIVATE GRefPtr<JSCValue> jscContextGetOrCreateValue(JSCContext*, JSValueRef);
3838
void jscContextValueDestroyed(JSCContext*, JSValueRef);
3939
JSC::JSObject* jscContextGetJSWrapper(JSCContext*, gpointer);

Source/JavaScriptCore/PlatformWPE.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ list(APPEND JavaScriptCore_PRIVATE_DEFINITIONS
1818
PKGDATADIR="${CMAKE_INSTALL_FULL_DATADIR}/wpe-webkit-${WPE_API_VERSION}"
1919
)
2020

21+
install(FILES ${JavaScriptCore_PUBLIC_FRAMEWORK_HEADERS}
22+
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wpe-webkit-${WPE_API_VERSION}/JavaScriptCore"
23+
)
24+
2125
install(FILES ${JavaScriptCore_INSTALLED_HEADERS}
2226
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/wpe-webkit-${WPE_API_VERSION}/jsc"
2327
COMPONENT "Development"

Source/WebKit/webkitglib-symbols.map

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
global:
33
jsc_*;
44
webkit_*;
5+
JS*;
6+
jscContextGetJSContext;
57
extern "C++" {
68
"WebKit::GPUProcessMain(int, char**)";
79
"WebKit::NetworkProcessMain(int, char**)";

0 commit comments

Comments
 (0)