blob: aadaffb54300f3571df407cc8b0393eb5654ee9f [file] [log] [blame]
senorblanco@chromium.orgafac8882011-04-11 15:59:47 +00001# Copyright (C) 2011 The Android Open Source Project
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14{
15 'conditions' : [
16 ['OS == "win"',
17 {
18 'target_defaults': {
19 'msvs_cygwin_shell': 0,
20 'msvs_settings': {
21 'VCCLCompilerTool': {
22 'WarningLevel': '1',
23 'WarnAsError': 'false',
24 'DebugInformationFormat': '3',
25 'AdditionalOptions': '/MP',
26 },
27 },
28 'configurations': {
29 'Debug': {
30 'msvs_settings': {
31 'VCCLCompilerTool': {
32 'Optimization': '0', # 0 = /Od
33 'PreprocessorDefinitions': ['_DEBUG'],
34 'RuntimeLibrary': '3', # 3 = /MDd (debug DLL)
35 },
36 'VCLinkerTool': {
37 'GenerateDebugInformation': 'true',
38 },
39 },
40 },
41 'Release': {
42 'msvs_settings': {
43 'VCCLCompilerTool': {
44 'Optimization': '2', # 2 = /Os
45 'PreprocessorDefinitions': ['NDEBUG'],
46 'RuntimeLibrary': '2', # 2 = /MD (nondebug DLL)
47 },
48 'VCLinkerTool': {
49 'GenerateDebugInformation': 'false',
50 },
51 },
52 },
53 },
54 },
55 },
56 ],
57 ['OS == "linux"',
58 {
59 'target_defaults': {
60 'configurations': {
61 'Debug': {
62 'cflags': ['-g']
63 },
64 'Release': {
65 'cflags': ['-O2']
66 },
67 },
68 },
69 },
70 ],
71 ['OS == "mac"',
72 {
73 'target_defaults': {
74 'configurations': {
75 'Debug': {
76 'cflags': ['-g']
77 },
78 'Release': {
79 'cflags': ['-O2']
80 },
81 },
82 },
83 'xcode_settings': {
84 'SYMROOT': '<(DEPTH)/xcodebuild',
85 },
86 },
87 ],
88 ],
89}
90# Local Variables:
91# tab-width:2
92# indent-tabs-mode:nil
93# End:
94# vim: set expandtab tabstop=2 shiftwidth=2: