https://github.com/baristalabs/chakracorecastxml
Generate Chakra Extern Definitions using CastXml
https://github.com/baristalabs/chakracorecastxml
Last synced: 2 months ago
JSON representation
Generate Chakra Extern Definitions using CastXml
- Host: GitHub
- URL: https://github.com/baristalabs/chakracorecastxml
- Owner: BaristaLabs
- Created: 2018-06-20T13:46:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T17:38:58.000Z (over 6 years ago)
- Last Synced: 2025-01-01T14:29:33.829Z (10 months ago)
- Language: C++
- Size: 32.3 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ChakraCore CastXML
---The associated [BaristaCore](https://github.com/BaristaLabs/BaristaCore/) project uses a auto-generated header definition that describes ChakraCore.h named ChakraExternDefinitions.xml
This repository contains the mechanism of generating the ChakraExternDefinitions.xml file directly from ChakraCore source using CastXMLThe generated headers xml might be useful for other projects as well.
To Generate ChakraCore decls using Cast XML:
Dependencies:
- Git
- DotNetCore 2.2```
git clone https://github.com/Microsoft/ChakraCore
git clone https://github.com/BaristaLabs/ChakraCoreCastXML
cd ChakraCoreCastXML\BaristaLabs.ChakraCoreCastXml
dotnet run
```Build CastXML
---This repo includes a pre-built version of CastXML, it might be desirable to upgrade it from time to time.
To do so, follow the following steps.
Dependencies:
- Git
- VS2017 Community/Professional/Enterprise``` cmd
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
choco install ninja
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
git clone https://github.com/CastXML/CastXMLSuperbuild.git
mkdir CastXMLSuperbuild-build
cd CastXMLSuperbuild-build
cmake -G Ninja ../CastXMLSuperbuild
cmake --build .
cd castxml-prefix\src\castxml-build
ctest
```now copy the CastXMLSuperbuild-build/castxml folder to ./lib/castxml
Note: This takes a long time as we're building llvm+clang too. It feels like we're waiting for the heat-death of the universe.
[Reference](https://github.com/CastXML/CastXMLSuperbuild/blob/master/appveyor.yml)