summaryrefslogtreecommitdiff
path: root/components/printing/moz.build
blob: 7b15b051b869bcf3f8949e91b1646960269c7fcc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

include('/ipc/chromium/chromium-config.mozbuild')

IPDL_SOURCES += [
  'public/PPrinting.ipdl',
  'public/PPrintingTypes.ipdlh',
  'public/PPrintProgressDialog.ipdl',
  'public/PPrintSettingsDialog.ipdl',
]

EXPORTS += ['src/nsPrintingProxy.h']

EXPORTS.mozilla.embedding.printingui += ['src/PrintingParent.h']

if CONFIG['NS_PRINTING']:
  if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
    DIRS += ['src/win']
  else:
    DIRS += ['src/unix']

  SOURCES += [
    'src/nsPrintingProxy.cpp',
    'src/PrintDataUtils.cpp',
    'src/PrintingParent.cpp',
    'src/PrintProgressDialogChild.cpp',
    'src/PrintProgressDialogParent.cpp',
    'src/PrintSettingsDialogChild.cpp',
    'src/PrintSettingsDialogParent.cpp',
  ]

  JAR_MANIFESTS += ['jar.mn']

FINAL_LIBRARY = 'xul'