michael@0: # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- michael@0: # vim: set filetype=python: michael@0: # This Source Code Form is subject to the terms of the Mozilla Public michael@0: # License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: # file, You can obtain one at http://mozilla.org/MPL/2.0/. michael@0: michael@0: if CONFIG['MOZ_ENABLE_SIGNMAR']: michael@0: PROGRAM = 'signmar' michael@0: michael@0: SOURCES = [ michael@0: 'mar.c', michael@0: ] michael@0: HOST_SOURCES += SOURCES michael@0: michael@0: HOST_PROGRAM = 'mar' michael@0: michael@0: for var in ('MAR_CHANNEL_ID', 'MOZ_APP_VERSION'): michael@0: DEFINES[var] = '"%s"' % CONFIG[var] michael@0: michael@0: if not CONFIG['MOZ_ENABLE_SIGNMAR']: michael@0: DEFINES['NO_SIGN_VERIFY'] = True michael@0: michael@0: if CONFIG['OS_ARCH'] == 'WINNT': michael@0: USE_STATIC_LIBS = True michael@0: elif CONFIG['OS_ARCH'] == 'Darwin': michael@0: LDFLAGS += [ michael@0: '-framework Security', michael@0: ]