| # Copyright 2014 The Chromium OS Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| { |
| 'variables': { |
| 'libbase_ver': 242728, |
| }, |
| 'target_defaults': { |
| 'dependencies': [ |
| '<(platform_root)/libchromeos/libchromeos-<(libbase_ver).gyp:*', |
| '<(platform_root)/system_api/system_api.gyp:*', |
| ], |
| 'variables': { |
| 'deps': [ # This is a list of pkg-config dependencies |
| 'libchrome-<(libbase_ver)', |
| ] |
| }, |
| 'link_settings': { |
| 'libraries': [ |
| '-lprotobuf', |
| ], |
| }, |
| 'include_dirs': [ |
| '..' # To access all src/platform2 directories |
| ], |
| 'cflags_cc': [ '-std=gnu++11' ], |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'attestation', |
| 'type': 'executable', |
| 'sources': [ |
| 'client/main.cc', |
| ], |
| 'dependencies': [ |
| 'attestation_proto' |
| ] |
| }, |
| { |
| 'target_name': 'attestationd', |
| 'type': 'executable', |
| 'sources': [ |
| 'server/main.cc', |
| 'server/attestation_service.cc' |
| ], |
| 'dependencies': [ |
| 'attestation_proto' |
| ], |
| }, |
| { |
| 'target_name': 'attestation_proto', |
| 'type': 'static_library', |
| 'variables': { |
| 'proto_in_dir': 'common', |
| 'proto_out_dir': 'include/attestation/common', |
| }, |
| 'sources': [ |
| '<(proto_in_dir)/dbus_interface.proto' |
| ], |
| 'includes': ['../../common-mk/protoc.gypi'], |
| }, |
| ], |
| } |