blob: 78482a05edf388c036f569d2101c20255538165c [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 },
senorblanco@chromium.org64cc5792011-05-19 19:58:58 +000068 'cflags': [ '-Wall', '-Wextra', '-Wno-unused' ]
senorblanco@chromium.orgafac8882011-04-11 15:59:47 +000069 },
70 },
71 ],
72 ['OS == "mac"',
73 {
74 'target_defaults': {
75 'configurations': {
76 'Debug': {
77 'cflags': ['-g']
78 },
79 'Release': {
80 'cflags': ['-O2']
81 },
82 },
83 },
84 'xcode_settings': {
85 'SYMROOT': '<(DEPTH)/xcodebuild',
86 },
87 },
88 ],
89 ],
90}
91# Local Variables:
92# tab-width:2
93# indent-tabs-mode:nil
94# End:
95# vim: set expandtab tabstop=2 shiftwidth=2: