[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[jx8-ios] Enabling CTypes in mozjs

jx8-ios use Mozilla's SM javascript VM.
The default build do NOT include Types.
We want to enable Ctypes to explore the feature in jx8-ios.

Adding the define for BUILD_CTYPES

  1. Edit jx.gyp in the section for 'node_engine_mozilla==1'
  2. In the line
    'JS_ENGINE_MOZJS=1', 'EXPORT_JS_API', 'MOZJS_IS_3_40=1'
    add at end of line
    , 'BUILD_CTYPES=1'
  3. build as usual
    ./build_scripts/ios_compile.sh

Results

The jxcore engine has built, but there is no reference to CType bindings.