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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#
$(eval $(call gb_StaticLibrary_StaticLibrary,updatehelper))
$(eval $(call gb_StaticLibrary_use_unpacked,updatehelper,onlineupdate))
$(eval $(call gb_StaticLibrary_set_include,updatehelper,\
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/onlineupdate/inc/ \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/onlineupdate/source/service \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/onlineupdate/source/update/common \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/include/onlineupdate \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/include \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/mfbt/double-conversion \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/toolkit/mozapps/update/common \
-I$(call gb_UnpackedTarball_get_dir,onlineupdate)/xpcom/base \
$$(INCLUDE) \
))
$(eval $(call gb_StaticLibrary_add_defs,updatehelper,\
-DMOZ_MAINTENANCE_SERVICE \
-DNSS3 \
-DMOZ_VERIFY_MAR_SIGNATURE \
-DXP_$(if $(filter WNT,$(OS)),WIN,UNIX) \
$(if $(filter WNT,$(OS)),-U_WIN32_WINNT) \
))
$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,updatehelper,cpp))
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,updatehelper,\
UnpackedTarball/onlineupdate/mozglue/misc/Printf \
UnpackedTarball/onlineupdate/onlineupdate/source/update/common/readstrings \
UnpackedTarball/onlineupdate/toolkit/mozapps/update/common/updatecommon \
))
ifeq ($(OS),WNT)
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,updatehelper,\
UnpackedTarball/onlineupdate/onlineupdate/source/update/common/pathhash \
UnpackedTarball/onlineupdate/onlineupdate/source/update/common/uachelper \
UnpackedTarball/onlineupdate/onlineupdate/source/update/common/updatehelper \
UnpackedTarball/onlineupdate/onlineupdate/source/service/certificatecheck \
UnpackedTarball/onlineupdate/onlineupdate/source/service/registrycertificates \
UnpackedTarball/onlineupdate/toolkit/mozapps/update/common/updateutils_win \
))
endif
$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,updatehelper,cc))
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,updatehelper, \
UnpackedTarball/onlineupdate/mfbt/double-conversion/double-conversion/bignum \
UnpackedTarball/onlineupdate/mfbt/double-conversion/double-conversion/bignum-dtoa \
UnpackedTarball/onlineupdate/mfbt/double-conversion/double-conversion/cached-powers \
UnpackedTarball/onlineupdate/mfbt/double-conversion/double-conversion/double-to-string \
UnpackedTarball/onlineupdate/mfbt/double-conversion/double-conversion/fast-dtoa \
UnpackedTarball/onlineupdate/mfbt/double-conversion/double-conversion/fixed-dtoa \
))
$(eval $(call gb_StaticLibrary_set_warnings_disabled,updatehelper))
ifeq ($(OS),WNT)
$(eval $(call gb_StaticLibrary_add_cxxflags,updatehelper,-Zc:strictStrings-))
endif
# vim:set shiftwidth=4 tabstop=4 noexpandtab: */
|