1 /* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 2 /* This Source Code Form is subject to the terms of the Mozilla Public 3 * License, v. 2.0. If a copy of the MPL was not distributed with this 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 5 6 #ifndef THEBES_RLBOX 7 #define THEBES_RLBOX 8 9 #include "ThebesRLBoxTypes.h" 10 11 // Load general firefox configuration of RLBox 12 #include "mozilla/rlbox/rlbox_config.h" 13 14 #ifdef MOZ_WASM_SANDBOXING_GRAPHITE 15 # include "mozilla/rlbox/rlbox_lucet_sandbox.hpp" 16 #else 17 // Extra configuration for no-op sandbox 18 # define RLBOX_USE_STATIC_CALLS() rlbox_noop_sandbox_lookup_symbol 19 # include "mozilla/rlbox/rlbox_noop_sandbox.hpp" 20 #endif 21 22 #include "mozilla/rlbox/rlbox.hpp" 23 24 // Struct info needed for rlbox_load_structs_from_library 25 #include "graphite2/Font.h" 26 #include "graphite2/GraphiteExtra.h" 27 #include "graphite2/Segment.h" 28 29 #include "graphite2/GraphiteStructsForRLBox.h" 30 rlbox_load_structs_from_library(graphite); 31 32 #endif 33