Build mapping engine¶
This section will show you how to build Google Whistle (GW) mapping engine (C shared library) for GameBus FHIR layer.
Google Whistle codebase¶
Compared with original Google Whistle codebase, the codebase used above is a forked codebase and updated with three new scripts:
- mapping_engine/main/exports.go
The export function
RunMapping
is defined in this Go file, which converts JSON string of one structure to another.This Go file can be updated to add other export functions.
- mapping_engine/main/mapping.h
This header file is needed by the C shared library to include the Go export functions.
- mapping_engine/build_exports.sh
It’s a helper BASH script to generate Go code from protobuf files and then compile Go code (e.g. export functions) to C shared library.
Dockerfile The dockerfile to build a docker image of the mapping engine.