moz.build (704B)
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 defs = [] 8 9 for s in ( 10 "MOZ_GECKODRIVER", 11 "MOZ_ASAN", 12 "MOZ_TSAN", 13 "FUZZING", 14 "MOZ_CRASHREPORTER", 15 "MOZ_APP_NAME", 16 ): 17 if CONFIG[s]: 18 defs.append("-D%s=%s" % (s, "1" if CONFIG[s] is True else CONFIG[s])) 19 20 GeneratedFile( 21 "MacOS-files.txt", 22 script="/python/mozbuild/mozbuild/action/preprocessor.py", 23 entry_point="generate", 24 inputs=["MacOS-files.in"], 25 flags=defs, 26 )