moz.build (835B)
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*- 2 # vim: set filetype=python: 3 # This Source Code Form is subject to the terms of the Mozilla Public 4 # License, v. 2.0. If a copy of the MPL was not distributed with this 5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. 6 7 include("sources.mozbuild") 8 9 with Files('**'): 10 BUG_COMPONENT = ('Core', 'XML') 11 12 EXPORTS += [ 13 'expat/lib/expat.h', 14 'expat/lib/expat_external.h', 15 'expat/lib/moz_expat.h', 16 'expat_config.h', 17 'expat_config_moz.h', 18 'expat_config_rlbox.h', 19 'rlbox_expat.h', 20 'rlbox_expat_types.h', 21 ] 22 23 if CONFIG["MOZ_WASM_SANDBOXING_EXPAT"]: 24 SOURCES += ['expat/lib/moz_xmltok.c'] 25 else: 26 SOURCES += expat_sources 27 28 LOCAL_INCLUDES += [ 29 '!/security/rlbox', 30 ] 31 32 FINAL_LIBRARY = 'xul' 33 34 for k, v in expat_defines: 35 DEFINES[k] = v