2
# Copyright (C) 2010 Mozilla Foundation
4
# This is used to integrate the OTS library with the Mozilla build.
6
# Permission is hereby granted, without written agreement and without
7
# license or royalty fees, to use, copy, modify, and distribute this
8
# software and its documentation for any purpose, provided that the
9
# above copyright notice and the following two paragraphs appear in
10
# all copies of this software.
12
# IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13
# DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14
# ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15
# IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
18
# THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19
# BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20
# FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21
# ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22
# PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
24
# Mozilla author(s): Jonathan Kew
29
topsrcdir = @top_srcdir@
33
include $(DEPTH)/config/autoconf.mk
39
ifeq (WINNT,$(OS_TARGET))
50
cff_type2_charstring.cc \
82
../include/opentype-sanitiser.h \
83
../include/ots-memory-stream.h \
86
include $(topsrcdir)/config/rules.mk
88
DEFINES += -DPACKAGE_VERSION="\"moz\""
89
DEFINES += -DPACKAGE_BUGREPORT="\"http://bugzilla.mozilla.org/\""
91
DEFINES += -DMOZ_OTS_REPORT_ERRORS
93
ifeq (WINNT,$(OS_TARGET))
94
DEFINES += -DOTS_DLL -DOTS_DLL_EXPORTS
97
# Suppress ANSI strict warnings
98
# because Googlers don't care about comma-at-end-of-enumerator errors.
99
CXXFLAGS := $(filter-out -pedantic,$(CXXFLAGS))
100
CFLAGS := $(filter-out -pedantic,$(CFLAGS))