@qalqi/headless-hermes-linux-x64 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BUILD-INFO.json +12 -0
- package/BUILD-INFO.txt +3 -0
- package/bin/hermes-jsi-run +0 -0
- package/bin/napi-host +0 -0
- package/lib/cmake/headless_hermes/headless_hermesConfig.cmake +52 -0
- package/lib/cmake/headless_hermes/headless_hermesConfigVersion.cmake +9 -0
- package/lib/pkgconfig/headless-hermes.pc +9 -0
- package/package.json +3 -2
package/BUILD-INFO.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.3.0",
|
|
3
|
+
"platform": "linux-x64",
|
|
4
|
+
"hermes": {
|
|
5
|
+
"commit": "64d47e22398073ca6a5ae65249ddcc65e85df3fd",
|
|
6
|
+
"branch": "static_h",
|
|
7
|
+
"url": "https://github.com/facebook/hermes/commit/64d47e22398073ca6a5ae65249ddcc65e85df3fd",
|
|
8
|
+
"bytecodeVersion": 100
|
|
9
|
+
},
|
|
10
|
+
"nodeApi": { "version": 10, "host": "napi-host" },
|
|
11
|
+
"buildType": "Release"
|
|
12
|
+
}
|
package/BUILD-INFO.txt
CHANGED
|
@@ -3,3 +3,6 @@ Platform: linux-x64
|
|
|
3
3
|
Build type: Release
|
|
4
4
|
Built by: headless-hermes-jsi-node-api scripts/build-hermes.sh and scripts/package.sh
|
|
5
5
|
Hermes is licensed under MIT (LICENSE-hermes); the packaging scripts under Apache-2.0 (LICENSE).
|
|
6
|
+
HBC bytecode: 100
|
|
7
|
+
Node-API: 10 (napi-host)
|
|
8
|
+
Version: 0.3.0
|
package/bin/hermes-jsi-run
CHANGED
|
Binary file
|
package/bin/napi-host
CHANGED
|
Binary file
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# find_package(headless_hermes CONFIG REQUIRED PATHS <this prebuilt>)
|
|
2
|
+
# headless_hermes::hermesvm the JSI runtime (libhermesvm, shared): JSI hosts and libraries, hermes.h, jsi/
|
|
3
|
+
# headless_hermes::napi a Node-API host on the VM (static libraries, whole-archive), as napi-host is built;
|
|
4
|
+
# GitHub Release archives only (the npm packages don't carry the static libraries)
|
|
5
|
+
# headless_hermes::addon a Node-API addon: node_api.h; its napi_* symbols resolve from the host at load time
|
|
6
|
+
get_filename_component(_hh_root "${CMAKE_CURRENT_LIST_DIR}/../../.." ABSOLUTE)
|
|
7
|
+
set(headless_hermes_INCLUDE_DIR "${_hh_root}/include")
|
|
8
|
+
set(headless_hermes_LIB_DIR "${_hh_root}/lib")
|
|
9
|
+
|
|
10
|
+
if(NOT TARGET headless_hermes::hermesvm)
|
|
11
|
+
add_library(headless_hermes::hermesvm SHARED IMPORTED)
|
|
12
|
+
if(APPLE)
|
|
13
|
+
set(_hh_vm "${_hh_root}/lib/libhermesvm.dylib")
|
|
14
|
+
else()
|
|
15
|
+
set(_hh_vm "${_hh_root}/lib/libhermesvm.so")
|
|
16
|
+
endif()
|
|
17
|
+
set_target_properties(headless_hermes::hermesvm PROPERTIES
|
|
18
|
+
IMPORTED_LOCATION "${_hh_vm}"
|
|
19
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_hh_root}/include"
|
|
20
|
+
INTERFACE_COMPILE_FEATURES cxx_std_17)
|
|
21
|
+
endif()
|
|
22
|
+
if(NOT TARGET headless_hermes::addon)
|
|
23
|
+
add_library(headless_hermes::addon INTERFACE IMPORTED)
|
|
24
|
+
set_target_properties(headless_hermes::addon PROPERTIES
|
|
25
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_hh_root}/include")
|
|
26
|
+
if(APPLE)
|
|
27
|
+
set_target_properties(headless_hermes::addon PROPERTIES INTERFACE_LINK_OPTIONS "-undefined;dynamic_lookup")
|
|
28
|
+
endif()
|
|
29
|
+
endif()
|
|
30
|
+
# The npm packages carry libhermesvm only; the GitHub Release archives also carry the VM's static libraries.
|
|
31
|
+
if(NOT TARGET headless_hermes::napi AND EXISTS "${_hh_root}/lib/libhermesNapi.a")
|
|
32
|
+
find_package(Threads REQUIRED)
|
|
33
|
+
set(_hh_static
|
|
34
|
+
"${_hh_root}/lib/libhermesvm_a.a" "${_hh_root}/lib/libLLVHSupport.a"
|
|
35
|
+
"${_hh_root}/lib/libLLVHDemangle.a" "${_hh_root}/lib/libboost_context.a")
|
|
36
|
+
add_library(headless_hermes::napi INTERFACE IMPORTED)
|
|
37
|
+
if(APPLE)
|
|
38
|
+
set(_hh_link "-Wl,-force_load,${_hh_root}/lib/libhermesNapi.a" ${_hh_static} "-framework CoreFoundation")
|
|
39
|
+
set(_hh_export "-Wl,-export_dynamic")
|
|
40
|
+
else()
|
|
41
|
+
set(_hh_link "-Wl,--whole-archive" "${_hh_root}/lib/libhermesNapi.a" "-Wl,--no-whole-archive" ${_hh_static} ${CMAKE_DL_LIBS} m)
|
|
42
|
+
set(_hh_export "-rdynamic")
|
|
43
|
+
endif()
|
|
44
|
+
set_target_properties(headless_hermes::napi PROPERTIES
|
|
45
|
+
INTERFACE_INCLUDE_DIRECTORIES "${_hh_root}/include"
|
|
46
|
+
# The VM's headers must see the flags the VM was built with (a Release build: NDEBUG).
|
|
47
|
+
INTERFACE_COMPILE_DEFINITIONS "NDEBUG;NAPI_VERSION=10"
|
|
48
|
+
INTERFACE_COMPILE_FEATURES cxx_std_17
|
|
49
|
+
INTERFACE_LINK_LIBRARIES "${_hh_link};Threads::Threads"
|
|
50
|
+
INTERFACE_LINK_OPTIONS "${_hh_export}")
|
|
51
|
+
endif()
|
|
52
|
+
set(headless_hermes_FOUND TRUE)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
set(PACKAGE_VERSION "0.3.0")
|
|
2
|
+
if(PACKAGE_FIND_VERSION VERSION_GREATER PACKAGE_VERSION)
|
|
3
|
+
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
|
4
|
+
else()
|
|
5
|
+
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
6
|
+
if(PACKAGE_FIND_VERSION VERSION_EQUAL PACKAGE_VERSION)
|
|
7
|
+
set(PACKAGE_VERSION_EXACT TRUE)
|
|
8
|
+
endif()
|
|
9
|
+
endif()
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
prefix=${pcfiledir}/../..
|
|
2
|
+
includedir=${prefix}/include
|
|
3
|
+
libdir=${prefix}/lib
|
|
4
|
+
|
|
5
|
+
Name: headless-hermes
|
|
6
|
+
Description: Hermes JavaScript engine (JSI runtime library and headers), static_h 64d47e22398073ca6a5ae65249ddcc65e85df3fd
|
|
7
|
+
Version: 0.3.0
|
|
8
|
+
Cflags: -I${includedir} -std=c++17
|
|
9
|
+
Libs: -L${libdir} -lhermesvm -Wl,-rpath,${libdir}
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qalqi/headless-hermes-linux-x64",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Prebuilt Hermes (linux-x64) for @qalqi/headless-hermes: libhermesvm, hermes, hermesc, hermes-jsi-run, napi-host, headers. Hermes commit 64d47e22398073ca6a5ae65249ddcc65e85df3fd.",
|
|
5
5
|
"license": "Apache-2.0 AND MIT",
|
|
6
6
|
"repository": { "type": "git", "url": "git+https://github.com/qalqi/headless-hermes-jsi-node-api.git" },
|
|
7
7
|
"os": ["linux"],
|
|
8
8
|
"cpu": ["x64"],
|
|
9
9
|
"hermes": { "commit": "64d47e22398073ca6a5ae65249ddcc65e85df3fd" },
|
|
10
|
-
"
|
|
10
|
+
"preferUnplugged": true,
|
|
11
|
+
"files": ["include/", "lib/", "bin/", "LICENSE", "LICENSE-hermes", "BUILD-INFO.txt", "BUILD-INFO.json"]
|
|
11
12
|
}
|