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 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
901 'ProxyFileName': '$(InputName)_p.c', | 901 'ProxyFileName': '$(InputName)_p.c', |
902 }, | 902 }, |
903 'VCResourceCompilerTool': { | 903 'VCResourceCompilerTool': { |
904 'Culture' : '1033', | 904 'Culture' : '1033', |
905 'AdditionalIncludeDirectories': ['<(DEPTH)'], | 905 'AdditionalIncludeDirectories': ['<(DEPTH)'], |
906 }, | 906 }, |
907 }, | 907 }, |
908 }, | 908 }, |
909 }], | 909 }], |
910 ['chromium_code==0', { | 910 ['chromium_code==0', { |
911 # This section must follow the other conditon sections above because | 911 # This section must follow the other condition sections above because |
912 # external_code.gypi expects to be merged into those settings. | 912 # external_code.gypi expects to be merged into those settings. |
913 'includes': [ | 913 'includes': [ |
914 'external_code.gypi', | 914 'external_code.gypi', |
915 ], | 915 ], |
916 }, { | 916 }, { |
917 'target_defaults': { | 917 'target_defaults': { |
918 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the | 918 # In Chromium code, we define __STDC_FORMAT_MACROS in order to get the |
919 # C99 macros on Mac and Linux. | 919 # C99 macros on Mac and Linux. |
920 'defines': [ | 920 'defines': [ |
921 '__STDC_FORMAT_MACROS', | 921 '__STDC_FORMAT_MACROS', |
922 ], | 922 ], |
923 'conditions': [ | |
924 ['OS!="win"', { | |
925 'sources/': [ ['exclude', '_win\\.cc$'], | |
926 ['exclude', '/win/'], | |
927 ['exclude', '/win_[^/]*\\.cc$'] ], | |
Mark Mentovai
2009/11/26 05:54:07
I would have turned the * into a + here and on lin
| |
928 }], | |
929 ['OS!="mac"', { | |
930 'sources/': [ ['exclude', '_(cocoa|mac)(_unittest)?\\.cc$'], | |
Mark Mentovai
2009/11/26 05:54:07
I'm surprised the exclude for '/cocoa/' (directori
| |
931 ['exclude', '\.mm$' ] ], | |
932 }], | |
933 ['OS!="linux"', { | |
934 'sources/': [ | |
935 ['exclude', '_(chromeos|gtk|linux|x|x11)(_unittest)?\\.cc$'], | |
936 ['exclude', '/gtk/'], | |
937 ['exclude', '/(gtk|x11)_[^/]*\\.cc$'] ], | |
938 }], | |
939 # We use "POSIX" to refer to all non-Windows operating systems. | |
940 ['OS=="win"', { | |
941 'sources/': [ ['exclude', '_posix\\.cc$'] ], | |
942 }], | |
943 # Though Skia is conceptually shared by Linux and Windows, | |
944 # the only _skia files in our tree are Linux-specific. | |
945 ['OS!="linux"', { | |
946 'sources/': [ ['exclude', '_skia\\.cc$'] ], | |
947 }], | |
948 ['chromeos!=1', { | |
949 'sources/': [ ['exclude', '_chromeos\\.cc$'] ] | |
950 }], | |
951 ['OS!="win" and toolkit_views!=1', { | |
952 'sources/': [ ['exclude', '_views\\.cc$'] ] | |
953 }], | |
954 ], | |
923 }, | 955 }, |
924 }], | 956 }], |
925 ['disable_nacl==1', { | 957 ['disable_nacl==1', { |
926 'target_defaults': { | 958 'target_defaults': { |
927 'defines': [ | 959 'defines': [ |
928 'DISABLE_NACL', | 960 'DISABLE_NACL', |
929 ], | 961 ], |
930 }, | 962 }, |
931 }], | 963 }], |
932 ['msvs_use_common_linker_extras', { | 964 ['msvs_use_common_linker_extras', { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
974 # and therefore SYMROOT, needs to be set at the project level. | 1006 # and therefore SYMROOT, needs to be set at the project level. |
975 'SYMROOT': '<(DEPTH)/xcodebuild', | 1007 'SYMROOT': '<(DEPTH)/xcodebuild', |
976 }, | 1008 }, |
977 } | 1009 } |
978 | 1010 |
979 # Local Variables: | 1011 # Local Variables: |
980 # tab-width:2 | 1012 # tab-width:2 |
981 # indent-tabs-mode:nil | 1013 # indent-tabs-mode:nil |
982 # End: | 1014 # End: |
983 # vim: set expandtab tabstop=2 shiftwidth=2: | 1015 # vim: set expandtab tabstop=2 shiftwidth=2: |
OLD | NEW |