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 7if CONFIG["MOZ_WIDGET_TOOLKIT"] == "gtk" and CONFIG["MOZ_X11"]: 8 Program("screentopng") 9 SOURCES += [ 10 "gdk-screenshot.cpp", 11 ] 12 CXXFLAGS += CONFIG["TK_CFLAGS"] 13 LDFLAGS += CONFIG["XLDFLAGS"] 14 OS_LIBS += CONFIG["TK_LIBS"] 15 if CONFIG["MOZ_ENABLE_DBUS"]: 16 OS_LIBS += CONFIG["MOZ_DBUS_GLIB_LIBS"] 17 18elif CONFIG["MOZ_WIDGET_TOOLKIT"] == "windows": 19 Program("screenshot") 20 SOURCES += [ 21 "win32-screenshot.cpp", 22 ] 23 USE_STATIC_LIBS = True 24 if CONFIG["CC_TYPE"] in ("clang", "gcc"): 25 WIN32_EXE_LDFLAGS += ["-municode"] 26 OS_LIBS += [ 27 "gdiplus", 28 ] 29 30NO_PGO = True 31DisableStlWrapping() 32