OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This file contains Chrome-feature-related build flags (see ui.gni for | 5 # This file contains Chrome-feature-related build flags (see ui.gni for |
6 # UI-related ones). These should theoretically be moved to the build files of | 6 # UI-related ones). These should theoretically be moved to the build files of |
7 # the features themselves. | 7 # the features themselves. |
8 # | 8 # |
9 # However, today we have many "bad" dependencies on some of these flags from, | 9 # However, today we have many "bad" dependencies on some of these flags from, |
10 # e.g. base, so they need to be global to match the GYP configuration. Also, | 10 # e.g. base, so they need to be global to match the GYP configuration. Also, |
(...skipping 13 matching lines...) Expand all Loading... |
24 # TODO(GYP): Get NaCl linking on other platforms. | 24 # TODO(GYP): Get NaCl linking on other platforms. |
25 # Also, see if we can always get rid of enable_nacl_untrusted and | 25 # Also, see if we can always get rid of enable_nacl_untrusted and |
26 # enable_pnacl and always build them if enable_nacl is true. | 26 # enable_pnacl and always build them if enable_nacl is true. |
27 # The "is_nacl" part of the condition is needed to ensure that | 27 # The "is_nacl" part of the condition is needed to ensure that |
28 # the untrusted code is built properly; arguably it should be | 28 # the untrusted code is built properly; arguably it should be |
29 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but | 29 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but |
30 # this will go away when Mac and Win are working and we can just use | 30 # this will go away when Mac and Win are working and we can just use |
31 # the commented out logic. | 31 # the commented out logic. |
32 # Eventually we want this to be: | 32 # Eventually we want this to be: |
33 # enable_nacl = !is_ios && !is_android | 33 # enable_nacl = !is_ios && !is_android |
34 enable_nacl = (is_linux && !is_chromeos && current_cpu == "x64") || is_nacl | 34 enable_nacl = (is_linux && current_cpu == "x64") || is_nacl |
35 enable_nacl_untrusted = enable_nacl | 35 enable_nacl_untrusted = enable_nacl |
36 enable_pnacl = enable_nacl_untrusted | 36 enable_pnacl = enable_nacl_untrusted |
37 } | 37 } |
38 | 38 |
39 # Additional dependent variables ----------------------------------------------- | 39 # Additional dependent variables ----------------------------------------------- |
40 | 40 |
41 # Set the version of CLD. | 41 # Set the version of CLD. |
42 # 0: Don't specify the version. This option is for the Finch testing. | 42 # 0: Don't specify the version. This option is for the Finch testing. |
43 # 1: Use only CLD1. | 43 # 1: Use only CLD1. |
44 # 2: Use only CLD2. | 44 # 2: Use only CLD2. |
45 if (is_android) { | 45 if (is_android) { |
46 cld_version = 1 | 46 cld_version = 1 |
47 } else { | 47 } else { |
48 cld_version = 2 | 48 cld_version = 2 |
49 } | 49 } |
50 | 50 |
51 # libudev usage. | 51 # libudev usage. |
52 use_udev = is_linux && !is_fnl | 52 use_udev = is_linux && !is_fnl |
53 | 53 |
54 # The seccomp-bpf sandbox is only supported on three architectures | 54 # The seccomp-bpf sandbox is only supported on three architectures |
55 # currently. | 55 # currently. |
56 # Do not disable seccomp_bpf anywhere without talking to | 56 # Do not disable seccomp_bpf anywhere without talking to |
57 # security@chromium.org! | 57 # security@chromium.org! |
58 use_seccomp_bpf = (is_linux || is_android) && | 58 use_seccomp_bpf = (is_linux || is_android) && |
59 (current_cpu == "x86" || current_cpu == "x64" || | 59 (current_cpu == "x86" || current_cpu == "x64" || |
60 current_cpu == "arm" || current_cpu == "mipsel") | 60 current_cpu == "arm" || current_cpu == "mipsel") |
OLD | NEW |