2013-04-01 22:36:59 +04:00
|
|
|
# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:23 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
2014-07-25 02:10:15 +04:00
|
|
|
HOST_SOURCES += [
|
2013-05-25 04:21:14 +04:00
|
|
|
'mar.c',
|
|
|
|
]
|
2013-11-02 03:44:11 +04:00
|
|
|
|
2014-09-03 09:10:54 +04:00
|
|
|
HostProgram('mar')
|
2013-11-27 17:55:07 +04:00
|
|
|
|
2014-07-23 08:29:50 +04:00
|
|
|
HOST_USE_LIBS += [
|
|
|
|
'hostmar',
|
|
|
|
]
|
|
|
|
|
2014-07-25 02:10:15 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_SIGNMAR']:
|
2014-09-03 09:10:54 +04:00
|
|
|
Program('signmar')
|
2014-07-25 02:10:15 +04:00
|
|
|
|
|
|
|
SOURCES += HOST_SOURCES
|
|
|
|
|
|
|
|
USE_LIBS += [
|
|
|
|
'mar',
|
|
|
|
'signmar',
|
|
|
|
'verifymar',
|
|
|
|
]
|
|
|
|
|
2013-11-27 17:55:07 +04:00
|
|
|
for var in ('MAR_CHANNEL_ID', 'MOZ_APP_VERSION'):
|
|
|
|
DEFINES[var] = '"%s"' % CONFIG[var]
|
|
|
|
|
2014-08-07 09:21:03 +04:00
|
|
|
if CONFIG['MOZ_ENABLE_SIGNMAR']:
|
|
|
|
USE_LIBS += [
|
|
|
|
'nspr',
|
|
|
|
'nss',
|
|
|
|
]
|
|
|
|
else:
|
2013-11-27 17:55:07 +04:00
|
|
|
DEFINES['NO_SIGN_VERIFY'] = True
|
2014-02-11 18:12:33 +04:00
|
|
|
|
|
|
|
if CONFIG['OS_ARCH'] == 'WINNT':
|
|
|
|
USE_STATIC_LIBS = True
|
2014-08-06 02:25:33 +04:00
|
|
|
|
|
|
|
OS_LIBS += [
|
|
|
|
'ws2_32',
|
|
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_SIGNMAR']:
|
|
|
|
OS_LIBS += [
|
|
|
|
'crypt32',
|
|
|
|
'advapi32',
|
|
|
|
]
|
2014-04-23 04:45:59 +04:00
|
|
|
elif CONFIG['OS_ARCH'] == 'Darwin':
|
2014-08-06 02:25:33 +04:00
|
|
|
OS_LIBS += [
|
2014-04-23 04:45:59 +04:00
|
|
|
'-framework Security',
|
|
|
|
]
|
2014-08-06 02:26:05 +04:00
|
|
|
|
|
|
|
if CONFIG['HOST_OS_ARCH'] == 'WINNT':
|
|
|
|
HOST_OS_LIBS += [
|
|
|
|
'ws2_32',
|
|
|
|
]
|