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

Side by Side Diff: build/common.gypi

Issue 147533004: Remove unneeded JNI registrations. (Closed) Base URL: https://git.chromium.org/chromium/src.git@master
Patch Set: Rebaes, added native_exports switch, don't remove empty RegisterNatives. Created 6 years, 8 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
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 3902 matching lines...) Expand 10 before | Expand all | Expand 10 after
3913 'android_product_extension': 'cr.so', 3913 'android_product_extension': 'cr.so',
3914 }, { 3914 }, {
3915 'android_product_extension': 'so', 3915 'android_product_extension': 'so',
3916 } ], 3916 } ],
3917 ], 3917 ],
3918 }, 3918 },
3919 'target_conditions': [ 3919 'target_conditions': [
3920 ['_type=="shared_library"', { 3920 ['_type=="shared_library"', {
3921 'product_extension': '<(android_product_extension)', 3921 'product_extension': '<(android_product_extension)',
3922 }], 3922 }],
3923 ['_toolset=="target" and component=="static_library" and _type=="share d_library"', {
3924 'ldflags': [
3925 # Only export symbols that are specified in version script.
3926 # TODO(ostap): Gyp doesn't corectly calculate path if <(DEPTH) is used here.
3927 # Use <(DEPTH) when gyp is fixed or replaced with gn.
3928 '-Wl,--version-script="../../build/android/android_exports.lst"',
3929 ],
3930 }],
3923 3931
3924 # Settings for building device targets using Android's toolchain. 3932 # Settings for building device targets using Android's toolchain.
3925 # These are based on the setup.mk file from the Android NDK. 3933 # These are based on the setup.mk file from the Android NDK.
3926 # 3934 #
3927 # The NDK Android executable link step looks as follows: 3935 # The NDK Android executable link step looks as follows:
3928 # $LDFLAGS 3936 # $LDFLAGS
3929 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o 3937 # $(TARGET_CRTBEGIN_DYNAMIC_O) <-- crtbegin.o
3930 # $(PRIVATE_OBJECTS) <-- The .o that we built 3938 # $(PRIVATE_OBJECTS) <-- The .o that we built
3931 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built 3939 # $(PRIVATE_STATIC_LIBRARIES) <-- The .a that we built
3932 # $(TARGET_LIBGCC) <-- libgcc.a 3940 # $(TARGET_LIBGCC) <-- libgcc.a
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
3977 'USE_STLPORT=1', 3985 'USE_STLPORT=1',
3978 '_STLP_USE_PTR_SPECIALIZATIONS=1', 3986 '_STLP_USE_PTR_SPECIALIZATIONS=1',
3979 'CHROME_BUILD_ID="<(chrome_build_id)"', 3987 'CHROME_BUILD_ID="<(chrome_build_id)"',
3980 ], 3988 ],
3981 'ldflags!': [ 3989 'ldflags!': [
3982 '-pthread', # Not supported by Android toolchain. 3990 '-pthread', # Not supported by Android toolchain.
3983 ], 3991 ],
3984 'ldflags': [ 3992 'ldflags': [
3985 '-nostdlib', 3993 '-nostdlib',
3986 '-Wl,--no-undefined', 3994 '-Wl,--no-undefined',
3987 # Don't export symbols from statically linked libraries. 3995
3988 '-Wl,--exclude-libs=ALL',
3989 ], 3996 ],
3990 'libraries': [ 3997 'libraries': [
3991 '-l<(android_stlport_library)', 3998 '-l<(android_stlport_library)',
3992 # Manually link the libgcc.a that the cross compiler uses. 3999 # Manually link the libgcc.a that the cross compiler uses.
3993 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)', 4000 '<!(<(android_toolchain)/*-gcc -print-libgcc-file-name)',
3994 '-lc', 4001 '-lc',
3995 '-ldl', 4002 '-ldl',
3996 '-lm', 4003 '-lm',
3997 ], 4004 ],
3998 'conditions': [ 4005 'conditions': [
3999 ['component=="shared_library"', {
4000 'ldflags!': [
4001 '-Wl,--exclude-libs=ALL',
4002 ],
4003 }],
4004 ['clang==1', { 4006 ['clang==1', {
4005 'cflags': [ 4007 'cflags': [
4006 # Work around incompatibilities between bionic and clang 4008 # Work around incompatibilities between bionic and clang
4007 # headers. 4009 # headers.
4008 '-D__compiler_offsetof=__builtin_offsetof', 4010 '-D__compiler_offsetof=__builtin_offsetof',
4009 '-Dnan=__builtin_nan', 4011 '-Dnan=__builtin_nan',
4010 ], 4012 ],
4011 'conditions': [ 4013 'conditions': [
4012 ['target_arch=="arm"', { 4014 ['target_arch=="arm"', {
4013 'cflags': [ 4015 'cflags': [
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
5209 # settings in target dicts. SYMROOT is a special case, because many other 5211 # settings in target dicts. SYMROOT is a special case, because many other
5210 # Xcode variables depend on it, including variables such as 5212 # Xcode variables depend on it, including variables such as
5211 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something 5213 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something
5212 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the 5214 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the
5213 # files to appear (when present) in the UI as actual files and not red 5215 # files to appear (when present) in the UI as actual files and not red
5214 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, 5216 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR,
5215 # and therefore SYMROOT, needs to be set at the project level. 5217 # and therefore SYMROOT, needs to be set at the project level.
5216 'SYMROOT': '<(DEPTH)/xcodebuild', 5218 'SYMROOT': '<(DEPTH)/xcodebuild',
5217 }, 5219 },
5218 } 5220 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698