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 4614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4625 # to say that it does. Define them here instead. | 4625 # to say that it does. Define them here instead. |
4626 'HAVE_SYS_UIO_H', | 4626 'HAVE_SYS_UIO_H', |
4627 ], | 4627 ], |
4628 'cflags': [ | 4628 'cflags': [ |
4629 '--sysroot=<(android_ndk_sysroot)', | 4629 '--sysroot=<(android_ndk_sysroot)', |
4630 ], | 4630 ], |
4631 'ldflags': [ | 4631 'ldflags': [ |
4632 '--sysroot=<(android_ndk_sysroot)', | 4632 '--sysroot=<(android_ndk_sysroot)', |
4633 '-nostdlib', | 4633 '-nostdlib', |
4634 ], | 4634 ], |
4635 'libraries': [ | 4635 'conditions': [ |
4636 '-l<(android_stlport_library)', | 4636 ['target_arch=="arm" and arm_thumb==1', { |
4637 # Manually link the libgcc.a that the cross compiler uses. | 4637 'libraries': [ |
4638 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', | 4638 '-l<(android_stlport_library)', |
4639 '-lc', | 4639 # Manually link the libgcc.a that the cross compiler uses. |
4640 '-ldl', | 4640 '<!(<(android_toolchain)/*-gcc -mthumb -print-libgcc-file- name)', |
pasko
2014/11/03 16:47:15
I suspect we can expand a variable here to be eith
Fabrice (no longer in Chrome)
2014/11/03 18:00:41
Done.
| |
4641 '-lm', | 4641 '-lc', |
4642 '-ldl', | |
4643 '-lm', | |
4644 ], | |
4645 }, { | |
4646 'libraries': [ | |
4647 '-l<(android_stlport_library)', | |
4648 # Manually link the libgcc.a that the cross compiler uses. | |
4649 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', | |
4650 '-lc', | |
4651 '-ldl', | |
4652 '-lm', | |
4653 ], | |
4654 }], | |
4642 ], | 4655 ], |
4643 }], | 4656 }], |
4644 ['android_webview_build==1', { | 4657 ['android_webview_build==1', { |
4645 'cflags': [ | 4658 'cflags': [ |
4646 # Android predefines this as 1; undefine it here so Chromium | 4659 # Android predefines this as 1; undefine it here so Chromium |
4647 # can redefine it later to be 2 for chromium code and unset | 4660 # can redefine it later to be 2 for chromium code and unset |
4648 # for third party code. This works because cflags are added | 4661 # for third party code. This works because cflags are added |
4649 # before defines. | 4662 # before defines. |
4650 '-U_FORTIFY_SOURCE', | 4663 '-U_FORTIFY_SOURCE', |
4651 # Disable any additional warnings enabled by the Android build system but which | 4664 # Disable any additional warnings enabled by the Android build system but which |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4693 # NOTE: The stlport header include paths below are specified in | 4706 # NOTE: The stlport header include paths below are specified in |
4694 # cflags rather than include_dirs because they need to come | 4707 # cflags rather than include_dirs because they need to come |
4695 # after include_dirs. Think of them like system headers, but | 4708 # after include_dirs. Think of them like system headers, but |
4696 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 | 4709 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 |
4697 # toolchain (circa Gingerbread) will exhibit strange errors. | 4710 # toolchain (circa Gingerbread) will exhibit strange errors. |
4698 # The include ordering here is important; change with caution. | 4711 # The include ordering here is important; change with caution. |
4699 ['android_webview_build==0', { | 4712 ['android_webview_build==0', { |
4700 'cflags': [ | 4713 'cflags': [ |
4701 '-isystem<(android_stlport_include)', | 4714 '-isystem<(android_stlport_include)', |
4702 ], | 4715 ], |
4703 'ldflags': [ | 4716 'conditions': [ |
4704 '-L<(android_stlport_libs_dir)', | 4717 ['target_arch=="arm" and arm_thumb==1', { |
4718 'ldflags': [ '-L<(android_stlport_libs_dir)/thumb' ] | |
4719 }, { | |
4720 'ldflags': [ '-L<(android_stlport_libs_dir)' ] | |
4721 }], | |
4705 ], | 4722 ], |
4706 }, { # else: android_webview_build!=0 | 4723 }, { # else: android_webview_build!=0 |
4707 'aosp_build_settings': { | 4724 'aosp_build_settings': { |
4708 # Specify that we want to statically link stlport from the | 4725 # Specify that we want to statically link stlport from the |
4709 # NDK. This will provide all the include and library paths | 4726 # NDK. This will provide all the include and library paths |
4710 # automatically at build time, and link the right library. | 4727 # automatically at build time, and link the right library. |
4711 'LOCAL_NDK_STL_VARIANT': 'stlport_static', | 4728 'LOCAL_NDK_STL_VARIANT': 'stlport_static', |
4712 }, | 4729 }, |
4713 }], | 4730 }], |
4714 ['target_arch=="ia32"', { | 4731 ['target_arch=="ia32"', { |
(...skipping 1166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5881 # settings in target dicts. SYMROOT is a special case, because many other | 5898 # settings in target dicts. SYMROOT is a special case, because many other |
5882 # Xcode variables depend on it, including variables such as | 5899 # Xcode variables depend on it, including variables such as |
5883 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 5900 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
5884 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 5901 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
5885 # files to appear (when present) in the UI as actual files and not red | 5902 # files to appear (when present) in the UI as actual files and not red |
5886 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 5903 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
5887 # and therefore SYMROOT, needs to be set at the project level. | 5904 # and therefore SYMROOT, needs to be set at the project level. |
5888 'SYMROOT': '<(DEPTH)/xcodebuild', | 5905 'SYMROOT': '<(DEPTH)/xcodebuild', |
5889 }, | 5906 }, |
5890 } | 5907 } |
OLD | NEW |