1# Copyright 2014 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'targets': [ 7 { 8 'target_name': 'seatbelt', 9 'type' : '<(component)', 10 'sources': [ 11 'seatbelt.cc', 12 'seatbelt.h', 13 'seatbelt_export.h', 14 ], 15 'defines': [ 16 'SEATBELT_IMPLEMENTATION', 17 ], 18 'include_dirs': [ 19 '../..', 20 ], 21 'link_settings': { 22 'libraries': [ 23 '$(SDKROOT)/usr/lib/libsandbox.dylib', 24 ], 25 } 26 }, 27 { 28 'target_name': 'sandbox', 29 'type': '<(component)', 30 'sources': [ 31 'bootstrap_sandbox.cc', 32 'bootstrap_sandbox.h', 33 'launchd_interception_server.cc', 34 'launchd_interception_server.h', 35 'mach_message_server.cc', 36 'mach_message_server.h', 37 'message_server.h', 38 'os_compatibility.cc', 39 'os_compatibility.h', 40 'policy.cc', 41 'policy.h', 42 'pre_exec_delegate.cc', 43 'pre_exec_delegate.h', 44 'xpc.h', 45 'xpc_message_server.cc', 46 'xpc_message_server.h', 47 ], 48 'dependencies': [ 49 '../base/base.gyp:base', 50 ], 51 'include_dirs': [ 52 '..', 53 '<(SHARED_INTERMEDIATE_DIR)', 54 ], 55 'defines': [ 56 'SANDBOX_IMPLEMENTATION', 57 ], 58 'link_settings': { 59 'libraries': [ 60 '$(SDKROOT)/usr/lib/libbsm.dylib', 61 ], 62 }, 63 }, 64 { 65 'target_name': 'sandbox_mac_unittests', 66 'type': 'executable', 67 'sources': [ 68 'bootstrap_sandbox_unittest.mm', 69 'policy_unittest.cc', 70 'xpc_message_server_unittest.cc', 71 ], 72 'dependencies': [ 73 'sandbox', 74 '../base/base.gyp:base', 75 '../base/base.gyp:run_all_unittests', 76 '../testing/gtest.gyp:gtest', 77 ], 78 'include_dirs': [ 79 '..', 80 ], 81 'link_settings': { 82 'libraries': [ 83 '$(SDKROOT)/System/Library/Frameworks/CoreFoundation.framework', 84 '$(SDKROOT)/System/Library/Frameworks/Foundation.framework', 85 ], 86 }, 87 }, 88 ], 89 'conditions': [ 90 ['test_isolation_mode != "noop"', { 91 'targets': [ 92 { 93 'target_name': 'sandbox_mac_unittests_run', 94 'type': 'none', 95 'dependencies': [ 96 'sandbox_mac_unittests', 97 ], 98 'includes': [ '../../build/isolate.gypi' ], 99 'sources': [ '../sandbox_mac_unittests.isolate' ], 100 }, 101 ], 102 }], 103 ], 104} 105