| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 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 'variables': { | |
| 7 'chromium_code': 1, | |
| 8 }, | |
| 9 'includes': [ | |
| 10 # base.gypi must be included before common_untrusted.gypi. | |
| 11 # | |
| 12 # TODO(sergeyu): Replace the target_defaults magic in base.gypi with a | |
| 13 # sources variables lists. That way order of includes will not matter. | |
| 14 'base.gypi', | |
| 15 '../build/common_untrusted.gypi', | |
| 16 ], | |
| 17 'conditions': [ | |
| 18 ['disable_nacl==0 and disable_nacl_untrusted==0', { | |
| 19 'targets': [ | |
| 20 { | |
| 21 'target_name': 'base_nacl', | |
| 22 'type': 'none', | |
| 23 'variables': { | |
| 24 'base_target': 1, | |
| 25 'nacl_untrusted_build': 1, | |
| 26 'nlib_target': 'libbase_nacl.a', | |
| 27 'build_glibc': 0, | |
| 28 'build_newlib': 0, | |
| 29 'build_irt': 1, | |
| 30 'build_pnacl_newlib': 1, | |
| 31 'sources': [ | |
| 32 'base_switches.cc', | |
| 33 'base_switches.h', | |
| 34 'strings/string16.cc', | |
| 35 'sync_socket_nacl.cc', | |
| 36 'time/time_posix.cc', | |
| 37 ], | |
| 38 'compile_flags': [ | |
| 39 '-fno-strict-aliasing', | |
| 40 ], | |
| 41 }, | |
| 42 'dependencies': [ | |
| 43 'allocator/allocator.gyp:allocator_features#target', | |
| 44 'base.gyp:base_debugging_flags', | |
| 45 'base.gyp:base_build_date', | |
| 46 ], | |
| 47 }, | |
| 48 { | |
| 49 'target_name': 'base_i18n_nacl', | |
| 50 'type': 'none', | |
| 51 'variables': { | |
| 52 'base_i18n_target': 1, | |
| 53 'nacl_untrusted_build': 1, | |
| 54 'nlib_target': 'libbase_i18n_nacl.a', | |
| 55 'build_glibc': 0, | |
| 56 'build_newlib': 0, | |
| 57 'build_irt': 0, | |
| 58 'build_pnacl_newlib': 1, | |
| 59 'sources': [ | |
| 60 'base_switches.cc', | |
| 61 'base_switches.h', | |
| 62 'strings/string16.cc', | |
| 63 'sync_socket_nacl.cc', | |
| 64 'time/time_posix.cc', | |
| 65 ], | |
| 66 }, | |
| 67 'dependencies': [ | |
| 68 'allocator/allocator.gyp:allocator_features#target', | |
| 69 'base.gyp:base_build_date', | |
| 70 '../third_party/ced/ced_nacl.gyp:ced_nacl', | |
| 71 '../third_party/icu/icu_nacl.gyp:icudata_nacl', | |
| 72 '../third_party/icu/icu_nacl.gyp:icui18n_nacl', | |
| 73 '../third_party/icu/icu_nacl.gyp:icuuc_nacl', | |
| 74 ], | |
| 75 }, | |
| 76 { | |
| 77 'target_name': 'base_nacl_nonsfi', | |
| 78 'type': 'none', | |
| 79 'variables': { | |
| 80 'base_target': 1, | |
| 81 'nacl_untrusted_build': 1, | |
| 82 'nlib_target': 'libbase_nacl_nonsfi.a', | |
| 83 'build_glibc': 0, | |
| 84 'build_newlib': 0, | |
| 85 'build_irt': 0, | |
| 86 'build_pnacl_newlib': 0, | |
| 87 'build_nonsfi_helper': 1, | |
| 88 | |
| 89 'sources': [ | |
| 90 'base_switches.cc', | |
| 91 'base_switches.h', | |
| 92 | |
| 93 # For PathExists and ReadFromFD. | |
| 94 'files/file_util.cc', | |
| 95 'files/file_util_posix.cc', | |
| 96 | |
| 97 # For MessageLoopForIO based on libevent. | |
| 98 'message_loop/message_pump_libevent.cc', | |
| 99 'message_loop/message_pump_libevent.h', | |
| 100 | |
| 101 # For UnixDomainSocket::SendMsg and RecvMsg. | |
| 102 'posix/unix_domain_socket_linux.cc', | |
| 103 | |
| 104 # For GetKnownDeadTerminationStatus and GetTerminationStatus. | |
| 105 'process/kill_posix.cc', | |
| 106 | |
| 107 # For ForkWithFlags. | |
| 108 'process/launch.h', | |
| 109 'process/launch_posix.cc', | |
| 110 | |
| 111 # Unlike libbase_nacl, for Non-SFI build, we need to use | |
| 112 # rand_util_posix for random implementation, instead of | |
| 113 # rand_util_nacl.cc, which is based on IRT. rand_util_nacl.cc is | |
| 114 # excluded below. | |
| 115 'rand_util_posix.cc', | |
| 116 | |
| 117 # For CancelableSyncSocket. | |
| 118 'sync_socket_nacl.cc', | |
| 119 ], | |
| 120 }, | |
| 121 'sources!': [ | |
| 122 'rand_util_nacl.cc', | |
| 123 ], | |
| 124 'dependencies': [ | |
| 125 'allocator/allocator.gyp:allocator_features#target', | |
| 126 'base.gyp:base_debugging_flags', | |
| 127 'base.gyp:base_build_date', | |
| 128 'third_party/libevent/libevent_nacl_nonsfi.gyp:event_nacl_nonsfi', | |
| 129 ], | |
| 130 }, | |
| 131 { | |
| 132 'target_name': 'test_support_base_nacl_nonsfi', | |
| 133 'type': 'none', | |
| 134 'variables': { | |
| 135 'nacl_untrusted_build': 1, | |
| 136 'nlib_target': 'libtest_support_base_nacl_nonsfi.a', | |
| 137 'build_glibc': 0, | |
| 138 'build_newlib': 0, | |
| 139 'build_irt': 0, | |
| 140 'build_pnacl_newlib': 0, | |
| 141 'build_nonsfi_helper': 1, | |
| 142 | |
| 143 'sources': [ | |
| 144 'test/gtest_util.cc', | |
| 145 'test/launcher/unit_test_launcher_nacl_nonsfi.cc', | |
| 146 'test/gtest_xml_unittest_result_printer.cc', | |
| 147 'test/test_switches.cc', | |
| 148 ], | |
| 149 }, | |
| 150 'dependencies': [ | |
| 151 'base.gyp:base_build_date', | |
| 152 'base_nacl_nonsfi', | |
| 153 '../testing/gtest_nacl.gyp:gtest_nacl', | |
| 154 ], | |
| 155 }, | |
| 156 ], | |
| 157 }], | |
| 158 ], | |
| 159 } | |
| OLD | NEW |