OLD | NEW |
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2009 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': { | 9 'variables': { |
10 # .gyp files should set chromium_code to 1 if they build Chromium-specific | 10 # .gyp files should set chromium_code to 1 if they build Chromium-specific |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 }, | 311 }, |
312 'conditions': [ | 312 'conditions': [ |
313 ['branding=="Chrome"', { | 313 ['branding=="Chrome"', { |
314 'defines': ['GOOGLE_CHROME_BUILD'], | 314 'defines': ['GOOGLE_CHROME_BUILD'], |
315 }, { # else: branding!="Chrome" | 315 }, { # else: branding!="Chrome" |
316 'defines': ['CHROMIUM_BUILD'], | 316 'defines': ['CHROMIUM_BUILD'], |
317 }], | 317 }], |
318 ['chrome_frame_define', { | 318 ['chrome_frame_define', { |
319 'defines': ['CHROME_FRAME_BUILD'], | 319 'defines': ['CHROME_FRAME_BUILD'], |
320 }], | 320 }], |
321 ['toolkit_views==1', { | 321 ['toolkit_views==1 or chromeos==1', { |
322 'defines': ['TOOLKIT_VIEWS=1'], | 322 'defines': ['TOOLKIT_VIEWS=1'], |
323 }], | 323 }], |
324 ['chromeos==1', { | 324 ['chromeos==1', { |
325 'defines': ['CHROMEOS_TRANSITIONAL=1'], | |
326 }], | |
327 ['chromeos==1 or toolkit_views==1', { | |
328 'defines': ['OS_CHROMEOS=1'], | 325 'defines': ['OS_CHROMEOS=1'], |
329 }], | 326 }], |
330 ['enable_gpu==1', { | 327 ['enable_gpu==1', { |
331 'defines': ['ENABLE_GPU=1'], | 328 'defines': ['ENABLE_GPU=1'], |
332 }], | 329 }], |
333 ['fastbuild!=0', { | 330 ['fastbuild!=0', { |
334 'conditions': [ | 331 'conditions': [ |
335 # Finally, for Windows, we simply turn on profiling. | 332 # Finally, for Windows, we simply turn on profiling. |
336 ['OS=="win"', { | 333 ['OS=="win"', { |
337 'msvs_settings': { | 334 'msvs_settings': { |
(...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 'sources/': [ ['exclude', '_posix\\.cc$'] ], | 1015 'sources/': [ ['exclude', '_posix\\.cc$'] ], |
1019 }], | 1016 }], |
1020 # Though Skia is conceptually shared by Linux and Windows, | 1017 # Though Skia is conceptually shared by Linux and Windows, |
1021 # the only _skia files in our tree are Linux-specific. | 1018 # the only _skia files in our tree are Linux-specific. |
1022 ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { | 1019 ['OS!="linux" and OS!="freebsd" and OS!="openbsd"', { |
1023 'sources/': [ ['exclude', '_skia\\.cc$'] ], | 1020 'sources/': [ ['exclude', '_skia\\.cc$'] ], |
1024 }], | 1021 }], |
1025 ['chromeos!=1', { | 1022 ['chromeos!=1', { |
1026 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] | 1023 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] |
1027 }], | 1024 }], |
1028 ['OS!="win" and toolkit_views!=1', { | 1025 ['OS!="win" and (toolkit_views==0 and chromeos==0)', { |
1029 'sources/': [ ['exclude', '_views\\.cc$'] ] | 1026 'sources/': [ ['exclude', '_views\\.cc$'] ] |
1030 }], | 1027 }], |
1031 ], | 1028 ], |
1032 }, | 1029 }, |
1033 }], | 1030 }], |
1034 # Disable native client on FreeBSD/OpenBSD for now | 1031 # Disable native client on FreeBSD/OpenBSD for now |
1035 ['disable_nacl==1 or OS=="freebsd" or OS=="openbsd"', { | 1032 ['disable_nacl==1 or OS=="freebsd" or OS=="openbsd"', { |
1036 'target_defaults': { | 1033 'target_defaults': { |
1037 'defines': [ | 1034 'defines': [ |
1038 'DISABLE_NACL', | 1035 'DISABLE_NACL', |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 # and therefore SYMROOT, needs to be set at the project level. | 1098 # and therefore SYMROOT, needs to be set at the project level. |
1102 'SYMROOT': '<(DEPTH)/xcodebuild', | 1099 'SYMROOT': '<(DEPTH)/xcodebuild', |
1103 }, | 1100 }, |
1104 } | 1101 } |
1105 | 1102 |
1106 # Local Variables: | 1103 # Local Variables: |
1107 # tab-width:2 | 1104 # tab-width:2 |
1108 # indent-tabs-mode:nil | 1105 # indent-tabs-mode:nil |
1109 # End: | 1106 # End: |
1110 # vim: set expandtab tabstop=2 shiftwidth=2: | 1107 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |