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 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 }], | 505 }], |
506 | 506 |
507 # Enable Skia UI text drawing incrementally on different platforms. | 507 # Enable Skia UI text drawing incrementally on different platforms. |
508 # http://crbug.com/105550 | 508 # http://crbug.com/105550 |
509 # | 509 # |
510 # On Aura, this allows per-tile painting to be used in the browser | 510 # On Aura, this allows per-tile painting to be used in the browser |
511 # compositor. | 511 # compositor. |
512 ['OS!="mac" and OS!="android"', { | 512 ['OS!="mac" and OS!="android"', { |
513 'use_canvas_skia%': 1, | 513 'use_canvas_skia%': 1, |
514 }], | 514 }], |
| 515 |
| 516 ['OS=="android"', { |
| 517 # When building as part of the Android system, use system libraries |
| 518 # where possible to reduce ROM size. |
| 519 'use_system_libjpeg%': '<(android_build_type)', |
| 520 }], |
515 ], | 521 ], |
516 }, | 522 }, |
517 | 523 |
518 # Copy conditionally-set variables out one scope. | 524 # Copy conditionally-set variables out one scope. |
519 'branding%': '<(branding)', | 525 'branding%': '<(branding)', |
520 'buildtype%': '<(buildtype)', | 526 'buildtype%': '<(buildtype)', |
521 'target_arch%': '<(target_arch)', | 527 'target_arch%': '<(target_arch)', |
522 'host_arch%': '<(host_arch)', | 528 'host_arch%': '<(host_arch)', |
523 'library%': 'static_library', | 529 'library%': 'static_library', |
524 'toolkit_views%': '<(toolkit_views)', | 530 'toolkit_views%': '<(toolkit_views)', |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 'test_isolation_mode%': '<(test_isolation_mode)', | 591 'test_isolation_mode%': '<(test_isolation_mode)', |
586 'test_isolation_outdir%': '<(test_isolation_outdir)', | 592 'test_isolation_outdir%': '<(test_isolation_outdir)', |
587 'enable_automation%': '<(enable_automation)', | 593 'enable_automation%': '<(enable_automation)', |
588 'enable_printing%': '<(enable_printing)', | 594 'enable_printing%': '<(enable_printing)', |
589 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', | 595 'enable_captive_portal_detection%': '<(enable_captive_portal_detection)', |
590 'force_rlz_use_chrome_net%': '<(force_rlz_use_chrome_net)', | 596 'force_rlz_use_chrome_net%': '<(force_rlz_use_chrome_net)', |
591 'enable_task_manager%': '<(enable_task_manager)', | 597 'enable_task_manager%': '<(enable_task_manager)', |
592 'sas_dll_path%': '<(sas_dll_path)', | 598 'sas_dll_path%': '<(sas_dll_path)', |
593 'wix_path%': '<(wix_path)', | 599 'wix_path%': '<(wix_path)', |
594 'android_upstream_bringup%': '<(android_upstream_bringup)', | 600 'android_upstream_bringup%': '<(android_upstream_bringup)', |
| 601 'use_system_libjpeg%': '<(use_system_libjpeg)', |
595 | 602 |
596 # Use system yasm instead of bundled one. | 603 # Use system yasm instead of bundled one. |
597 'use_system_yasm%': 0, | 604 'use_system_yasm%': 0, |
598 | 605 |
599 # Default to enabled PIE; this is important for ASLR but we may need to be | 606 # Default to enabled PIE; this is important for ASLR but we may need to be |
600 # able to turn it off for various reasons. | 607 # able to turn it off for various reasons. |
601 'linux_disable_pie%': 0, | 608 'linux_disable_pie%': 0, |
602 | 609 |
603 # The release channel that this build targets. This is used to restrict | 610 # The release channel that this build targets. This is used to restrict |
604 # channel-specific build options, like which installer packages to create. | 611 # channel-specific build options, like which installer packages to create. |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 'android_app_abi%': 'x86', | 892 'android_app_abi%': 'x86', |
886 }], | 893 }], |
887 ['target_arch=="arm" and armv7==0', { | 894 ['target_arch=="arm" and armv7==0', { |
888 'android_app_abi%': 'armeabi', | 895 'android_app_abi%': 'armeabi', |
889 }], | 896 }], |
890 ['target_arch=="arm" and armv7==1', { | 897 ['target_arch=="arm" and armv7==1', { |
891 'android_app_abi%': 'armeabi-v7a', | 898 'android_app_abi%': 'armeabi-v7a', |
892 }], | 899 }], |
893 ], | 900 ], |
894 | 901 |
895 # Switch between different build types, currently only '0' is | 902 # Sets whether we're building with the Android SDK/NDK (and hence |
896 # supported. | 903 # with Ant, value 0), or as part of the Android system (and hence |
| 904 # with the Android build system, value 1). |
897 'android_build_type%': 0, | 905 'android_build_type%': 0, |
898 }, | 906 }, |
899 'android_ndk_root%': '<(android_ndk_root)', | 907 'android_ndk_root%': '<(android_ndk_root)', |
900 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<
(target_arch)', | 908 'android_ndk_sysroot': '<(android_ndk_root)/platforms/android-9/arch-<
(target_arch)', |
901 'android_build_type%': '<(android_build_type)', | 909 'android_build_type%': '<(android_build_type)', |
902 'android_app_abi%': '<(android_app_abi)', | 910 'android_app_abi%': '<(android_app_abi)', |
903 }, | 911 }, |
904 'android_ndk_root%': '<(android_ndk_root)', | 912 'android_ndk_root%': '<(android_ndk_root)', |
905 'android_ndk_sysroot': '<(android_ndk_sysroot)', | 913 'android_ndk_sysroot': '<(android_ndk_sysroot)', |
906 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', | 914 'android_ndk_include': '<(android_ndk_sysroot)/usr/include', |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
968 # code. Java code stacktraces will be collected by GoogleFeedback when | 976 # code. Java code stacktraces will be collected by GoogleFeedback when |
969 # chrome is installed by either market or bazaar where the installer | 977 # chrome is installed by either market or bazaar where the installer |
970 # package is automatically set to AndroidFeedback. | 978 # package is automatically set to AndroidFeedback. |
971 ['buildtype=="Official"', { | 979 ['buildtype=="Official"', { |
972 'linux_breakpad%': 1, | 980 'linux_breakpad%': 1, |
973 }, { | 981 }, { |
974 'linux_breakpad%': 0, | 982 'linux_breakpad%': 0, |
975 }], | 983 }], |
976 ], | 984 ], |
977 | 985 |
978 # TODO(steveblock): Investigate using the system versions of sqlite and | 986 # When building as part of the Android system, use system libraries |
979 # libjpeg. | 987 # where possible to reduce ROM size. |
980 # Enable to use system sqlite. | 988 # TODO(steveblock): Investigate using the system version of sqlite. |
981 'use_system_sqlite%': 0, # '<(android_build_type)', | 989 'use_system_sqlite%': 0, # '<(android_build_type)', |
982 # Enable to use system libjpeg. | |
983 'use_system_libjpeg%': 0, # '<(android_build_type)', | |
984 # Enable to use the system expat. | |
985 'use_system_expat%': '<(android_build_type)', | 990 'use_system_expat%': '<(android_build_type)', |
986 # Enable to use the system ICU. | |
987 'use_system_icu%': '<(android_build_type)', | 991 'use_system_icu%': '<(android_build_type)', |
988 # Enable to use the system stlport, otherwise statically | |
989 # link the NDK one? | |
990 'use_system_stlport%': '<(android_build_type)', | 992 'use_system_stlport%': '<(android_build_type)', |
| 993 |
991 # Copy it out one scope. | 994 # Copy it out one scope. |
992 'android_build_type%': '<(android_build_type)', | 995 'android_build_type%': '<(android_build_type)', |
993 }], # OS=="android" | 996 }], # OS=="android" |
994 ['OS=="mac"', { | 997 ['OS=="mac"', { |
995 # Enable clang on mac by default! | 998 # Enable clang on mac by default! |
996 'clang%': 1, | 999 'clang%': 1, |
997 # Compile in Breakpad support by default so that it can be | 1000 # Compile in Breakpad support by default so that it can be |
998 # tested, even if it is not enabled by default at runtime. | 1001 # tested, even if it is not enabled by default at runtime. |
999 'mac_breakpad_compiled_in%': 1, | 1002 'mac_breakpad_compiled_in%': 1, |
1000 'conditions': [ | 1003 'conditions': [ |
(...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3309 # settings in target dicts. SYMROOT is a special case, because many other | 3312 # settings in target dicts. SYMROOT is a special case, because many other |
3310 # Xcode variables depend on it, including variables such as | 3313 # Xcode variables depend on it, including variables such as |
3311 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something | 3314 # PROJECT_DERIVED_FILE_DIR. When a source group corresponding to something |
3312 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the | 3315 # like PROJECT_DERIVED_FILE_DIR is added to a project, in order for the |
3313 # files to appear (when present) in the UI as actual files and not red | 3316 # files to appear (when present) in the UI as actual files and not red |
3314 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, | 3317 # red "missing file" proxies, the correct path to PROJECT_DERIVED_FILE_DIR, |
3315 # and therefore SYMROOT, needs to be set at the project level. | 3318 # and therefore SYMROOT, needs to be set at the project level. |
3316 'SYMROOT': '<(DEPTH)/xcodebuild', | 3319 'SYMROOT': '<(DEPTH)/xcodebuild', |
3317 }, | 3320 }, |
3318 } | 3321 } |
OLD | NEW |