| OLD | NEW |
| 1 # | 1 # |
| 2 # Copyright (C) 2013 Google Inc. All rights reserved. | 2 # Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 # | 3 # |
| 4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
| 5 # modification, are permitted provided that the following conditions are | 5 # modification, are permitted provided that the following conditions are |
| 6 # met: | 6 # met: |
| 7 # | 7 # |
| 8 # * Redistributions of source code must retain the above copyright | 8 # * Redistributions of source code must retain the above copyright |
| 9 # notice, this list of conditions and the following disclaimer. | 9 # notice, this list of conditions and the following disclaimer. |
| 10 # * Redistributions in binary form must reproduce the above | 10 # * Redistributions in binary form must reproduce the above |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 { | 30 { |
| 31 'variables': { | 31 'variables': { |
| 32 # If set to 1, doesn't compile debug symbols into webcore reducing the | 32 # If set to 1, doesn't compile debug symbols into webcore reducing the |
| 33 # size of the binary and increasing the speed of gdb. gcc only. | 33 # size of the binary and increasing the speed of gdb. gcc only. |
| 34 'remove_webcore_debug_symbols%': 0, | 34 'remove_webcore_debug_symbols%': 0, |
| 35 # Set to 1 to enable the clang plugin that checks the usage of the Blink | 35 # Set to 1 to enable the clang plugin that checks the usage of the Blink |
| 36 # garbage-collection infrastructure during compilation. | 36 # garbage-collection infrastructure during compilation. |
| 37 # Requires building locally since GOMA doesn't yet support the plugin. | 37 # Requires building locally since GOMA doesn't yet support the plugin. |
| 38 'enable_oilpan%': 0, | 38 'enable_oilpan%': 0, |
| 39 'blink_gc_plugin%': 0, | 39 'blink_gc_plugin%': 0, |
| 40 'detect_cycles%': 0, |
| 40 }, | 41 }, |
| 41 'targets': [ | 42 'targets': [ |
| 42 { | 43 { |
| 43 'target_name': 'config', | 44 'target_name': 'config', |
| 44 'type': 'none', | 45 'type': 'none', |
| 45 'direct_dependent_settings': { | 46 'direct_dependent_settings': { |
| 46 'include_dirs': [ | 47 'include_dirs': [ |
| 47 '.', | 48 '.', |
| 48 '..', | 49 '..', |
| 49 ], | 50 ], |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 'cflags': ['-Wno-uninitialized'], | 99 'cflags': ['-Wno-uninitialized'], |
| 99 }], | 100 }], |
| 100 ['clang==1', { | 101 ['clang==1', { |
| 101 'cflags': ['-Wglobal-constructors'], | 102 'cflags': ['-Wglobal-constructors'], |
| 102 'xcode_settings': { | 103 'xcode_settings': { |
| 103 'WARNING_CFLAGS': ['-Wglobal-constructors'], | 104 'WARNING_CFLAGS': ['-Wglobal-constructors'], |
| 104 }, | 105 }, |
| 105 }], | 106 }], |
| 106 # Only enable the blink_gc_plugin when using clang and chrome plugins. | 107 # Only enable the blink_gc_plugin when using clang and chrome plugins. |
| 107 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { | 108 ['blink_gc_plugin==1 and clang==1 and clang_use_chrome_plugins==1', { |
| 108 'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh
enable-oilpan=<(enable_oilpan))'], | 109 'cflags': ['<!@(../../../tools/clang/scripts/blink_gc_plugin_flags.sh
enable-oilpan=<(enable_oilpan) detect-cycles=<(detect_cycles))'], |
| 109 }], | 110 }], |
| 110 ], | 111 ], |
| 111 }, | 112 }, |
| 112 }, | 113 }, |
| 113 { | 114 { |
| 114 'target_name': 'unittest_config', | 115 'target_name': 'unittest_config', |
| 115 'type': 'none', | 116 'type': 'none', |
| 116 'dependencies': [ | 117 'dependencies': [ |
| 117 'config', | 118 'config', |
| 118 '<(DEPTH)/testing/gmock.gyp:gmock', | 119 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 119 '<(DEPTH)/testing/gtest.gyp:gtest', | 120 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 120 ], | 121 ], |
| 121 'export_dependent_settings': [ | 122 'export_dependent_settings': [ |
| 122 'config', | 123 'config', |
| 123 '<(DEPTH)/testing/gmock.gyp:gmock', | 124 '<(DEPTH)/testing/gmock.gyp:gmock', |
| 124 '<(DEPTH)/testing/gtest.gyp:gtest', | 125 '<(DEPTH)/testing/gtest.gyp:gtest', |
| 125 ], | 126 ], |
| 126 'direct_dependent_settings': { | 127 'direct_dependent_settings': { |
| 127 'cflags!': ['-Wglobal-constructors'], | 128 'cflags!': ['-Wglobal-constructors'], |
| 128 'xcode_settings': { | 129 'xcode_settings': { |
| 129 'WARNING_CFLAGS!': ['-Wglobal-constructors'], | 130 'WARNING_CFLAGS!': ['-Wglobal-constructors'], |
| 130 }, | 131 }, |
| 131 }, | 132 }, |
| 132 } | 133 } |
| 133 ], | 134 ], |
| 134 } | 135 } |
| OLD | NEW |