OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 # IMPORTANT: | 5 # IMPORTANT: |
6 # Please don't directly include this file if you are building via gyp_chromium, | 6 # Please don't directly include this file if you are building via gyp_chromium, |
7 # since gyp_chromium is automatically forcing its inclusion. | 7 # since gyp_chromium is automatically forcing its inclusion. |
8 { | 8 { |
9 # Variables expected to be overriden on the GYP command line (-D) or by | 9 # Variables expected to be overriden on the GYP command line (-D) or by |
10 # ~/.gyp/include.gypi. | 10 # ~/.gyp/include.gypi. |
(...skipping 2331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2342 # Do not disable seccomp_bpf anywhere without talking to | 2342 # Do not disable seccomp_bpf anywhere without talking to |
2343 # security@chromium.org! | 2343 # security@chromium.org! |
2344 ['((OS=="linux" or OS=="android") and ' | 2344 ['((OS=="linux" or OS=="android") and ' |
2345 '(target_arch=="ia32" or target_arch=="x64" or ' | 2345 '(target_arch=="ia32" or target_arch=="x64" or ' |
2346 'target_arch=="arm" or target_arch=="mipsel" or ' | 2346 'target_arch=="arm" or target_arch=="mipsel" or ' |
2347 'target_arch=="arm64"))', { | 2347 'target_arch=="arm64"))', { |
2348 'use_seccomp_bpf%': 1, | 2348 'use_seccomp_bpf%': 1, |
2349 }, { | 2349 }, { |
2350 'use_seccomp_bpf%': 0, | 2350 'use_seccomp_bpf%': 0, |
2351 }], | 2351 }], |
2352 | |
2353 # Set component build with LTO until all tests pass. | 2352 # Set component build with LTO until all tests pass. |
2354 # This also reduces link time. | 2353 # This also reduces link time. |
2355 ['use_lto==1', { | 2354 ['use_lto==1', { |
2356 'component%': "shared_library", | 2355 'component%': "shared_library", |
2357 }], | 2356 }], |
2358 ], | 2357 ], |
2359 | 2358 |
2360 # older history files use fts2 instead of fts3 | 2359 # older history files use fts2 instead of fts3 |
2361 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', | 2360 'sqlite_enable_fts2%': '<(support_pre_M6_history_database)', |
2362 | 2361 |
(...skipping 18 matching lines...) Expand all Loading... |
2381 '<(PRODUCT_DIR)/default_apps/gmail.crx', | 2380 '<(PRODUCT_DIR)/default_apps/gmail.crx', |
2382 '<(PRODUCT_DIR)/default_apps/search.crx', | 2381 '<(PRODUCT_DIR)/default_apps/search.crx', |
2383 '<(PRODUCT_DIR)/default_apps/youtube.crx', | 2382 '<(PRODUCT_DIR)/default_apps/youtube.crx', |
2384 '<(PRODUCT_DIR)/default_apps/drive.crx', | 2383 '<(PRODUCT_DIR)/default_apps/drive.crx', |
2385 '<(PRODUCT_DIR)/default_apps/docs.crx', | 2384 '<(PRODUCT_DIR)/default_apps/docs.crx', |
2386 ], | 2385 ], |
2387 | 2386 |
2388 # Whether to allow building of the GPU-related isolates. | 2387 # Whether to allow building of the GPU-related isolates. |
2389 'archive_gpu_tests%': 0, | 2388 'archive_gpu_tests%': 0, |
2390 | 2389 |
2391 # Whether to allow building of chromoting related isolates. | 2390 # Whether to allow building of chromoting related isolates. |
2392 'archive_chromoting_tests%': 0, | 2391 'archive_chromoting_tests%': 0, |
2393 }, | 2392 }, |
2394 'target_defaults': { | 2393 'target_defaults': { |
2395 'variables': { | 2394 'variables': { |
2396 # The condition that operates on chromium_code is in a target_conditions | 2395 # The condition that operates on chromium_code is in a target_conditions |
2397 # section, and will not have access to the default fallback value of | 2396 # section, and will not have access to the default fallback value of |
2398 # chromium_code at the top of this file, or to the chromium_code | 2397 # chromium_code at the top of this file, or to the chromium_code |
2399 # variable placed at the root variables scope of .gyp files, because | 2398 # variable placed at the root variables scope of .gyp files, because |
2400 # those variables are not set at target scope. As a workaround, | 2399 # those variables are not set at target scope. As a workaround, |
2401 # if chromium_code is not set at target scope, define it in target scope | 2400 # if chromium_code is not set at target scope, define it in target scope |
(...skipping 2229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4631 # to say that it does. Define them here instead. | 4630 # to say that it does. Define them here instead. |
4632 'HAVE_SYS_UIO_H', | 4631 'HAVE_SYS_UIO_H', |
4633 ], | 4632 ], |
4634 'cflags': [ | 4633 'cflags': [ |
4635 '--sysroot=<(android_ndk_sysroot)', | 4634 '--sysroot=<(android_ndk_sysroot)', |
4636 ], | 4635 ], |
4637 'ldflags': [ | 4636 'ldflags': [ |
4638 '--sysroot=<(android_ndk_sysroot)', | 4637 '--sysroot=<(android_ndk_sysroot)', |
4639 '-nostdlib', | 4638 '-nostdlib', |
4640 ], | 4639 ], |
4641 'variables': { | |
4642 'conditions': [ | |
4643 ['target_arch=="arm" and arm_thumb==1', { | |
4644 'thumb_option%': '-mthumb', | |
4645 }, { | |
4646 'thumb_option%': '', | |
4647 }], | |
4648 ], | |
4649 }, | |
4650 'libraries': [ | 4640 'libraries': [ |
4651 '-l<(android_stlport_library)', | 4641 '-l<(android_stlport_library)', |
4652 # Manually link the libgcc.a that the cross compiler uses. | 4642 # Manually link the libgcc.a that the cross compiler uses. |
4653 '<!(<(android_toolchain)/*-gcc <(thumb_option) -print-libgcc-f
ile-name)', | 4643 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', |
4654 '-lc', | 4644 '-lc', |
4655 '-ldl', | 4645 '-ldl', |
4656 '-lm', | 4646 '-lm', |
4657 ], | 4647 ], |
4658 }], | 4648 }], |
4659 ['android_webview_build==1', { | 4649 ['android_webview_build==1', { |
4660 'cflags': [ | 4650 'cflags': [ |
4661 # Android predefines this as 1; undefine it here so Chromium | 4651 # Android predefines this as 1; undefine it here so Chromium |
4662 # can redefine it later to be 2 for chromium code and unset | 4652 # can redefine it later to be 2 for chromium code and unset |
4663 # for third party code. This works because cflags are added | 4653 # for third party code. This works because cflags are added |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4708 # NOTE: The stlport header include paths below are specified in | 4698 # NOTE: The stlport header include paths below are specified in |
4709 # cflags rather than include_dirs because they need to come | 4699 # cflags rather than include_dirs because they need to come |
4710 # after include_dirs. Think of them like system headers, but | 4700 # after include_dirs. Think of them like system headers, but |
4711 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 | 4701 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 |
4712 # toolchain (circa Gingerbread) will exhibit strange errors. | 4702 # toolchain (circa Gingerbread) will exhibit strange errors. |
4713 # The include ordering here is important; change with caution. | 4703 # The include ordering here is important; change with caution. |
4714 ['android_webview_build==0', { | 4704 ['android_webview_build==0', { |
4715 'cflags': [ | 4705 'cflags': [ |
4716 '-isystem<(android_stlport_include)', | 4706 '-isystem<(android_stlport_include)', |
4717 ], | 4707 ], |
4718 'conditions': [ | 4708 'ldflags': [ |
4719 ['target_arch=="arm" and arm_thumb==1', { | 4709 '-L<(android_stlport_libs_dir)', |
4720 'ldflags': [ '-L<(android_stlport_libs_dir)/thumb' ] | |
4721 }, { | |
4722 'ldflags': [ '-L<(android_stlport_libs_dir)' ] | |
4723 }], | |
4724 ], | 4710 ], |
4725 }, { # else: android_webview_build!=0 | 4711 }, { # else: android_webview_build!=0 |
4726 'aosp_build_settings': { | 4712 'aosp_build_settings': { |
4727 # Specify that we want to statically link stlport from the | 4713 # Specify that we want to statically link stlport from the |
4728 # NDK. This will provide all the include and library paths | 4714 # NDK. This will provide all the include and library paths |
4729 # automatically at build time, and link the right library. | 4715 # automatically at build time, and link the right library. |
4730 'LOCAL_NDK_STL_VARIANT': 'stlport_static', | 4716 'LOCAL_NDK_STL_VARIANT': 'stlport_static', |
4731 }, | 4717 }, |
4732 }], | 4718 }], |
4733 ['target_arch=="ia32"', { | 4719 ['target_arch=="ia32"', { |
(...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5859 # settings in target dicts. SYMROOT is a special case, because many other | 5845 # settings in target dicts. SYMROOT is a special case, because many other |
5860 # Xcode variables depend on it, including variables such as | 5846 # Xcode variables depend on it, including variables such as |
5861 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5847 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5862 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5848 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5863 # files to appear (when present) in the UI as actual files and not red | 5849 # files to appear (when present) in the UI as actual files and not red |
5864 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5850 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5865 # and therefore SYMROOT, needs to be set at the project level. | 5851 # and therefore SYMROOT, needs to be set at the project level. |
5866 'SYMROOT': '<(DEPTH)/xcodebuild', | 5852 'SYMROOT': '<(DEPTH)/xcodebuild', |
5867 }, | 5853 }, |
5868 } | 5854 } |
OLD | NEW |