Templatize CodePtr/Refs/FunctionPtrs with PtrTags.
[WebKit-https.git] / Source / JavaScriptCore / GLib.cmake
1 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib)
2 file(MAKE_DIRECTORY ${DERIVED_SOURCES_JAVASCRIPCORE_GLIB_API_DIR})
3
4 list(APPEND JavaScriptCore_SOURCES
5     API/glib/JSAPIWrapperObjectGLib.cpp
6     API/glib/JSCCallbackFunction.cpp
7     API/glib/JSCClass.cpp
8     API/glib/JSCContext.cpp
9     API/glib/JSCException.cpp
10     API/glib/JSCValue.cpp
11     API/glib/JSCVersion.cpp
12     API/glib/JSCVirtualMachine.cpp
13     API/glib/JSCWeakValue.cpp
14     API/glib/JSCWrapperMap.cpp
15 )
16
17 list(APPEND JavaScriptCore_PRIVATE_INCLUDE_DIRECTORIES
18     "${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib"
19     "${DERIVED_SOURCES_JAVASCRIPCORE_GLIB_API_DIR}"
20     "${JAVASCRIPTCORE_DIR}/API/glib"
21 )
22
23 set(JavaScriptCore_INSTALLED_HEADERS
24     ${DERIVED_SOURCES_JAVASCRIPCORE_GLIB_API_DIR}/JSCVersion.h
25     ${JAVASCRIPTCORE_DIR}/API/glib/JSCAutocleanups.h
26     ${JAVASCRIPTCORE_DIR}/API/glib/JSCClass.h
27     ${JAVASCRIPTCORE_DIR}/API/glib/JSCContext.h
28     ${JAVASCRIPTCORE_DIR}/API/glib/JSCDefines.h
29     ${JAVASCRIPTCORE_DIR}/API/glib/JSCException.h
30     ${JAVASCRIPTCORE_DIR}/API/glib/JSCValue.h
31     ${JAVASCRIPTCORE_DIR}/API/glib/JSCVirtualMachine.h
32     ${JAVASCRIPTCORE_DIR}/API/glib/JSCWeakValue.h
33     ${JAVASCRIPTCORE_DIR}/API/glib/jsc.h
34 )
35
36 configure_file(API/glib/JSCVersion.h.in ${DERIVED_SOURCES_JAVASCRIPCORE_GLIB_API_DIR}/JSCVersion.h)
37
38 # These symbolic link allows includes like #include <jsc/jsc.h> which simulates installed headers.
39 add_custom_command(
40     OUTPUT ${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib/jsc
41     DEPENDS ${JAVASCRIPTCORE_DIR}/API/glib
42     COMMAND ln -n -s -f ${JAVASCRIPTCORE_DIR}/API/glib ${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib/jsc
43     VERBATIM
44 )
45 add_custom_target(JSC-fake-api-headers
46     DEPENDS ${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib/jsc
47 )
48 set(JavaScriptCore_EXTRA_DEPENDENCIES
49     JSC-fake-api-headers
50 )