Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: build/common.gypi

Issue 10702129: Fix use_system_stlport on Android (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 950 matching lines...) Expand 10 before | Expand all | Expand 10 after
961 'android_unit_test_target_type%': 'static_library', 961 'android_unit_test_target_type%': 'static_library',
962 962
963 'conditions': [ 963 'conditions': [
964 # Choose static link by build type. 964 # Choose static link by build type.
965 ['android_build_type==0', { 965 ['android_build_type==0', {
966 'static_link_system_icu%': 1, 966 'static_link_system_icu%': 1,
967 }, { 967 }, {
968 'static_link_system_icu%': 0, 968 'static_link_system_icu%': 0,
969 }], 969 }],
970 ], 970 ],
971 # TODO(steveblock): Investigate using the system versions of sqlite, 971 # TODO(steveblock): Investigate using the system versions of sqlite and
972 # libjpeg and stlport. 972 # libjpeg.
973 # Enable to use system sqlite. 973 # Enable to use system sqlite.
974 'use_system_sqlite%': 0, # '<(android_build_type)', 974 'use_system_sqlite%': 0, # '<(android_build_type)',
975 # Enable to use system libjpeg. 975 # Enable to use system libjpeg.
976 'use_system_libjpeg%': 0, # '<(android_build_type)', 976 'use_system_libjpeg%': 0, # '<(android_build_type)',
977 # Enable to use the system expat. 977 # Enable to use the system expat.
978 'use_system_expat%': '<(android_build_type)', 978 'use_system_expat%': '<(android_build_type)',
979 # Enable to use the system stlport, otherwise statically 979 # Enable to use the system stlport, otherwise statically
980 # link the NDK one? 980 # link the NDK one?
981 'use_system_stlport%': 0, # '<(android_build_type)', 981 'use_system_stlport%': '<(android_build_type)',
982 # Copy it out one scope. 982 # Copy it out one scope.
983 'android_build_type%': '<(android_build_type)', 983 'android_build_type%': '<(android_build_type)',
984 }], # OS=="android" 984 }], # OS=="android"
985 ['OS=="mac"', { 985 ['OS=="mac"', {
986 # Enable clang on mac by default! 986 # Enable clang on mac by default!
987 'clang%': 1, 987 'clang%': 1,
988 # Compile in Breakpad support by default so that it can be 988 # Compile in Breakpad support by default so that it can be
989 # tested, even if it is not enabled by default at runtime. 989 # tested, even if it is not enabled by default at runtime.
990 'mac_breakpad_compiled_in%': 1, 990 'mac_breakpad_compiled_in%': 1,
991 'conditions': [ 991 'conditions': [
(...skipping 1563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2555 # Enable identical code folding to reduce size. 2555 # Enable identical code folding to reduce size.
2556 '-Wl,--icf=safe', 2556 '-Wl,--icf=safe',
2557 ], 2557 ],
2558 }], 2558 }],
2559 # NOTE: The stlport header include paths below are specified in 2559 # NOTE: The stlport header include paths below are specified in
2560 # cflags rather than include_dirs because they need to come 2560 # cflags rather than include_dirs because they need to come
2561 # after include_dirs. Think of them like system headers, but 2561 # after include_dirs. Think of them like system headers, but
2562 # don't use '-isystem' because the arm-linux-androideabi-4.4.3 2562 # don't use '-isystem' because the arm-linux-androideabi-4.4.3
2563 # toolchain (circa Gingerbread) will exhibit strange errors. 2563 # toolchain (circa Gingerbread) will exhibit strange errors.
2564 # The include ordering here is important; change with caution. 2564 # The include ordering here is important; change with caution.
2565 ['use_system_stlport==0', { 2565 ['use_system_stlport==1', {
2566 'cflags': [
2567 # For libstdc++/include, which is used by stlport.
2568 '-I<(android_src)/bionic',
2569 '-I<(android_src)/external/stlport/stlport',
2570 ],
2571 }, { # else: use_system_stlport!=1
2566 'cflags': [ 2572 'cflags': [
2567 '-I<(android_ndk_root)/sources/cxx-stl/stlport/stlport', 2573 '-I<(android_ndk_root)/sources/cxx-stl/stlport/stlport',
2568 ], 2574 ],
2569 'conditions': [ 2575 'conditions': [
2570 ['target_arch=="arm" and armv7==1', { 2576 ['target_arch=="arm" and armv7==1', {
2571 'ldflags': [ 2577 'ldflags': [
2572 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeab i-v7a', 2578 '-L<(android_ndk_root)/sources/cxx-stl/stlport/libs/armeab i-v7a',
2573 ], 2579 ],
2574 }], 2580 }],
2575 ['target_arch=="arm" and armv7==0', { 2581 ['target_arch=="arm" and armv7==0', {
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
3286 # settings in target dicts. SYMROOT is a special case, because many other 3292 # settings in target dicts. SYMROOT is a special case, because many other
3287 # Xcode variables depend on it, including variables such as 3293 # Xcode variables depend on it, including variables such as
3288 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 3294 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
3289 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 3295 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
3290 # files to appear (when present) in the UI as actual files and not red 3296 # files to appear (when present) in the UI as actual files and not red
3291 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 3297 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
3292 # and therefore SYMROOT, needs to be set at the project level. 3298 # and therefore SYMROOT, needs to be set at the project level.
3293 'SYMROOT': '<(DEPTH)/xcodebuild', 3299 'SYMROOT': '<(DEPTH)/xcodebuild',
3294 }, 3300 },
3295 } 3301 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698