moz.build (980B)
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 if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk": 8 Program("screentopng") 9 SOURCES += [ 10 "gdk-screenshot.cpp", 11 ] 12 CXXFLAGS += CONFIG["MOZ_GTK3_CFLAGS"] 13 OS_LIBS += CONFIG["MOZ_GTK3_LIBS"] 14 15 elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": 16 Program("screenshot") 17 SOURCES += [ 18 "win32-screenshot.cpp", 19 ] 20 USE_STATIC_MSVCRT = True 21 if CONFIG["CC_TYPE"] in ("clang", "gcc"): 22 WIN32_EXE_LDFLAGS += ["-municode"] 23 OS_LIBS += [ 24 "advapi32", 25 "gdi32", 26 "gdiplus", 27 "user32", 28 ] 29 30 if CONFIG["MOZ_ASAN"] or CONFIG["MOZ_UBSAN"] or CONFIG["MOZ_TSAN"]: 31 USE_LIBS += ["sanitizer-options"] 32 33 NO_PGO = True 34 DisableStlWrapping()